3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

station: use network_update_known_frequencies

Updates each network with its new, most current, set of BSS's
for the different types of scans: dbus/autoconnect, hidden, and
OWE.
This commit is contained in:
James Prestwood 2024-01-26 12:22:41 -08:00 committed by Denis Kenzior
parent d03b06db85
commit 197087d081
2 changed files with 6 additions and 3 deletions

View File

@ -1112,9 +1112,6 @@ bool network_bss_add(struct network *network, struct scan_bss *bss)
NULL))
return false;
if (network->info)
known_network_add_frequency(network->info, bss->frequency);
/* Done if BSS is not HS20 or we already have network_info set */
if (!bss->hs20_capable)
return true;

View File

@ -350,6 +350,8 @@ static bool process_network(const void *key, void *data, void *user_data)
l_queue_insert(station->networks_sorted, network,
network_rank_compare, NULL);
network_update_known_frequencies(network);
return false;
}
@ -799,6 +801,8 @@ free:
scan_bss_free(bss);
}
network_update_known_frequencies(network);
l_queue_destroy(bss_list, NULL);
done:
@ -3684,6 +3688,8 @@ next:
return true;
}
network_update_known_frequencies(network_psk ?: network_open);
error = network_connect_new_hidden_network(network_psk ?: network_open,
msg);