wpa_supplicant was ignoring RSNXE also if the AP is not using valid
RSN overriding combination when the STA supports RSN overriding. Fix
this fallback to the RSNXE when AP is not using valid RSN overriding.
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
if (!tmp || tmp[0] == WLAN_EID_RSN) {
/* An acceptable RSNE override element was not
* found, so need to ignore RSNXE overriding. */
- return NULL;
+ goto out;
}
return ie;
wpa_printf(MSG_DEBUG, "BSS " MACSTR
" advertises RSNXE Override element without RSNE Override 2 element - ignore RSNXE Override element for MLO",
MAC2STR(bss->bssid));
- return NULL;
+ goto out;
}
}
+out:
return wpa_bss_get_ie(bss, WLAN_EID_RSNX);
}