mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +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:
parent
d03b06db85
commit
197087d081
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user