wifi: rtw89: fix authentication fail during scan
authorPo-Hao Huang <phhuang@realtek.com>
Tue, 11 Apr 2023 12:48:32 +0000 (20:48 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 14 Apr 2023 12:11:23 +0000 (15:11 +0300)
commitc5280e5f6763c216e16feec10c63b6b32106ddb7
treeac3e7654858b2bdeebb37d9f2861bffe217c4030
parent6cfb6cc20a61aa17bdb5440459a3503a885ee913
wifi: rtw89: fix authentication fail during scan

We used to store operating channel info after associated. However, scan
might happen before that. Without switching back to operating channel,
authentication or association might fail. Therefore, we switch back to
operating channel when the scanning vif's BSSID is non-zero, which
implies connected or during attempt to connect.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230411124832.14965-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c