automake build system
[mech_eap.orig] / src / p2p / p2p_build.c
index c45ae89..791809e 100644 (file)
@@ -168,7 +168,7 @@ void p2p_buf_add_device_info(struct wpabuf *buf, struct p2p_data *p2p,
 
        /* Config Methods */
        methods = 0;
-       if (peer) {
+       if (peer && peer->wps_method != WPS_NOT_READY) {
                if (peer->wps_method == WPS_PBC)
                        methods |= WPS_CONFIG_PUSHBUTTON;
                else if (peer->wps_method == WPS_PIN_LABEL)
@@ -383,7 +383,7 @@ void p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, u16 pw_id,
                wpabuf_put_be16(buf, 0); /* FIX: ? */
        }
 
-       wps_build_version2(buf);
+       wps_build_wfa_ext(buf, 0, NULL, 0);
 
        p2p_buf_update_ie_hdr(buf, len);
 }