From b4cebf918a3a56cef6949c8d9856225006882eaa Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 16 May 2016 16:13:36 -0500 Subject: [PATCH] network: Add network_bss_list_isempty --- src/network.c | 5 +++++ src/network.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/network.c b/src/network.c index d2d6499e..2228752b 100644 --- a/src/network.c +++ b/src/network.c @@ -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) { diff --git a/src/network.h b/src/network.h index dd952395..98042a44 100644 --- a/src/network.h +++ b/src/network.h @@ -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);