mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
network: Add network_bss_list_clear
This commit is contained in:
parent
b4cebf918a
commit
44d9746e5f
@ -363,6 +363,12 @@ bool network_bss_list_isempty(struct network *network)
|
||||
return l_queue_isempty(network->bss_list);
|
||||
}
|
||||
|
||||
void network_bss_list_clear(struct network *network)
|
||||
{
|
||||
l_queue_destroy(network->bss_list, NULL);
|
||||
network->bss_list = l_queue_new();
|
||||
}
|
||||
|
||||
static struct scan_bss *network_select_bss(struct wiphy *wiphy,
|
||||
struct network *network)
|
||||
{
|
||||
|
@ -63,6 +63,7 @@ int network_autoconnect(struct network *network, struct scan_bss *bss);
|
||||
void network_connect_failed(struct network *network);
|
||||
bool network_bss_add(struct network *network, struct scan_bss *bss);
|
||||
bool network_bss_list_isempty(struct network *network);
|
||||
void network_bss_list_clear(struct network *network);
|
||||
|
||||
bool network_register(struct network *network, const char *path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user