Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 513b6aa4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net/wireless: Fix kernel crash while doing iwlist scan"

parents 23f6b299 a71e28dc
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1152,8 +1152,6 @@ int cfg80211_wext_siwscan(struct net_device *dev,
		if (wreq->scan_type == IW_SCAN_TYPE_PASSIVE)
			creq->n_ssids = 0;
	}
	for (i = 0; i < IEEE80211_NUM_BANDS; i++)
		creq->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1;

	for (i = 0; i < IEEE80211_NUM_BANDS; i++)
		if (wiphy->bands[i])