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