aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-05-26 14:16:14 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-09 13:07:48 (GMT)
commit54f489be451b6c38574cbb0972f18d623bf0a17a (patch)
treef5ffbf7781cba58f75ef5e71c57bfcc1a833f71e /hostapd/Makefile
parent00ae50bc879479f556c6919d8003dbfdb3e24c2d (diff)
downloadhostap-54f489be451b6c38574cbb0972f18d623bf0a17a.zip
hostap-54f489be451b6c38574cbb0972f18d623bf0a17a.tar.gz
hostap-54f489be451b6c38574cbb0972f18d623bf0a17a.tar.bz2
WPS 2.0: Validate WPS attributes in management frames and WSC messages
If CONFIG_WPS_STRICT is set, validate WPS IE(s) in management frames and reject the frames if any of the mandatory attributes is missing or if an included attribute uses an invalid value. In addition, verify that all mandatory attributes are included and have valid values in the WSC messages.
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 6d344d2..2361c0e 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -327,6 +327,11 @@ OBJS += ../src/wps/wps_nfc_pn531.o
LIBS += ${PN531_PATH}/lib/wpsnfc.dll
LIBS += ${PN531_PATH}/lib/libnfc_mapping_pn53x.dll
endif
+
+ifdef CONFIG_WPS_STRICT
+CFLAGS += -DCONFIG_WPS_STRICT
+OBJS += ../src/wps/wps_validate.o
+endif
endif
ifdef NEED_WPS_OOB