mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-31 23:42:52 +01:00
scan: Save off RSNXE if present
This commit is contained in:
parent
57a57646d8
commit
7fafb627d8
@ -1004,6 +1004,11 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss,
|
||||
bss->rsne = l_memdup(iter.data - 2,
|
||||
iter.len + 2);
|
||||
break;
|
||||
case IE_TYPE_RSNX:
|
||||
if (!bss->rsnxe)
|
||||
bss->rsnxe = l_memdup(iter.data - 2,
|
||||
iter.len + 2);
|
||||
break;
|
||||
case IE_TYPE_BSS_LOAD:
|
||||
if (ie_parse_bss_load(&iter, NULL, &bss->utilization,
|
||||
NULL) < 0)
|
||||
@ -1351,6 +1356,7 @@ fail:
|
||||
void scan_bss_free(struct scan_bss *bss)
|
||||
{
|
||||
l_free(bss->rsne);
|
||||
l_free(bss->rsnxe);
|
||||
l_free(bss->wpa);
|
||||
l_free(bss->wsc);
|
||||
l_free(bss->osen);
|
||||
|
@ -51,6 +51,7 @@ struct scan_bss {
|
||||
int32_t signal_strength;
|
||||
uint16_t capability;
|
||||
uint8_t *rsne;
|
||||
uint8_t *rsnxe;
|
||||
uint8_t *wpa;
|
||||
uint8_t *osen;
|
||||
uint8_t *wsc; /* Concatenated WSC IEs */
|
||||
|
Loading…
Reference in New Issue
Block a user