aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_attr_build.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-06-11 05:25:51 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-09 13:07:48 (GMT)
commitc15a854aec10a053cdbb955abc7f05d11fa51d1f (patch)
treed6ba93e0a96f61b0d970f5c1804674c93b7dfe20 /src/wps/wps_attr_build.c
parent4a34969824511d8a4335aa70bcf33349d6a447c9 (diff)
downloadhostap-c15a854aec10a053cdbb955abc7f05d11fa51d1f.zip
hostap-c15a854aec10a053cdbb955abc7f05d11fa51d1f.tar.gz
hostap-c15a854aec10a053cdbb955abc7f05d11fa51d1f.tar.bz2
WPS 2.0: Add tool for testing protocol extensibility
This is disabled by default and can be enabled by defining CONFIG_WPS_EXTENSIBILITY_TESTING.
Diffstat (limited to 'src/wps/wps_attr_build.c')
-rw-r--r--src/wps/wps_attr_build.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wps/wps_attr_build.c b/src/wps/wps_attr_build.c
index f10f3c8..3ec8204 100644
--- a/src/wps/wps_attr_build.c
+++ b/src/wps/wps_attr_build.c
@@ -178,6 +178,13 @@ int wps_build_version2(struct wpabuf *msg)
wpabuf_put_be16(msg, ATTR_VERSION2);
wpabuf_put_be16(msg, 1);
wpabuf_put_u8(msg, WPS_VERSION);
+#ifdef CONFIG_WPS_EXTENSIBILITY_TESTING
+ wpa_printf(MSG_DEBUG, "WPS: * Extensibility Testing - extra "
+ "attribute";
+ wpabuf_put_be16(msg, ATTR_EXTENSIBILITY_TEST);
+ wpabuf_put_be16(msg, 1);
+ wpabuf_put_u8(msg, 42);
+#endif /* CONFIG_WPS_EXTENSIBILITY_TESTING */
return 0;
}