Skip to content

Commit 65ee497

Browse files
Po Hao HuangKalle Valo
authored andcommitted
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
1 parent 841f263 commit 65ee497

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/realtek/rtw89

1 file changed

+1
-1
lines changed

drivers/net/wireless/realtek/rtw89/fw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type,
21012101
ch_info->num_pkt = 0;
21022102
break;
21032103
case RTW89_CHAN_DFS:
2104-
ch_info->period = min_t(u8, ch_info->period,
2104+
ch_info->period = max_t(u8, ch_info->period,
21052105
RTW89_DFS_CHAN_TIME);
21062106
ch_info->dwell_time = RTW89_DWELL_TIME;
21072107
break;

0 commit comments

Comments
 (0)