Commit 08c93c0c authored by Po-Hao Huang's avatar Po-Hao Huang Committed by Kalle Valo

wifi: rtw89: refine 6 GHz scanning dwell time

Reduce dwell time to improve scan duration in 6 GHz. This is required
for scan requests that does not include RNR parsing and does full
channel scan.
Signed-off-by: default avatarPo-Hao Huang <phhuang@realtek.com>
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221214091952.42792-1-pkshih@realtek.com
parent a48f4fd0
...@@ -2749,7 +2749,7 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type, ...@@ -2749,7 +2749,7 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type,
if (ssid_num == 1 && req->ssids[0].ssid_len == 0) { if (ssid_num == 1 && req->ssids[0].ssid_len == 0) {
ch_info->tx_pkt = false; ch_info->tx_pkt = false;
if (!req->duration_mandatory) if (!req->duration_mandatory)
ch_info->period -= RTW89_DWELL_TIME; ch_info->period -= RTW89_DWELL_TIME_6G;
} }
} }
...@@ -2802,7 +2802,8 @@ static int rtw89_hw_scan_add_chan_list(struct rtw89_dev *rtwdev, ...@@ -2802,7 +2802,8 @@ static int rtw89_hw_scan_add_chan_list(struct rtw89_dev *rtwdev,
if (req->duration_mandatory) if (req->duration_mandatory)
ch_info->period = req->duration; ch_info->period = req->duration;
else if (channel->band == NL80211_BAND_6GHZ) else if (channel->band == NL80211_BAND_6GHZ)
ch_info->period = RTW89_CHANNEL_TIME_6G + RTW89_DWELL_TIME; ch_info->period = RTW89_CHANNEL_TIME_6G +
RTW89_DWELL_TIME_6G;
else else
ch_info->period = RTW89_CHANNEL_TIME; ch_info->period = RTW89_CHANNEL_TIME;
......
...@@ -205,6 +205,7 @@ struct rtw89_h2creg_sch_tx_en { ...@@ -205,6 +205,7 @@ struct rtw89_h2creg_sch_tx_en {
#define RTW89_DFS_CHAN_TIME 105 #define RTW89_DFS_CHAN_TIME 105
#define RTW89_OFF_CHAN_TIME 100 #define RTW89_OFF_CHAN_TIME 100
#define RTW89_DWELL_TIME 20 #define RTW89_DWELL_TIME 20
#define RTW89_DWELL_TIME_6G 10
#define RTW89_SCAN_WIDTH 0 #define RTW89_SCAN_WIDTH 0
#define RTW89_SCANOFLD_MAX_SSID 8 #define RTW89_SCANOFLD_MAX_SSID 8
#define RTW89_SCANOFLD_MAX_IE_LEN 512 #define RTW89_SCANOFLD_MAX_IE_LEN 512
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment