From a19fcf685caee22bd342a7deb8ce0e9d65109b49 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 10 Aug 2023 11:46:07 +0300 Subject: [PATCH] wlantest: Include the MLD MAC address of the AP MLD in new-STA prints 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 --- wlantest/sta.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wlantest/sta.c b/wlantest/sta.c index f3a538fef..d6110217c 100644 --- a/wlantest/sta.c +++ b/wlantest/sta.c @@ -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; }