]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: Accept Authentication frame from an MLD AP
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Tue, 6 Dec 2022 09:46:08 +0000 (11:46 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 17 Dec 2022 15:38:03 +0000 (17:38 +0200)
The driver is expected to translate the link addresses to MLD addresses
when processing an Authentication frame from a MLD AP. Thus, accept
Authentication frame when the peer matches the expected MLD address.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/sme.c

index af906448dc2f282aba7b1448b4c90727b8741fe4..feb3b114bebf43e148f60022eae2b50fe933d690 100644 (file)
@@ -1849,7 +1849,9 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data)
                return;
        }
 
-       if (os_memcmp(wpa_s->pending_bssid, data->auth.peer, ETH_ALEN) != 0) {
+       if (os_memcmp(wpa_s->pending_bssid, data->auth.peer, ETH_ALEN) != 0 &&
+           !(wpa_s->valid_links &&
+             os_memcmp(wpa_s->ap_mld_addr, data->auth.peer, ETH_ALEN) == 0)) {
                wpa_dbg(wpa_s, MSG_DEBUG, "SME: Ignore authentication with "
                        "unexpected peer " MACSTR,
                        MAC2STR(data->auth.peer));