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:
parent
f648a3f0eb
commit
9eac017ec4
@ -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);
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user