From 4c6cc29f4a3c73c6281cb263beec37454648c8c9 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 27 Sep 2022 11:04:54 -0500 Subject: [PATCH] station: Match on BSSID and SSID when roaming --- src/station.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/station.c b/src/station.c index 6f6b5fa2..1965e035 100644 --- a/src/station.c +++ b/src/station.c @@ -2314,9 +2314,8 @@ static void station_update_roam_bss(struct station *station, struct scan_bss *bss) { struct network *network = station->connected_network; - struct scan_bss *old; - - old = l_queue_remove_if(station->bss_list, bss_match_bssid, bss->addr); + struct scan_bss *old = + l_queue_remove_if(station->bss_list, bss_match, bss); network_bss_update(network, bss); l_queue_push_tail(station->bss_list, bss);