eiwd

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

commit 45130ec5ee429cc60bb4f2d6f860c0a571959d1e
parent f0848cc44a144745d1fa54d4a7ba2d1741a15160
Author: James Prestwood <james.prestwood@linux.intel.com>
Date:   Wed, 26 Jun 2019 10:42:47 -0700

scan: parse interworking element

Diffstat:
Msrc/scan.c | 10++++++++++
Msrc/scan.h | 1+
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/scan.c b/src/scan.c @@ -894,6 +894,16 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss, scan_parse_advertisement_protocol(bss, iter.data, iter.len); break; + case IE_TYPE_INTERWORKING: + /* + * No bits indicate if venue/HESSID is included, so the + * length is the only way to know. + * (IEEE 802.11-2016 - Figure 9-439) + */ + if (iter.len == 9) + memcpy(bss->hessid, iter.data + 3, 6); + else if (iter.len == 7) + memcpy(bss->hessid, iter.data + 1, 6); } } diff --git a/src/scan.h b/src/scan.h @@ -62,6 +62,7 @@ struct scan_bss { uint8_t ht_ie[28]; uint8_t vht_ie[14]; uint64_t time_stamp; + uint8_t hessid[6]; bool mde_present : 1; bool cc_present : 1; bool cap_rm_neighbor_report : 1;