]> www.infradead.org Git - users/willy/linux.git/commit
ath11k: fix radar detection in 160 Mhz
authorVenkateswara Naralasetty <quic_vnaralas@quicinc.com>
Wed, 9 Feb 2022 14:13:39 +0000 (19:43 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 14 Feb 2022 17:46:26 +0000 (19:46 +0200)
commit4f6dd92305f74c43f09e2ff867011e0029ee0e0d
tree1f98723fa72b4f65662a9f36f827b286658348f8
parent5ed98fb704d97894a2c7217989fd8290e4b7b985
ath11k: fix radar detection in 160 Mhz

Radar detection fails in the secondary 80 MHz when the
the AP's primary 80 MHz is in non-DFS region in 160 MHz.

This is due to WMI channel flag WMI_CHAN_INFO_DFS_FREQ2 is not set
properly in case of the primary 80 MHz is in non-DFS region.
HALPHY detects the radar pulses in the secondary 80 MHz only when
WMI_CHAN_INFO_DFS_FREQ2 is set.

Fix this issue by setting WMI channel flag WMI_CHAN_INFO_DFS_FREQ2
based on the radar_enabled flag from the channel context.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1

Signed-off-by: Venkateswara Naralasetty <quic_vnaralas@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/1644416019-820-2-git-send-email-quic_vnaralas@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c