mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
From 8cd5c0847160aa9482d7f93ed63c4d72bad70cdf Mon Sep 17 00:00:00 2001
|
|
From: Baochen Qiang <bqiang@codeaurora.org>
|
|
Date: Mon, 11 Oct 2021 18:18:00 +0300
|
|
Subject: [PATCH] ath11k: Identify DFS channel when sending scan channel list
|
|
command
|
|
|
|
WMI_CHAN_INFO_DFS flag should be set when configuring a DFS channel
|
|
included in scan channel list. Without it, firmware will not send a
|
|
probe request frame which is needed in connection to an AP configured
|
|
with hidden SSID/network_id. So fix this to allow probe request frames
|
|
to be sent in cases where a beacon frame has been seen on the channel
|
|
first.
|
|
|
|
Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1
|
|
|
|
Signed-off-by: Baochen Qiang <bqiang@codeaurora.org>
|
|
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
|
Link: https://lore.kernel.org/r/20211011054919.77071-1-bqiang@codeaurora.org
|
|
---
|
|
drivers/net/wireless/ath/ath11k/wmi.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/wmi.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/wmi.c
|
|
@@ -2372,6 +2372,8 @@ int ath11k_wmi_send_scan_chan_list_cmd(s
|
|
chan_info->info |= WMI_CHAN_INFO_QUARTER_RATE;
|
|
if (tchan_info->psc_channel)
|
|
chan_info->info |= WMI_CHAN_INFO_PSC;
|
|
+ if (tchan_info->dfs_set)
|
|
+ chan_info->info |= WMI_CHAN_INFO_DFS;
|
|
|
|
chan_info->info |= FIELD_PREP(WMI_CHAN_INFO_MODE,
|
|
tchan_info->phy_mode);
|