wifi: rtw89: fix firmware scan delay unit for WiFi 6 chips
authorChin-Yen Lee <timlee@realtek.com>
Tue, 13 May 2025 12:52:03 +0000 (20:52 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 16 May 2025 01:03:40 +0000 (09:03 +0800)
The scan delay unit of firmware command for WiFi 6 chips is
microsecond, but is wrong set now and lead to abnormal work
for net-detect. Correct the unit to avoid the error.

Fixes: e99dd80c8a18 ("wifi: rtw89: wow: add delay option for net-detect")
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250513125203.6858-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c

index 1abf69818fc690ecc904d4545225d029a66690c0..00b65b2995cffc62ed404ddbac1d38e8be991118 100644 (file)
@@ -5537,7 +5537,7 @@ int rtw89_fw_h2c_scan_list_offload_be(struct rtw89_dev *rtwdev, int ch_num,
        return 0;
 }
 
-#define RTW89_SCAN_DELAY_TSF_UNIT 104800
+#define RTW89_SCAN_DELAY_TSF_UNIT 1000000
 int rtw89_fw_h2c_scan_offload_ax(struct rtw89_dev *rtwdev,
                                 struct rtw89_scan_option *option,
                                 struct rtw89_vif_link *rtwvif_link,