eiwd

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

commit bed116e319896088be9197552a4ab94b9b3feb40
parent cb8d592b13c5f2ecfb5bec9483a2e8f79872449d
Author: James Prestwood <james.prestwood@linux.intel.com>
Date:   Fri, 14 Jun 2019 13:12:08 -0700

scan: add new hs20_capable member to scan_bss

If the BSS is Hotspot 2.0 capable this will get set

Diffstat:
Msrc/scan.c | 9+++++----
Msrc/scan.h | 1+
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/scan.c b/src/scan.c @@ -734,15 +734,16 @@ static bool start_next_scan_request(struct scan_context *sc) static bool scan_parse_vendor_specific(struct scan_bss *bss, const void *data, uint16_t len) { - if (!bss->wpa && is_ie_wpa_ie(data, len)) { + if (!bss->wpa && is_ie_wpa_ie(data, len)) bss->wpa = l_memdup(data - 2, len + 2); - return true; - } else if (!bss->osen && is_ie_wfa_ie(data, len, IE_WFA_OI_OSEN)) + else if (!bss->osen && is_ie_wfa_ie(data, len, IE_WFA_OI_OSEN)) bss->osen = l_memdup(data - 2, len + 2); + else if (is_ie_wfa_ie(data, len, IE_WFA_OI_HS20_INDICATION)) + bss->hs20_capable = true; else return false; - return false; + return true; } /* diff --git a/src/scan.h b/src/scan.h @@ -69,6 +69,7 @@ struct scan_bss { bool ht_capable : 1; bool vht_capable : 1; bool anqp_capable : 1; + bool hs20_capable : 1; }; struct scan_parameters {