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);