From 803e2d6dd27ad0475cb1ef4bd2e8b537cafc91fd Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 27 Sep 2022 10:59:11 -0500 Subject: [PATCH] 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. --- src/station.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/station.c b/src/station.c index 798fab89..6f6b5fa2 100644 --- a/src/station.c +++ b/src/station.c @@ -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);