scan: add new hs20_capable member to scan_bss

If the BSS is Hotspot 2.0 capable this will get set
This commit is contained in:
James Prestwood 2019-06-14 13:12:08 -07:00 committed by Denis Kenzior
parent cb8d592b13
commit bed116e319
2 changed files with 6 additions and 4 deletions

View File

@ -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;
}
/*

View File

@ -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 {