aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_defs.h
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_defs.h
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_defs.h')
-rw-r--r--src/wps/wps_defs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wps/wps_defs.h b/src/wps/wps_defs.h
index 197d20c..13716de 100644
--- a/src/wps/wps_defs.h
+++ b/src/wps/wps_defs.h
@@ -15,7 +15,11 @@
#ifndef WPS_DEFS_H
#define WPS_DEFS_H
+#ifdef CONFIG_WPS_EXTENSIBILITY_TESTING
+#define WPS_VERSION 0x57
+#else /* CONFIG_WPS_EXTENSIBILITY_TESTING */
#define WPS_VERSION 0x20
+#endif /* CONFIG_WPS_EXTENSIBILITY_TESTING */
/* Diffie-Hellman 1536-bit MODP Group; RFC 3526, Group 5 */
#define WPS_DH_GROUP 5
@@ -130,7 +134,8 @@ enum wps_attribute {
ATTR_VERSION2 = 0x1067,
ATTR_REQUEST_TO_ENROLL = 0x1068,
ATTR_AUTHORIZED_MACS = 0x1069,
- ATTR_REQUESTED_DEV_TYPE = 0x106a
+ ATTR_REQUESTED_DEV_TYPE = 0x106a,
+ ATTR_EXTENSIBILITY_TEST = 0x10fa /* _NOT_ defined in the spec */
};
/* Device Password ID */