3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00

scan: Extract WSC IEs

This commit is contained in:
Denis Kenzior 2015-09-23 08:44:46 -05:00
parent 0b298dd313
commit 46a0c1db00
2 changed files with 6 additions and 0 deletions

View File

@ -510,6 +510,9 @@ static struct scan_bss *scan_parse_attr_bss(struct l_genl_attr *attr)
data, len))
goto fail;
bss->wsc = ie_tlv_extract_wsc_payload(data, len,
&bss->wsc_size);
break;
}
}
@ -667,6 +670,7 @@ void scan_bss_free(struct scan_bss *bss)
l_uintset_free(bss->supported_rates);
l_free(bss->rsne);
l_free(bss->wpa);
l_free(bss->wsc);
l_free(bss);
}

View File

@ -56,6 +56,8 @@ struct scan_bss {
uint16_t capability;
uint8_t *rsne;
uint8_t *wpa;
uint8_t *wsc; /* Concatenated WSC IEs */
ssize_t wsc_size; /* Size of Concatenated WSC IEs */
uint8_t ssid[32];
uint8_t ssid_len;
struct l_uintset *supported_rates;