]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
cfg80211: don't skip multi-bssid index element
authorSara Sharon <sara.sharon@intel.com>
Fri, 15 Mar 2019 15:39:02 +0000 (17:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Apr 2019 11:02:11 +0000 (13:02 +0200)
When creating the IEs for the nontransmitted BSS, the index
element is skipped. However, we need to get DTIM values from
it, so don't skip it.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c

index 287518c6caa40204525993d8b2477e269324f378..49f700a1460b0274260977ef0e7256d2d087724f 100644 (file)
@@ -269,8 +269,7 @@ static size_t cfg80211_gen_new_ie(const u8 *ie, size_t ielen,
        tmp_new = sub_copy;
        while (tmp_new + tmp_new[1] + 2 - sub_copy <= subie_len) {
                if (!(tmp_new[0] == WLAN_EID_NON_TX_BSSID_CAP ||
-                     tmp_new[0] == WLAN_EID_SSID ||
-                     tmp_new[0] == WLAN_EID_MULTI_BSSID_IDX)) {
+                     tmp_new[0] == WLAN_EID_SSID)) {
                        memcpy(pos, tmp_new, tmp_new[1] + 2);
                        pos += tmp_new[1] + 2;
                }