network: add back network_bss_list_clear

Rename network_bss_update_start back to network_bss_list_clear, since
this is what its now doing again.
This commit is contained in:
James Prestwood 2024-08-19 08:57:32 -07:00 committed by Denis Kenzior
parent 6d94599977
commit 1a3a035404
3 changed files with 3 additions and 3 deletions

View File

@ -1146,7 +1146,7 @@ const char *network_bss_get_path(const struct network *network,
return __network_path_append_bss(network->object_path, bss); return __network_path_append_bss(network->object_path, bss);
} }
void network_bss_start_update(struct network *network) void network_bss_list_clear(struct network *network)
{ {
l_queue_destroy(network->bss_list, NULL); l_queue_destroy(network->bss_list, NULL);
network->bss_list = l_queue_new(); network->bss_list = l_queue_new();

View File

@ -68,7 +68,7 @@ int network_can_connect_bss(struct network *network,
const struct scan_bss *bss); const struct scan_bss *bss);
int network_autoconnect(struct network *network, struct scan_bss *bss); int network_autoconnect(struct network *network, struct scan_bss *bss);
void network_connect_failed(struct network *network, bool in_handshake); void network_connect_failed(struct network *network, bool in_handshake);
void network_bss_start_update(struct network *network); void network_bss_list_clear(struct network *network);
bool network_bss_add(struct network *network, struct scan_bss *bss); bool network_bss_add(struct network *network, struct scan_bss *bss);
bool network_bss_update(struct network *network, struct scan_bss *bss); bool network_bss_update(struct network *network, struct scan_bss *bss);
const char *network_bss_get_path(const struct network *network, const char *network_bss_get_path(const struct network *network,

View File

@ -1016,7 +1016,7 @@ void station_set_scan_results(struct station *station,
l_queue_foreach_remove(new_bss_list, bss_free_if_ssid_not_utf8, NULL); l_queue_foreach_remove(new_bss_list, bss_free_if_ssid_not_utf8, NULL);
while ((network = l_queue_pop_head(station->networks_sorted))) while ((network = l_queue_pop_head(station->networks_sorted)))
network_bss_start_update(network); network_bss_list_clear(network);
l_queue_clear(station->hidden_bss_list_sorted, NULL); l_queue_clear(station->hidden_bss_list_sorted, NULL);