aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-09-21 19:51:23 -0700
committerJouni Malinen <j@w1.fi>2010-09-21 19:51:23 -0700
commitb4e34f2fdf2d6c5b5f33a412908a3d1aa7d13f56 (patch)
treeb8079b0ba39ba5c4904e49fe6ee1d6200d341344 /hostapd/Makefile
parentab98525399f65fb90bb77f48882be1ed9ddacdf9 (diff)
downloadexternal_wpa_supplicant_8_ti-b4e34f2fdf2d6c5b5f33a412908a3d1aa7d13f56.zip
external_wpa_supplicant_8_ti-b4e34f2fdf2d6c5b5f33a412908a3d1aa7d13f56.tar.gz
external_wpa_supplicant_8_ti-b4e34f2fdf2d6c5b5f33a412908a3d1aa7d13f56.tar.bz2
WPS: Make testing operations configurable at runtime
Instead of build time options (CONFIG_WPS_TESTING_EXTRA_CRED and CONFIG_WPS_EXTENSIBILITY_TESTING), use a single build option (CONFIG_WPS_TESTING) and runtime configuration of which testing operations are enabled. This allows a single binary to be used for various tests. The runtime configuration can be done through control interface with wpa_cli/hostapd_cli commands: Enable extensibility tests: set wps_version_number 0x57 Disable extensibility tests (WPS2 build): set wps_version_number 0x20 Enable extra credential tests: set wps_testing_dummy_cred 1 Disable extra credential tests: set wps_testing_dummy_cred 0
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index f43f4a5..7d4bab8 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -361,6 +361,10 @@ CFLAGS += -DCONFIG_WPS_STRICT
OBJS += ../src/wps/wps_validate.o
endif
+ifdef CONFIG_WPS_TESTING
+CFLAGS += -DCONFIG_WPS_TESTING
+endif
+
endif
ifdef CONFIG_EAP_IKEV2