eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 78fe1cc0efa6ff63c056947c29d12c5340e5ef43
parent 9b7d761db5607661ad23f8ce7fae5f09799e1be5
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 12 May 2021 16:01:42 -0700

network: add network_bss_list_get_entries

Gets the first l_queue_entry in the networks BSS list. Useful
for iterating only a given networks BSS's outside of network.c.

Diffstat:
Msrc/network.c | 6++++++
Msrc/network.h | 3+++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/network.c b/src/network.c @@ -761,6 +761,12 @@ bool network_has_erp_identity(struct network *network) return ret; } +const struct l_queue_entry *network_bss_list_get_entries( + struct network *network) +{ + return l_queue_get_entries(network->bss_list); +} + struct scan_bss *network_bss_select(struct network *network, bool fallback_to_blacklist) { diff --git a/src/network.h b/src/network.h @@ -81,3 +81,6 @@ const struct iovec *network_get_extra_ies(struct network *network, size_t *num_elems); bool network_has_erp_identity(struct network *network); + +const struct l_queue_entry *network_bss_list_get_entries( + struct network *network);