AP MLD: Skip unknown Multi-Link element subelements

Instead of rejecting the Multi-Link element, skip unknown subelements to
be less likely to cause interop issues for future. IEEE P802.11be/D5.0
allows other optional subelements to be included here.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2023-12-17 21:53:52 +02:00
parent d1a2d9bbcb
commit 38a5ed5fda

View file

@ -1269,9 +1269,11 @@ u16 hostapd_process_ml_assoc_req(struct hostapd_data *hapd,
if (*pos != MULTI_LINK_SUB_ELEM_ID_PER_STA_PROFILE) {
wpa_printf(MSG_DEBUG,
"MLD: Unexpected Multi-Link element subelement ID=%u",
"MLD: Skip unknown Multi-Link element subelement ID=%u",
*pos);
goto out;
pos += 2 + sub_elem_len;
ml_len -= 2 + sub_elem_len;
continue;
}
/* Skip the subelement ID and the length */