wifi: mac80211: defer link switch work in reconfig
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 15 Apr 2024 08:27:13 +0000 (11:27 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 Apr 2024 08:14:29 +0000 (10:14 +0200)
commitc6d075be966ddc1f08f843f78a82d092e5e4362e
tree3e2df66ccf5a93c78528fdc1a8c9932add01a59c
parent570944a094c24ee3a09b2cb5e580063cfde64d7a
wifi: mac80211: defer link switch work in reconfig

If a link switch work was queued, and then a restart happened, the
worker might be executed before the reconfig, and obviously it will fail
(the HW might not respond to updates etc.)
So, don't perform the switch if we are in reconfig, instead - do it
at the end of the reconfig.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240415112355.1ef1008e3a0a.I19add3f2152dcfd55a759de97b1d09265c1cde98@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c
net/mac80211/util.c