]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Do not roam to an associated link
authorIlan Peer <ilan.peer@intel.com>
Mon, 8 Apr 2024 13:06:56 +0000 (16:06 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 21 Apr 2024 08:00:13 +0000 (11:00 +0300)
When considering to roam to a different BSS and the connection
is an MLD connection, do not roam to a BSS which is already
included in the MLD connection.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/events.c

index e58fc12e9ef5b0fa0ba575c823cd2888eeb38f9c..823556e3a4e0a440e60f12ba97a1410e51f8ea2f 100644 (file)
@@ -2167,6 +2167,11 @@ int wpa_supplicant_need_to_roam_within_ess(struct wpa_supplicant *wpa_s,
                MAC2STR(selected->bssid), selected->freq, selected->level,
                selected->snr, selected->est_throughput);
 
+       if (wpas_ap_link_address(wpa_s, selected->bssid)) {
+               wpa_dbg(wpa_s, MSG_DEBUG, "MLD: associated to selected BSS");
+               return 0;
+       }
+
        if (wpa_s->current_ssid->bssid_set &&
            ether_addr_equal(selected->bssid, wpa_s->current_ssid->bssid)) {
                wpa_dbg(wpa_s, MSG_DEBUG, "Allow reassociation - selected BSS "