Fallback to RSNXE when AP is not using valid RSN Overrding

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>
This commit is contained in:
Veerendranath Jakkam 2024-06-30 02:49:21 +05:30 committed by Jouni Malinen
parent 4417b5ba86
commit 526ea193c8

View file

@ -2056,7 +2056,7 @@ const u8 * wpa_bss_get_rsnxe(struct wpa_supplicant *wpa_s,
if (!tmp || tmp[0] == WLAN_EID_RSN) { if (!tmp || tmp[0] == WLAN_EID_RSN) {
/* An acceptable RSNE override element was not /* An acceptable RSNE override element was not
* found, so need to ignore RSNXE overriding. */ * found, so need to ignore RSNXE overriding. */
return NULL; goto out;
} }
return ie; return ie;
@ -2069,9 +2069,10 @@ const u8 * wpa_bss_get_rsnxe(struct wpa_supplicant *wpa_s,
wpa_printf(MSG_DEBUG, "BSS " MACSTR wpa_printf(MSG_DEBUG, "BSS " MACSTR
" advertises RSNXE Override element without RSNE Override 2 element - ignore RSNXE Override element for MLO", " advertises RSNXE Override element without RSNE Override 2 element - ignore RSNXE Override element for MLO",
MAC2STR(bss->bssid)); MAC2STR(bss->bssid));
return NULL; goto out;
} }
} }
out:
return wpa_bss_get_ie(bss, WLAN_EID_RSNX); return wpa_bss_get_ie(bss, WLAN_EID_RSNX);
} }