mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* sunxi-5.18: initial state: add patches megous * sunxi-5.18: Adapt patches for error-free application * remove unused patches * Add the ability to compile sunxi-5.18
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From d6378550de2b826fda376273f055c45d790ce0ab Mon Sep 17 00:00:00 2001
|
|
From: Po Hao Huang <phhuang@realtek.com>
|
|
Date: Fri, 1 Apr 2022 13:50:43 +0800
|
|
Subject: [PATCH 439/515] rtw89: fix misconfiguration on hw_scan channel time
|
|
|
|
Without this patch, hw scan won't stay long enough on DFS/passive
|
|
channels. Found previous logic error and fix it.
|
|
|
|
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/20220401055043.12512-5-pkshih@realtek.com
|
|
---
|
|
drivers/net/wireless/realtek/rtw89/fw.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c
|
|
index 5985b40950bc..fc77d9bfd626 100644
|
|
--- a/drivers/net/wireless/realtek/rtw89/fw.c
|
|
+++ b/drivers/net/wireless/realtek/rtw89/fw.c
|
|
@@ -2101,7 +2101,7 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type,
|
|
ch_info->num_pkt = 0;
|
|
break;
|
|
case RTW89_CHAN_DFS:
|
|
- ch_info->period = min_t(u8, ch_info->period,
|
|
+ ch_info->period = max_t(u8, ch_info->period,
|
|
RTW89_DFS_CHAN_TIME);
|
|
ch_info->dwell_time = RTW89_DWELL_TIME;
|
|
break;
|
|
--
|
|
2.35.3
|
|
|