wifi: mt76: use atomic iface iteration for pre-TBTT work
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 15:18:31 +0000 (17:18 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 30 Sep 2023 18:03:03 +0000 (20:03 +0200)
commitdebd133ab2e2e06989c24e1a72be2b7997f30456
tree47f21105ea4321f64f59e64b3b0e2eb4b47ad0d8
parentc2fcc83b41a64ae3baa12dfb7ee5d8587373493d
wifi: mt76: use atomic iface iteration for pre-TBTT work

In addition to the previous series I posted, over time I'd
also like to get rid of the iflist_mtx in mac80211. That
isn't easy now since lots of places use iteration and would
have to be audited, but even a cursory look suggests that
mt76 might be more problematic than most since holding the
wiphy lock for the latency-sensitive pre-TBTT work could be
an issue.

Convert the pre-TBTT work to use atomic iteration and then
sending the device commands outside of it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c