Message ID | 1421087394-2712-22-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index d702af40ddea..e3251a634446 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -5754,7 +5754,7 @@ static int nl80211_start_sched_scan(struct sk_buff *skb, } /* there was no other matchset, so the RSSI one is alone */ - if (i == 0) + if (i == 0 && n_match_sets) request->match_sets[0].rssi_thold = default_match_rssi; request->min_rssi_thold = INT_MAX;