3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

station: Match on BSSID and SSID on Roamed event

Since APs might operate multiple SSIDs on the same BSSID, it is not
enough to match on the BSSID only.
This commit is contained in:
Denis Kenzior 2022-09-27 10:59:11 -05:00
parent fd035cba9a
commit 803e2d6dd2

View File

@ -2790,8 +2790,7 @@ static void station_event_roamed(struct station *station, struct scan_bss *new)
network_bss_update(station->connected_network, new);
/* Remove new BSS if it exists in past scan results */
stale = l_queue_remove_if(station->bss_list, bss_match_bssid,
new->addr);
stale = l_queue_remove_if(station->bss_list, bss_match, new);
if (stale)
scan_bss_free(stale);