wifi: mac80211: call drv_sta_state() under sdata_lock() in reconfig
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:51 +0000 (16:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 3 Sep 2022 15:04:51 +0000 (17:04 +0200)
commit48c5d82aba65c91cbc8eff308037bf58bc012eb1
tree26b85cf533cd2cf86e83edf91ddc6fc4712adeb6
parent6522047c65764c9aaec8009e73daa8c0b138c701
wifi: mac80211: call drv_sta_state() under sdata_lock() in reconfig

Currently, other paths calling drv_sta_state() hold the mutex
and therefore drivers can assume that, and look at links with
that protection. Fix that for the reconfig path as well; to
do it more easily use ieee80211_reconfig_stations() for the
AP/AP_VLAN station reconfig as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c