mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +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))
|
NULL))
|
||||||
return false;
|
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 */
|
/* Done if BSS is not HS20 or we already have network_info set */
|
||||||
if (!bss->hs20_capable)
|
if (!bss->hs20_capable)
|
||||||
return true;
|
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,
|
l_queue_insert(station->networks_sorted, network,
|
||||||
network_rank_compare, NULL);
|
network_rank_compare, NULL);
|
||||||
|
|
||||||
|
network_update_known_frequencies(network);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -799,6 +801,8 @@ free:
|
|||||||
scan_bss_free(bss);
|
scan_bss_free(bss);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
network_update_known_frequencies(network);
|
||||||
|
|
||||||
l_queue_destroy(bss_list, NULL);
|
l_queue_destroy(bss_list, NULL);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
@ -3684,6 +3688,8 @@ next:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
network_update_known_frequencies(network_psk ?: network_open);
|
||||||
|
|
||||||
error = network_connect_new_hidden_network(network_psk ?: network_open,
|
error = network_connect_new_hidden_network(network_psk ?: network_open,
|
||||||
msg);
|
msg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user