From f177f75f92692ae5ceae02d57ccd3c4c5dcdc79f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 16 May 2016 16:06:41 -0500 Subject: [PATCH] network: Add network_bss_add --- src/network.c | 6 ++++++ src/network.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/network.c b/src/network.c index 5f68c26d..d2d6499e 100644 --- a/src/network.c +++ b/src/network.c @@ -352,6 +352,12 @@ void network_connect_failed(struct network *network) } } +bool network_bss_add(struct network *network, struct scan_bss *bss) +{ + return l_queue_insert(network->bss_list, bss, + scan_bss_rank_compare, NULL); +} + static struct scan_bss *network_select_bss(struct wiphy *wiphy, struct network *network) { diff --git a/src/network.h b/src/network.h index 1fd5ec87..dd952395 100644 --- a/src/network.h +++ b/src/network.h @@ -61,6 +61,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_register(struct network *network, const char *path);