scan: Save off RSNXE if present

This commit is contained in:
Denis Kenzior 2021-07-08 14:11:57 -05:00
parent 57a57646d8
commit 7fafb627d8
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

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