summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-09-26 15:45:04 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-10-07 15:24:10 +0200
commit9beed8de806644b59729d862e66e8a4eef894fa8 (patch)
tree69571014a2d7db1c0655a6a7ed457a9752b69797 /net
parent0143ea09b63d58ed3e19ffdfc444cc23d8d877b6 (diff)
downloadlinux-9beed8de806644b59729d862e66e8a4eef894fa8.tar.gz
linux-9beed8de806644b59729d862e66e8a4eef894fa8.tar.bz2
linux-9beed8de806644b59729d862e66e8a4eef894fa8.zip
wifi: mac80211: set internal scan request BSSID
If any driver relies entirely on the scan request BSSID, then that would be wrong for internal scans. Initialize it to the broadcast address since we don't otherwise use the field. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 46f3eddc2388..25e72812000e 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -1155,6 +1155,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
if (!local->int_scan_req)
return -ENOMEM;
+ eth_broadcast_addr(local->int_scan_req->bssid);
+
for (band = 0; band < NUM_NL80211_BANDS; band++) {
if (!local->hw.wiphy->bands[band])
continue;