Added CONFIG_NO_STDOUT_DEBUG for hostapd
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 8 Jan 2009 14:47:04 +0000 (16:47 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 8 Jan 2009 14:47:04 +0000 (16:47 +0200)
This is similar to one in wpa_supplicant and can be used to reduce the
binary size by removing debugging messages.

hostapd/Makefile
hostapd/defconfig

index e9d48e9..58e83fe 100644 (file)
@@ -502,6 +502,10 @@ ifdef NEED_BASE64
 OBJS += ../src/utils/base64.o
 endif
 
+ifdef CONFIG_NO_STDOUT_DEBUG
+CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
+endif
+
 ALL=hostapd hostapd_cli
 
 all: verify_config $(ALL)
index 8e31a0d..6594344 100644 (file)
@@ -135,3 +135,8 @@ CONFIG_IPV6=y
 
 # IEEE 802.11n (High Throughput) support
 #CONFIG_IEEE80211N=y
+
+# Remove debugging code that is printing out debug messages to stdout.
+# This can be used to reduce the size of the hostapd considerably if debugging
+# code is not needed.
+#CONFIG_NO_STDOUT_DEBUG=y