3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

scan: Process P2P IEs from scan results

This commit is contained in:
Andrew Zaborowski 2019-07-15 16:12:54 +02:00 committed by Denis Kenzior
parent cf684fdfa1
commit 213d75b9bb
2 changed files with 5 additions and 0 deletions

View File

@ -956,6 +956,8 @@ static struct scan_bss *scan_parse_attr_bss(struct l_genl_attr *attr)
bss->wsc = ie_tlv_extract_wsc_payload(data, len,
&bss->wsc_size);
bss->p2p = ie_tlv_extract_p2p_payload(data, len,
&bss->p2p_size);
break;
}
@ -1120,6 +1122,7 @@ void scan_bss_free(struct scan_bss *bss)
l_free(bss->rsne);
l_free(bss->wpa);
l_free(bss->wsc);
l_free(bss->p2p);
l_free(bss->osen);
l_free(bss->rc_ie);
l_free(bss);

View File

@ -51,6 +51,8 @@ struct scan_bss {
uint8_t *osen;
uint8_t *wsc; /* Concatenated WSC IEs */
ssize_t wsc_size; /* Size of Concatenated WSC IEs */
uint8_t *p2p; /* Concatenated P2P IEs */
ssize_t p2p_size; /* Size of Concatenated P2P IEs */
uint8_t mde[3];
uint8_t ssid[32];
uint8_t ssid_len;