]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix Enrollee WPS state attribute in AP
authorMasashi Honma <honma@ictec.co.jp>
Fri, 27 Feb 2009 15:01:17 +0000 (17:01 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Feb 2009 15:01:17 +0000 (17:01 +0200)
Only non-AP Enrollee should hard code the state to be not configured.

src/wps/wps_enrollee.c

index 6de9a0440009f00c8963de89e3ff6f7bfe4ae41d..73c5ecbab92c4dccd6b1d8235ea987c67175af00 100644 (file)
@@ -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;
 }