eiwd

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

commit 2f500383637143ce67375184e049740e2471fec5
parent 69a5ccbe5cba4293e493c8ce11ac9afd503e9c10
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 25 Feb 2022 14:03:37 -0800

station: check supported frequencies in neighbor report

If the report has an unsupported frequency don't add it to the list.

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

diff --git a/src/station.c b/src/station.c @@ -1715,6 +1715,8 @@ static void parse_neighbor_report(struct station *station, struct scan_freq_set *freq_set_md, *freq_set_no_md; uint32_t current_freq = 0; struct handshake_state *hs = netdev_get_handshake(station->netdev); + const struct scan_freq_set *supported = + wiphy_get_supported_freqs(station->wiphy); freq_set_md = scan_freq_set_new(); freq_set_no_md = scan_freq_set_new(); @@ -1751,6 +1753,10 @@ 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)) + continue; + if (!memcmp(info.addr, station->connected_bss->addr, ETH_ALEN)) { /*