commit 803e2d6dd27ad0475cb1ef4bd2e8b537cafc91fd
parent fd035cba9a49b92cd034552365e6b5cdf29537c7
Author: Denis Kenzior <denkenz@gmail.com>
Date: Tue, 27 Sep 2022 10:59:11 -0500
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.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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);