aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_defs.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-04-07 09:04:58 (GMT)
committerJouni Malinen <j@w1.fi>2015-04-22 08:44:18 (GMT)
commitcc6f24380cdd2f696affc43b38f4b549792d8933 (patch)
treeb3818f2c21a6f2466f43c995b541228582ad586e /src/wps/wps_defs.h
parentdd3d8578d08660c9bde0fccb0d3cbbd625c9e4f8 (diff)
downloadhostap-cc6f24380cdd2f696affc43b38f4b549792d8933.zip
hostap-cc6f24380cdd2f696affc43b38f4b549792d8933.tar.gz
hostap-cc6f24380cdd2f696affc43b38f4b549792d8933.tar.bz2
Add WPS_DEV_NAME_MAX_LEN define and use it when comparing length
This make code easier to understand. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/wps/wps_defs.h')
-rw-r--r--src/wps/wps_defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wps/wps_defs.h b/src/wps/wps_defs.h
index 25cd14a..5a09063 100644
--- a/src/wps/wps_defs.h
+++ b/src/wps/wps_defs.h
@@ -41,6 +41,7 @@ extern int wps_corrupt_pkhash;
#define WPS_OOB_DEVICE_PASSWORD_MIN_LEN 16
#define WPS_OOB_DEVICE_PASSWORD_LEN 32
#define WPS_OOB_PUBKEY_HASH_LEN 20
+#define WPS_DEV_NAME_MAX_LEN 32
/* Attribute Types */
enum wps_attribute {