]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix P2P IE configuration for GO mode
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 14 Nov 2011 14:10:54 +0000 (16:10 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 14 Nov 2011 14:10:54 +0000 (16:10 +0200)
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>

src/ap/ap_drv_ops.c

index 733c917218daae7cbef4777287350406d45b90d6..01c28b9bb614636066bf66bbbb3de95e24006c91 100644 (file)
@@ -108,10 +108,10 @@ int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
        }
 
        if (hapd->p2p_probe_resp_ie) {
-               if (wpabuf_resize(&beacon, wpabuf_len(hapd->p2p_probe_resp_ie))
-                   < 0)
+               if (wpabuf_resize(&proberesp,
+                                 wpabuf_len(hapd->p2p_probe_resp_ie)) < 0)
                        goto fail;
-               wpabuf_put_buf(beacon, hapd->p2p_probe_resp_ie);
+               wpabuf_put_buf(proberesp, hapd->p2p_probe_resp_ie);
        }
 #endif /* CONFIG_P2P */