projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0143ea0
)
wifi: mac80211: set internal scan request BSSID
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 26 Sep 2022 13:45:04 +0000
(15:45 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 7 Oct 2022 13:24:10 +0000
(15:24 +0200)
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>
net/mac80211/main.c
patch
|
blob
|
history
diff --git
a/net/mac80211/main.c
b/net/mac80211/main.c
index 46f3eddc23887c78598a5349191419a3993acd8b..25e72812000e855e4332aab6a2d6826d60c83e66 100644
(file)
--- 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;