]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: chanctx emulation set CHANGE_CHANNEL when in_reconfig
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 9 Jul 2024 07:35:31 +0000 (15:35 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 9 Jul 2024 09:29:09 +0000 (11:29 +0200)
commit19b815ed71aadee9a2d31b7a700ef61ae8048010
treeffac1d75e4fc1b580dfaf121547a6362af38cfcf
parent6e909f489191b365364e9d636dec33b5dfd4e5eb
wifi: mac80211: chanctx emulation set CHANGE_CHANNEL when in_reconfig

Chanctx emulation didn't info IEEE80211_CONF_CHANGE_CHANNEL to drivers
during ieee80211_restart_hw (ieee80211_emulate_add_chanctx). It caused
non-chanctx drivers to not stand on the correct channel after recovery.
RX then behaved abnormally. Finally, disconnection/reconnection occurred.

So, set IEEE80211_CONF_CHANGE_CHANNEL when in_reconfig.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Link: https://patch.msgid.link/20240709073531.30565-1-kevin_yang@realtek.com
Cc: stable@vger.kernel.org
Fixes: 0a44dfc07074 ("wifi: mac80211: simplify non-chanctx drivers")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c