eiwd

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

commit 6e70c84f8ea46a26e3dbeeb4787d50f29fc9f00d
parent dc87830aaca3266e832eff76e84ca5f1c93780a8
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Wed,  3 Oct 2018 23:37:44 +0200

station: Ignore ad-hoc networks in scan results

If there are Ad-hoc BSSes they should be present in the scan results
together with regular APs as far as scan.c is concerned.  But in
station mode we can't connect to them -- the Connect method will fail and
autoconnect would fail.  Since we have no property to indicate a
network is an IBSS just filter these results out for now.  There are
perhaps better solutions but the benefit is very low.

Diffstat:
Msrc/scan.h | 1-
Msrc/station.c | 5+++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/scan.h b/src/scan.h @@ -41,7 +41,6 @@ typedef void (*scan_freq_set_func_t)(uint32_t freq, void *userdata); struct scan_freq_set; struct ie_rsn_info; -enum ie_bss_capability; struct scan_bss { uint8_t addr[6]; diff --git a/src/station.c b/src/station.c @@ -264,6 +264,11 @@ static struct network *station_add_seen_bss(struct station *station, memcpy(ssid, bss->ssid, bss->ssid_len); ssid[bss->ssid_len] = '\0'; + if (!(bss->capability & IE_BSS_CAP_ESS)) { + l_debug("Ignoring non-ESS BSS \"%s\"", ssid); + return NULL; + } + memset(&info, 0, sizeof(info)); r = scan_bss_get_rsn_info(bss, &info); if (r < 0) {