MLD STA: Do not fail on unknown IEs in Authentication frames

Fail MLD address validation only if Authentication frames IE parsing
actually failed, i.e., ignore all unknown IEs.

This is needed to avoid authentication failure when the Authentication
frames include IEs which are not handled by ieee802_11_parse_elems(),
e.g., AKM Suite Selector IE.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
Veerendranath Jakkam 2023-04-13 03:51:15 +05:30 committed by Jouni Malinen
parent f8931fcbaf
commit c70405cef6

View file

@ -531,7 +531,7 @@ static void wpas_sme_ml_auth(struct wpa_supplicant *wpa_s,
if (ieee802_11_parse_elems(data->auth.ies + ie_offset,
data->auth.ies_len - ie_offset,
&elems, 0) != ParseOK) {
&elems, 0) == ParseFailed) {
wpa_printf(MSG_DEBUG, "MLD: Failed parsing elements");
goto out;
}
@ -1598,7 +1598,7 @@ static int sme_external_ml_auth(struct wpa_supplicant *wpa_s,
const u8 *mld_addr;
if (ieee802_11_parse_elems(data + ie_offset, len - ie_offset,
&elems, 0) != ParseOK) {
&elems, 0) == ParseFailed) {
wpa_printf(MSG_DEBUG, "MLD: Failed parsing elements");
return -1;
}