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)
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

index bdcc7af737ea2ba3a0e8614b7b4528a4b355ccd5..d21f87e25ae1fdc6e02e3d7a1fef07d0099f147d 100644 (file)
@@ -2773,6 +2773,7 @@ void rtw89_hw_scan_complete(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif,
 
        if (rtwvif->net_type != RTW89_NET_TYPE_NO_LINK)
                rtw89_store_op_chan(rtwdev, false);
+       rtw89_set_channel(rtwdev);
 }
 
 void rtw89_hw_scan_abort(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif)