[PATCH] Fix Enrollee WPS state attribute

Masashi Honma honma
Tue Feb 24 22:13:34 PST 2009


Hello.

This patch will fix Enrollee WPS state attribute.


diff --git a/src/wps/wps_enrollee.c b/src/wps/wps_enrollee.c
index 179f7db..617b7a8 100644
--- a/src/wps/wps_enrollee.c
+++ b/src/wps/wps_enrollee.c
@@ -41,7 +41,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;
 }
 

Regards,
Masashi Honma.



More information about the Hostap mailing list