wpa_supplicant: Do not roam to an associated link

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>
This commit is contained in:
Ilan Peer 2024-04-08 16:06:56 +03:00 committed by Jouni Malinen
parent 0df2c72c54
commit 6f3e7c5d3e

View 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, MAC2STR(selected->bssid), selected->freq, selected->level,
selected->snr, selected->est_throughput); 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 && if (wpa_s->current_ssid->bssid_set &&
ether_addr_equal(selected->bssid, wpa_s->current_ssid->bssid)) { ether_addr_equal(selected->bssid, wpa_s->current_ssid->bssid)) {
wpa_dbg(wpa_s, MSG_DEBUG, "Allow reassociation - selected BSS " wpa_dbg(wpa_s, MSG_DEBUG, "Allow reassociation - selected BSS "