From: Johannes Berg Date: Mon, 26 Sep 2022 13:45:04 +0000 (+0200) Subject: wifi: mac80211: set internal scan request BSSID X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9beed8de806644b59729d862e66e8a4eef894fa8;p=linux.git 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 --- diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 46f3eddc23887..25e72812000e8 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;