From: Masashi Honma Date: Fri, 27 Feb 2009 15:01:17 +0000 (+0200) Subject: Fix Enrollee WPS state attribute in AP X-Git-Tag: hostap_0_7_0~487 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7e9a48f66a8128a8c135ea4e04c942e560388de;p=thirdparty%2Fhostap.git Fix Enrollee WPS state attribute in AP Only non-AP Enrollee should hard code the state to be not configured. --- diff --git a/src/wps/wps_enrollee.c b/src/wps/wps_enrollee.c index 6de9a0440..73c5ecbab 100644 --- a/src/wps/wps_enrollee.c +++ b/src/wps/wps_enrollee.c @@ -42,7 +42,7 @@ static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) state); wpabuf_put_be16(msg, ATTR_WPS_STATE); wpabuf_put_be16(msg, 1); - wpabuf_put_u8(msg, WPS_STATE_NOT_CONFIGURED); + wpabuf_put_u8(msg, state); return 0; }