Message ID | 1248495715.2391.7.camel@ct (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
--- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -588,6 +588,10 @@ static void ieee80211_scan_state_set_channel(struct ieee80211_local *local, struct ieee80211_sub_if_data *sdata = local->scan_sdata; skip = 0; + + if (local->scan_channel_idx >= local->scan_req->n_channels) + return; + chan = local->scan_req->channels[local->scan_channel_idx]; if (chan->flags & IEEE80211_CHAN_DISABLED ||