network: Add network_bss_list_isempty

This commit is contained in:
Denis Kenzior 2016-05-16 16:13:36 -05:00
parent f177f75f92
commit b4cebf918a
2 changed files with 6 additions and 0 deletions

View File

@ -358,6 +358,11 @@ bool network_bss_add(struct network *network, struct scan_bss *bss)
scan_bss_rank_compare, NULL);
}
bool network_bss_list_isempty(struct network *network)
{
return l_queue_isempty(network->bss_list);
}
static struct scan_bss *network_select_bss(struct wiphy *wiphy,
struct network *network)
{

View File

@ -62,6 +62,7 @@ void network_sync_psk(struct network *network);
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);
bool network_register(struct network *network, const char *path);