/* 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)
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);
}