]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9638eeff6de58aaa67636fc6eeae8f697d81d4f1
tree26b85cf533cd2cf86e83edf91ddc6fc4712adeb6
parentc4b71f13d1c9f722cd338a35aa3046a1bb9e3773
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