eiwd

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

commit 197087d081a6785afaf8f64b5d1837db3d8e63cf
parent d03b06db85a777f91c12368b2f50cd421740ce41
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 26 Jan 2024 12:22:41 -0800

station: use network_update_known_frequencies

Updates each network with its new, most current, set of BSS's
for the different types of scans: dbus/autoconnect, hidden, and
OWE.

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

diff --git a/src/network.c b/src/network.c @@ -1112,9 +1112,6 @@ bool network_bss_add(struct network *network, struct scan_bss *bss) NULL)) return false; - if (network->info) - known_network_add_frequency(network->info, bss->frequency); - /* Done if BSS is not HS20 or we already have network_info set */ if (!bss->hs20_capable) return true; diff --git a/src/station.c b/src/station.c @@ -350,6 +350,8 @@ static bool process_network(const void *key, void *data, void *user_data) l_queue_insert(station->networks_sorted, network, network_rank_compare, NULL); + network_update_known_frequencies(network); + return false; } @@ -799,6 +801,8 @@ free: scan_bss_free(bss); } + network_update_known_frequencies(network); + l_queue_destroy(bss_list, NULL); done: @@ -3684,6 +3688,8 @@ next: return true; } + network_update_known_frequencies(network_psk ?: network_open); + error = network_connect_new_hidden_network(network_psk ?: network_open, msg);