wifi: mac80211: always hold sdata lock in chanctx assign/unassign
authorJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 13:26:49 +0000 (16:26 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jun 2023 12:01:28 +0000 (14:01 +0200)
commit4484de23ba22e3023e9cbe4246a927ffb00db56f
tree914bf1159b72bf4c7c29a4449b4509b3a81bf7b4
parent5c1f97537bfb9f358e0ecc88c3c8a913c51944cb
wifi: mac80211: always hold sdata lock in chanctx assign/unassign

Due to all the multi-link handling, we now expose the fact that
the sdata/vif is locked to drivers, e.g. when the driver uses
ieee80211_set_monitor_channel(). This was true when a chanctx
is added to or removed from a link, _except_ in monitor mode
with the virtual sdata/vif. Change that, so that drivers can
make that assumption.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230619161906.a5cf7534beda.I5b51664231abee27e02f222083df7ccf88722929@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/iface.c