From: Jouni Malinen Date: Thu, 10 Aug 2023 09:02:07 +0000 (+0300) Subject: wlantest: Do not claim update to AP MD MAC address if no change X-Git-Tag: hostap_2_11~1062 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709d46da73da90dddf52f4a83a02558dcb94a9b9;p=thirdparty%2Fhostap.git 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 --- 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,