From: Jouni Malinen Date: Sun, 17 Dec 2023 19:53:52 +0000 (+0200) Subject: AP MLD: Skip unknown Multi-Link element subelements X-Git-Tag: hostap_2_11~630 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38a5ed5fda5826abf5fe53aaac2636f4841404af;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c index 630baa4e8..709151f14 100644 --- a/src/ap/ieee802_11_eht.c +++ b/src/ap/ieee802_11_eht.c @@ -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 */