From 03018d3e7c2613294103e2a9ca9b92c69192ce70 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 8 Jan 2009 16:47:04 +0200 Subject: [PATCH] Added CONFIG_NO_STDOUT_DEBUG for hostapd This is similar to one in wpa_supplicant and can be used to reduce the binary size by removing debugging messages. --- hostapd/Makefile | 4 ++++ hostapd/defconfig | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/hostapd/Makefile b/hostapd/Makefile index e9d48e98e..58e83fe32 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -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) diff --git a/hostapd/defconfig b/hostapd/defconfig index 8e31a0d0d..659434418 100644 --- a/hostapd/defconfig +++ b/hostapd/defconfig @@ -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