提交 65ee4971 编写于 作者: P Po Hao Huang 提交者: Kalle Valo

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: NPo Hao Huang <phhuang@realtek.com>
Signed-off-by: NPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: NKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220401055043.12512-5-pkshih@realtek.com
上级 841f2633
...@@ -2101,7 +2101,7 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type, ...@@ -2101,7 +2101,7 @@ static void rtw89_hw_scan_add_chan(struct rtw89_dev *rtwdev, int chan_type,
ch_info->num_pkt = 0; ch_info->num_pkt = 0;
break; break;
case RTW89_CHAN_DFS: 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); RTW89_DFS_CHAN_TIME);
ch_info->dwell_time = RTW89_DWELL_TIME; ch_info->dwell_time = RTW89_DWELL_TIME;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册