diff mbox series

[rtw-next] wifi: rtw89: fix firmware scan delay unit for WiFi 6 chips

Message ID 20250513125203.6858-1-pkshih@realtek.com
State New
Headers show
Series [rtw-next] wifi: rtw89: fix firmware scan delay unit for WiFi 6 chips | expand

Commit Message

Ping-Ke Shih May 13, 2025, 12:52 p.m. UTC
From: Chin-Yen Lee <timlee@realtek.com>

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>
---
 drivers/net/wireless/realtek/rtw89/fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ping-Ke Shih May 16, 2025, 1:04 a.m. UTC | #1
Ping-Ke Shih <pkshih@realtek.com> wrote:

> From: Chin-Yen Lee <timlee@realtek.com>
> 
> 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>

1 patch(es) applied to rtw-next branch of rtw.git, thanks.

3cc35394fac1 wifi: rtw89: fix firmware scan delay unit for WiFi 6 chips

---
https://github.com/pkshih/rtw.git
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c
index 76350351dfb2..75e5112f519a 100644
--- a/drivers/net/wireless/realtek/rtw89/fw.c
+++ b/drivers/net/wireless/realtek/rtw89/fw.c
@@ -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,