]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Include the MLD MAC address of the AP MLD in new-STA prints
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 10 Aug 2023 08:46:07 +0000 (11:46 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 10 Aug 2023 09:37:47 +0000 (12:37 +0300)
This makes the "Discovered new STA" entries in the debug log easier to
use when analyzing roaming cases with MLO.

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

index f3a538fef810d2f9ffbedb01a8e5f3aeb3ed5d6f..d6110217ccfdb40d88a0c5db3bb1c57df488c0ea 100644 (file)
@@ -97,8 +97,10 @@ struct wlantest_sta * sta_get(struct wlantest_bss *bss, const u8 *addr)
        sta->bss = bss;
        os_memcpy(sta->addr, addr, ETH_ALEN);
        dl_list_add(&bss->sta, &sta->list);
-       wpa_printf(MSG_DEBUG, "Discovered new STA " MACSTR " in BSS " MACSTR,
-                  MAC2STR(sta->addr), MAC2STR(bss->bssid));
+       wpa_printf(MSG_DEBUG, "Discovered new STA " MACSTR " in BSS " MACSTR
+                  " (MLD " MACSTR ")",
+                  MAC2STR(sta->addr),
+                  MAC2STR(bss->bssid), MAC2STR(bss->mld_mac_addr));
        return sta;
 }