eiwd

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

commit f50a51d94300e7920ab8a819fbd7d31398074eee
parent 38ded68a3828ebb6c001d2fe57ee7da9c6a7ff6e
Author: Alvin Šipraga <alsi@bang-olufsen.dk>
Date:   Thu, 27 May 2021 16:22:27 +0200

network: sync known network frequency on BSS update

When a scan_bss is updated in the BSS list of a known network, it may be
on a new frequency. Sync the known frequencies list accordingly.

Diffstat:
Msrc/network.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/network.c b/src/network.c @@ -691,6 +691,12 @@ bool network_bss_update(struct network *network, struct scan_bss *bss) l_queue_insert(network->bss_list, bss, scan_bss_rank_compare, NULL); + /* Sync frequency for already known networks */ + if (network->info) { + known_network_add_frequency(network->info, bss->frequency); + known_network_frequency_sync(network->info); + } + return true; }