Commit 9beed8de authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0143ea09
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1155,6 +1155,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
	if (!local->int_scan_req)
	if (!local->int_scan_req)
		return -ENOMEM;
		return -ENOMEM;


	eth_broadcast_addr(local->int_scan_req->bssid);

	for (band = 0; band < NUM_NL80211_BANDS; band++) {
	for (band = 0; band < NUM_NL80211_BANDS; band++) {
		if (!local->hw.wiphy->bands[band])
		if (!local->hw.wiphy->bands[band])
			continue;
			continue;