ath10k: add NL80211_FEATURE_ND_RANDOM_MAC_ADDR for NLO
diff mbox series

Message ID
State New
Headers show
  • ath10k: add NL80211_FEATURE_ND_RANDOM_MAC_ADDR for NLO
Related show

Commit Message

Wen Gong Nov. 7, 2019, 10:50 a.m. UTC
Add NL80211_FEATURE_ND_RANDOM_MAC_ADDR for NLO will enable the random
mac address for netdetect case.
iw command:
iw phy0 wowlan enable net-detect net-detect
randomize=AA:7B:A1:AC:B2:41/FF:FF:FF:FF:FF:FF interval 5000 delay 30
freqs 2412 matches ssid foo.
After suspend, DUT will send probe request with mac AA:7B:A1:AC:B2:41.

Tested with QCA6174 SDIO with firmware

Signed-off-by: Wen Gong <>
 drivers/net/wireless/ath/ath10k/mac.c | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index e8bdb2ba9b18..753a6a174106 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -8911,6 +8911,7 @@  int ath10k_mac_register(struct ath10k *ar)
 		ar->hw->wiphy->max_sched_scan_plan_iterations =
+		ar->hw->wiphy->features |= NL80211_FEATURE_ND_RANDOM_MAC_ADDR;
 	ar->hw->vif_data_size = sizeof(struct ath10k_vif);