From 709d46da73da90dddf52f4a83a02558dcb94a9b9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 10 Aug 2023 12:02:07 +0300 Subject: [PATCH] wlantest: Do not claim update to AP MD MAC address if no change The "Updated AP MLD MAC Address from EAPOL-Key 1/4" can be confusing when there is actually no change. Signed-off-by: Jouni Malinen --- wlantest/rx_eapol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wlantest/rx_eapol.c b/wlantest/rx_eapol.c index 629aa973b..742efb92c 100644 --- a/wlantest/rx_eapol.c +++ b/wlantest/rx_eapol.c @@ -162,7 +162,8 @@ static void rx_data_eapol_key_1_of_4(struct wlantest *wt, const u8 *dst, wpa_printf(MSG_DEBUG, "Learned AP MLD MAC Address from EAPOL-Key 1/4: " MACSTR, MAC2STR(ie.mac_addr)); - } else { + } else if (os_memcmp(bss->mld_mac_addr, ie.mac_addr, + ETH_ALEN) != 0) { wpa_printf(MSG_DEBUG, "Updated AP MLD MAC Address from EAPOL-Key 1/4: " MACSTR " --> " MACSTR,