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:
parent
f8931fcbaf
commit
c70405cef6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue