]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Parse Extended MLD Capabilities And Operations in Common Info
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 24 Jan 2025 16:22:36 +0000 (18:22 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 24 Jan 2025 16:23:35 +0000 (18:23 +0200)
Show the value in a clearer debug print instead of the generic "Extra
information at the end of Common Info".

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wlantest/rx_mgmt.c

index 0f00a883499ff09ddfe6c513979c4a9d498630c9..c9d0e1bee5d41f502ca13190ae25daad57317a80 100644 (file)
@@ -197,6 +197,18 @@ static void parse_basic_ml(const u8 *ie, size_t len, bool ap,
                pos++;
        }
 
+       if (ctrl & BASIC_MULTI_LINK_CTRL_PRES_EXT_MLD_CAP) {
+               if (ci_end - pos < 2) {
+                       wpa_printf(MSG_INFO,
+                                  "No room for Extended MLD Capabilities And Operations in Multi-Link Common Info");
+                       return;
+               }
+               wpa_printf(MSG_DEBUG,
+                          "Extended MLD Capabilities And Operations: 0x%x",
+                          WPA_GET_LE16(pos));
+               pos += 2;
+       }
+
        if (pos < ci_end) {
                wpa_hexdump(MSG_INFO,
                            "Extra information at the end of Common Info",