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 <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-08-10 11:46:07 +03:00 committed by Jouni Malinen
parent 5434a42ec6
commit a19fcf685c

View file

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