From: Masashi Honma Date: Thu, 22 Jan 2009 13:18:03 +0000 (+0200) Subject: Use WPS state Not Configured instead of Configured in Enrollee X-Git-Tag: hostap_0_7_0~601 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96fa129da9f742e76fe0bf9febfeb0ba3042b5c5;p=thirdparty%2Fhostap.git Use WPS state Not Configured instead of Configured in Enrollee This is needed to allow external Registrar (at least the implementation in Windows Vista) to configure the Enrollee. With this patch and my previous patch (for wps.c) , I could pass "Wi-Fi WPS Test Plan Version 1.0 [5.1.4. Add to AP using PIN Config method and PASS PHRASE through wired external registrar]". --- diff --git a/src/wps/wps_enrollee.c b/src/wps/wps_enrollee.c index 1375536c9..59f3b192d 100644 --- a/src/wps/wps_enrollee.c +++ b/src/wps/wps_enrollee.c @@ -35,7 +35,7 @@ static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) wpa_printf(MSG_DEBUG, "WPS: * Wi-Fi Protected Setup State"); wpabuf_put_be16(msg, ATTR_WPS_STATE); wpabuf_put_be16(msg, 1); - wpabuf_put_u8(msg, WPS_STATE_CONFIGURED); + wpabuf_put_u8(msg, WPS_STATE_NOT_CONFIGURED); return 0; }