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

scan: parse roaming consortium IE

This commit is contained in:
James Prestwood 2019-07-12 10:30:26 -07:00 committed by Denis Kenzior
parent ac933ad966
commit 9dcb6946c5
2 changed files with 10 additions and 0 deletions

View File

@ -896,6 +896,14 @@ static bool scan_parse_bss_information_elements(struct scan_bss *bss,
memcpy(bss->hessid, iter.data + 3, 6);
else if (iter.len == 7)
memcpy(bss->hessid, iter.data + 1, 6);
break;
case IE_TYPE_ROAMING_CONSORTIUM:
if (iter.len < 2)
return false;
bss->rc_ie = l_memdup(iter.data - 2, iter.len + 2);
break;
}
}
@ -1109,6 +1117,7 @@ void scan_bss_free(struct scan_bss *bss)
l_free(bss->wpa);
l_free(bss->wsc);
l_free(bss->osen);
l_free(bss->rc_ie);
l_free(bss);
}

View File

@ -63,6 +63,7 @@ struct scan_bss {
uint8_t vht_ie[14];
uint64_t time_stamp;
uint8_t hessid[6];
uint8_t *rc_ie; /* Roaming consortium IE */
bool mde_present : 1;
bool cc_present : 1;
bool cap_rm_neighbor_report : 1;