diff mbox series

wifi: ath12k: Identify DFS channel when sending scan channel list command

Message ID 20230316041144.7770-1-quic_bqiang@quicinc.com (mailing list archive)
State Accepted
Commit 4c26033d75e414cf0c500055ec58511f93684d87
Delegated to: Kalle Valo
Headers show
Series wifi: ath12k: Identify DFS channel when sending scan channel list command | expand

Commit Message

Baochen Qiang March 16, 2023, 4:11 a.m. UTC
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: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
---
 drivers/net/wireless/ath/ath12k/wmi.c | 3 +++
 1 file changed, 3 insertions(+)


base-commit: 3df3715e556027e94246b2cb30986563362a65f4

Comments

Kalle Valo March 22, 2023, 10:06 a.m. UTC | #1
Baochen Qiang <quic_bqiang@quicinc.com> wrote:

> 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: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
> 
> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

4c26033d75e4 wifi: ath12k: Identify DFS channel when sending scan channel list command
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c
index 3e6991120e53..af910296c41e 100644
--- a/drivers/net/wireless/ath/ath12k/wmi.c
+++ b/drivers/net/wireless/ath/ath12k/wmi.c
@@ -2438,6 +2438,9 @@  int ath12k_wmi_send_scan_chan_list_cmd(struct ath12k *ar,
 			if (channel_arg->psc_channel)
 				chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_PSC);
 
+			if (channel_arg->dfs_set)
+				chan_info->info |= cpu_to_le32(WMI_CHAN_INFO_DFS);
+
 			chan_info->info |= le32_encode_bits(channel_arg->phy_mode,
 							    WMI_CHAN_INFO_MODE);
 			*reg1 |= le32_encode_bits(channel_arg->minpower,