station: Match on BSSID and SSID when roaming

This commit is contained in:
Denis Kenzior 2022-09-27 11:04:54 -05:00
parent 803e2d6dd2
commit 4c6cc29f4a
1 changed files with 2 additions and 3 deletions

View File

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