mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From b6b142f644d2d88e2ceabe0aa4479e0a09ba1ea9 Mon Sep 17 00:00:00 2001
|
|
From: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
|
|
Date: Tue, 28 Sep 2021 14:00:43 +0300
|
|
Subject: [PATCH] ath11k: fix survey dump collection in 6 GHz
|
|
|
|
When ath11k receives survey request, choose the 6 GHz band when enabled.
|
|
Without this, survey request does not include any 6 GHz band results,
|
|
thereby causing auto channel selection to fail.
|
|
|
|
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01386-QCAHKSWPL_SILICONZ-1
|
|
|
|
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
|
|
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
|
|
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
|
Link: https://lore.kernel.org/r/20210722102054.43419-3-jouni@codeaurora.org
|
|
---
|
|
drivers/net/wireless/ath/ath11k/mac.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/mac.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/mac.c
|
|
@@ -7182,7 +7182,13 @@ static int ath11k_mac_op_get_survey(stru
|
|
|
|
if (!sband)
|
|
sband = hw->wiphy->bands[NL80211_BAND_5GHZ];
|
|
+ if (sband && idx >= sband->n_channels) {
|
|
+ idx -= sband->n_channels;
|
|
+ sband = NULL;
|
|
+ }
|
|
|
|
+ if (!sband)
|
|
+ sband = hw->wiphy->bands[NL80211_BAND_6GHZ];
|
|
if (!sband || idx >= sband->n_channels) {
|
|
ret = -ENOENT;
|
|
goto exit;
|