]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Skip unknown Multi-Link element subelements
authorJouni Malinen <j@w1.fi>
Sun, 17 Dec 2023 19:53:52 +0000 (21:53 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 17 Dec 2023 19:53:52 +0000 (21:53 +0200)
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>
src/ap/ieee802_11_eht.c

index 630baa4e847ecba57a250b61e7b8c4d298bbf8ef..709151f14723daef5db5f0347b8bac11b3265718 100644 (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 */