projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
858ebf4
)
mt76: mt7921: enable random mac addr during scanning
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Sat, 30 Jan 2021 12:28:36 +0000
(13:28 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Sun, 11 Apr 2021 16:50:38 +0000
(18:50 +0200)
Notify mac80211 mt7921 devices support random mac address during hw
frequency scanning
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7921/init.c
b/drivers/net/wireless/mediatek/mt76/mt7921/init.c
index 89a13b4a74a4538d9bedbcf6a20c4624c0026690..4070f7156aa5cab70f7990459ceec1a0b5b8ccb8 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7921/init.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7921/init.c
@@
-95,6
+95,7
@@
mt7921_init_wiphy(struct ieee80211_hw *hw)
wiphy->flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH;
wiphy->reg_notifier = mt7921_regd_notifier;
+ wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR;
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_SET_SCAN_DWELL);
ieee80211_hw_set(hw, SINGLE_SCAN_ON_ALL_BANDS);