mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 03:23:04 -05:00
Fix P2P IE configuration for GO mode
Commit c2ff13c533306ac06f08fd03fca9e04cc994cabd broke this with a copy-paste typo that ended up adding the Probe Request P2P IE into the Beacon frame (i.e., Beacon frame had two P2P IEs while Probe Response had none). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8f2e2e369b
commit
16476dd124
@ -108,10 +108,10 @@ int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hapd->p2p_probe_resp_ie) {
|
if (hapd->p2p_probe_resp_ie) {
|
||||||
if (wpabuf_resize(&beacon, wpabuf_len(hapd->p2p_probe_resp_ie))
|
if (wpabuf_resize(&proberesp,
|
||||||
< 0)
|
wpabuf_len(hapd->p2p_probe_resp_ie)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
wpabuf_put_buf(beacon, hapd->p2p_probe_resp_ie);
|
wpabuf_put_buf(proberesp, hapd->p2p_probe_resp_ie);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_P2P */
|
#endif /* CONFIG_P2P */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user