[PATCH 3/3] wifi: ath10k: add firmware feature bit to force passive scan on 5 GHz
From: Gianluca Boiano
Date: Sat Nov 21 2026 - 14:50:21 EST
On SDM660 (WCN3990), no 5 GHz BSS is ever found when 5 GHz channels
are scanned actively. Marking the channels passive makes them show up.
2.4 GHz is unaffected.
Add ATH10K_FW_FEATURE_PASSIVE_SCAN_5GHZ; when set by firmware-N.bin,
mark every 5 GHz channel passive in the WMI channel list. Since no
probe requests are sent on 5 GHz with the bit set, hidden 5 GHz
networks are not discovered, and the flag applies to the whole channel
list, so it should only be set for firmware used in station mode.
Tested on SDM660 (WCN3990).
Signed-off-by: Gianluca Boiano <morf3089@xxxxxxxxx>
---
drivers/net/wireless/ath/ath10k/core.c | 1 +
drivers/net/wireless/ath/ath10k/core.h | 5 +++++
drivers/net/wireless/ath/ath10k/mac.c | 5 +++++
3 files changed, 11 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index 6272e0f62..6ce819e06 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -817,6 +817,7 @@ static const char *const ath10k_core_fw_feature_str[] = {
[ATH10K_FW_FEATURE_IRAM_RECOVERY] = "iram-recovery",
[ATH10K_FW_FEATURE_NO_CHAN_STAT_EVENT] = "no-chan-stat-event",
[ATH10K_FW_FEATURE_NO_QUIET_MODE] = "no-quiet-mode",
+ [ATH10K_FW_FEATURE_PASSIVE_SCAN_5GHZ] = "passive-scan-5ghz",
};
static unsigned int ath10k_core_get_fw_feature_str(char *buf,
diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h
index 5dd21f063..482195d28 100644
--- a/drivers/net/wireless/ath/ath10k/core.h
+++ b/drivers/net/wireless/ath/ath10k/core.h
@@ -846,6 +846,11 @@ enum ath10k_fw_features {
*/
ATH10K_FW_FEATURE_NO_QUIET_MODE = 24,
+ /* Firmware does not tune the radio during active scan on 5 GHz
+ * channels, all 5 GHz channels must be scanned passively.
+ */
+ ATH10K_FW_FEATURE_PASSIVE_SCAN_5GHZ = 25,
+
/* keep last */
ATH10K_FW_FEATURE_COUNT,
};
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 8e604697d..7710310dd 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -3448,6 +3448,11 @@ static int ath10k_update_channel_list(struct ath10k *ar)
passive = channel->flags & IEEE80211_CHAN_NO_IR;
ch->passive = passive;
+ if (channel->band == NL80211_BAND_5GHZ &&
+ test_bit(ATH10K_FW_FEATURE_PASSIVE_SCAN_5GHZ,
+ ar->running_fw->fw_file.fw_features))
+ ch->passive = true;
+
/* the firmware is ignoring the "radar" flag of the
* channel and is scanning actively using Probe Requests
* on "Radar detection"/DFS channels which are not
--
2.56.1