3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

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.
This commit is contained in:
James Prestwood 2021-05-12 16:01:42 -07:00 committed by Denis Kenzior
parent 9b7d761db5
commit 78fe1cc0ef
2 changed files with 9 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);