]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Do not claim update to AP MD MAC address if no change
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 10 Aug 2023 09:02:07 +0000 (12:02 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 10 Aug 2023 09:37:47 +0000 (12:37 +0300)
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 <quic_jouni@quicinc.com>
wlantest/rx_eapol.c

index 629aa973bc8f3a56c18afaba480fa145025795ae..742efb92c381a732456090ac56c384b6c743f259 100644 (file)
@@ -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,