wifi: rtw89: fix wrong bandwidth settings after scan
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 7 Oct 2022 04:59:00 +0000 (12:59 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 11 Oct 2022 16:46:00 +0000 (19:46 +0300)
commit478132050360a5cf19cc1b3fc9fcf1e56a483481
tree1faa4ea6b24ccb45663bc39b810c772c733f0532
parent54997c24767b51bd762ff942431e8d37b535dc2e
wifi: rtw89: fix wrong bandwidth settings after scan

Set channel in driver side to configure Tx power and channel index
correctly after scan. Before this, beacons with bandwidth larger than
20M bandwidth will be dropped by mac80211 due to frequency mismatch.

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/20221007045900.10823-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c