summaryrefslogtreecommitdiffstats
path: root/net/wireless/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r--net/wireless/scan.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index d313c9befa23..ff1016607f0b 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -1723,7 +1723,12 @@ cfg80211_update_notlisted_nontrans(struct wiphy *wiphy,
1723 return; 1723 return;
1724 new_ie_len -= trans_ssid[1]; 1724 new_ie_len -= trans_ssid[1];
1725 mbssid = cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen); 1725 mbssid = cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen);
1726 if (!mbssid) 1726 /*
1727 * It's not valid to have the MBSSID element before SSID
1728 * ignore if that happens - the code below assumes it is
1729 * after (while copying things inbetween).
1730 */
1731 if (!mbssid || mbssid < trans_ssid)
1727 return; 1732 return;
1728 new_ie_len -= mbssid[1]; 1733 new_ie_len -= mbssid[1];
1729 rcu_read_lock(); 1734 rcu_read_lock();