aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_defs.h
diff options
context:
space:
mode:
authorChao-Wen Yang <Chao-Wen.Yang@Atheros.com>2011-01-13 15:50:59 (GMT)
committerJouni Malinen <j@w1.fi>2011-01-13 15:50:59 (GMT)
commitc5cf0a18f1ac9caac20966f17be20c6e0892daa1 (patch)
treeec2fe1d6d7f3e9450dccb852a37a334a6780ae54 /src/wps/wps_defs.h
parente24cf97c0dbd08a35c83f285b3b44d6fafef4121 (diff)
downloadhostap-c5cf0a18f1ac9caac20966f17be20c6e0892daa1.zip
hostap-c5cf0a18f1ac9caac20966f17be20c6e0892daa1.tar.gz
hostap-c5cf0a18f1ac9caac20966f17be20c6e0892daa1.tar.bz2
WPS: Add mechanism for indicating non-standard WPS errors
Previously, only the Configuration Error values were indicated in WPS-FAIL events. Since those values are defined in the specification it is not feasible to extend them for indicating other errors. Add a new error indication value that is internal to wpa_supplicant and hostapd to allow other errors to be indicated. Use the new mechanism to indicate if negotiation fails because of WEP or TKIP-only configurations being disallows by WPS 2.0.
Diffstat (limited to 'src/wps/wps_defs.h')
-rw-r--r--src/wps/wps_defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wps/wps_defs.h b/src/wps/wps_defs.h
index 868f8ad..43311f3 100644
--- a/src/wps/wps_defs.h
+++ b/src/wps/wps_defs.h
@@ -224,6 +224,14 @@ enum wps_config_error {
WPS_CFG_DEV_PASSWORD_AUTH_FAILURE = 18
};
+/* Vendor specific Error Indication for WPS event messages */
+enum wps_error_indication {
+ WPS_EI_NO_ERROR,
+ WPS_EI_SECURITY_TKIP_ONLY_PROHIBITED,
+ WPS_EI_SECURITY_WEP_PROHIBITED,
+ NUM_WPS_EI_VALUES
+};
+
/* RF Bands */
#define WPS_RF_24GHZ 0x01
#define WPS_RF_50GHZ 0x02