diff options
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index a17d6bc6b22c..7ca4b5133123 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -6002,7 +6002,7 @@ nl80211_parse_sched_scan(struct wiphy *wiphy, struct wireless_dev *wdev, | |||
6002 | } | 6002 | } |
6003 | 6003 | ||
6004 | /* there was no other matchset, so the RSSI one is alone */ | 6004 | /* there was no other matchset, so the RSSI one is alone */ |
6005 | if (i == 0) | 6005 | if (i == 0 && n_match_sets) |
6006 | request->match_sets[0].rssi_thold = default_match_rssi; | 6006 | request->match_sets[0].rssi_thold = default_match_rssi; |
6007 | 6007 | ||
6008 | request->min_rssi_thold = INT_MAX; | 6008 | request->min_rssi_thold = INT_MAX; |