eiwd

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

commit 887073b5d992ebca415075ea91bd5705bddf1794
parent 6b81b6e46aa299d28f5a9914da9e9f0b7a87f86e
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon, 10 Oct 2022 12:40:10 -0700

station: skip disabled frequencies in neighbor report

Use the disabled frequency list to check if the neighbor report is
including a frequency which IWD cannot use.

Diffstat:
Msrc/station.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/station.c b/src/station.c @@ -1810,6 +1810,8 @@ static void parse_neighbor_report(struct station *station, struct handshake_state *hs = netdev_get_handshake(station->netdev); const struct scan_freq_set *supported = wiphy_get_supported_freqs(station->wiphy); + const struct scan_freq_set *disabled = + wiphy_get_disabled_freqs(station->wiphy); freq_set_md = scan_freq_set_new(); freq_set_no_md = scan_freq_set_new(); @@ -1846,8 +1848,9 @@ static void parse_neighbor_report(struct station *station, if (!(band & wiphy_get_supported_bands(station->wiphy))) continue; - /* Skip if frequency is not supported */ - if (!scan_freq_set_contains(supported, freq)) + /* Skip if frequency is not supported or disabled */ + if (!scan_freq_set_contains(supported, freq) || + scan_freq_set_contains(disabled, freq)) continue; if (!memcmp(info.addr,