3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 09:29:22 +01:00

scan: Parse [extended] supported rates ie

This commit is contained in:
Denis Kenzior 2015-06-10 13:05:58 -05:00
parent f648a3f0eb
commit 9eac017ec4
2 changed files with 9 additions and 0 deletions

View File

@ -236,6 +236,13 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss,
bss->ssid_len = iter.len;
have_ssid = true;
break;
case IE_TYPE_SUPPORTED_RATES:
case IE_TYPE_EXTENDED_SUPPORTED_RATES:
if (ie_parse_supported_rates(&iter,
&bss->supported_rates) < 0)
l_warn("Unable to parse [Extended] "
"Supported Rates IE");
break;
case IE_TYPE_RSN:
if (!bss->rsne)
bss->rsne = l_memdup(iter.data - 2,
@ -420,6 +427,7 @@ void scan_bss_compute_rank(struct scan_bss *bss)
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);

View File

@ -40,6 +40,7 @@ struct scan_bss {
uint8_t *wpa;
uint8_t ssid[32];
uint8_t ssid_len;
struct l_uintset *supported_rates;
uint8_t utilization;
uint16_t rank;
};