wifi: rtw89: Refine active scan behavior in 6 GHz
authorPo-Hao Huang <phhuang@realtek.com>
Wed, 29 Nov 2023 07:00:44 +0000 (15:00 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 1 Dec 2023 12:43:14 +0000 (14:43 +0200)
The interval between sending each probe request is regulated. Before
this patch, some packets are not sent out properly because of our HW
limit. Extend the 6 GHz channel dwell time to cope with this.

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

index a732c22a2d549270b1d9b5372f6251fdca31ebf0..898b3f432d1c793f05401e97684b53ab5af5f6e0 100644 (file)
@@ -3867,6 +3867,8 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type,
                        if (info->channel_6ghz &&
                            ch_info->pri_ch != info->channel_6ghz)
                                continue;
+                       else if (info->channel_6ghz && probe_count != 0)
+                               ch_info->period += RTW89_CHANNEL_TIME_6G;
                        ch_info->pkt_id[probe_count++] = info->id;
                        if (probe_count >= RTW89_SCANOFLD_MAX_SSID)
                                break;