We can disable the debug output functionality in wpad = hostapd, which act
can decrease the size of the hostapd application (/usr/sbin/wpad in my case)
by over 200 kB (from 800 kB to 580 kB) and even the size of the compressed
squashfs image gets down by 100 kB.
In the config files hostapd-full.config and wpa_supplicant-full.config in
/package/hostapd/files/ , the option line for disabling the debug output is
commented:
# 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
E.g.
https://dev.openwrt.org/browser/trunk/package/hostapd/files/hostapd-full.config#L141
Uncommenting that line makes the hostapd to get built without the debug
output functionality, which is rather unnecessary for basic users. I have
disabled the debug code from my images in last February and haven't noticed
any side effects.
This applies both to Trunk and Backfire, and both to wpad-mini and wpad-full
packages, and naturally also to hostapd(-full/mini) itself, if used directly.
It might be sensible to disable debug output as the default, and let those
who need it to enable the functionality.
Ticket 8847 is about this issue: https://dev.openwrt.org/ticket/8847
Signed-off-by: Hannu Nyman <hannu.ny...@iki.fi>
Index: /Openwrt/trunk/package/hostapd/files/hostapd-mini.config
===================================================================
--- /Openwrt/trunk/package/hostapd/files/hostapd-mini.config (revision 28485)
+++ /Openwrt/trunk/package/hostapd/files/hostapd-mini.config (working copy)
@@ -141,7 +141,7 @@
# 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
+CONFIG_NO_STDOUT_DEBUG=y
# Remove support for RADIUS accounting
CONFIG_NO_ACCOUNTING=y
Index: /Openwrt/trunk/package/hostapd/files/hostapd-full.config
===================================================================
--- /Openwrt/trunk/package/hostapd/files/hostapd-full.config (revision 28485)
+++ /Openwrt/trunk/package/hostapd/files/hostapd-full.config (working copy)
@@ -141,7 +141,7 @@
# 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
+CONFIG_NO_STDOUT_DEBUG=y
# Remove support for RADIUS accounting
#CONFIG_NO_ACCOUNTING=y
Index: /Openwrt/trunk/package/hostapd/files/wpa_supplicant-mini.config
===================================================================
--- /Openwrt/trunk/package/hostapd/files/wpa_supplicant-mini.config
(revision 28485)
+++ /Openwrt/trunk/package/hostapd/files/wpa_supplicant-mini.config
(working copy)
@@ -228,7 +228,7 @@
# This can be used to reduce the size of the wpa_supplicant considerably
# if debugging code is not needed. The size reduction can be around 35%
# (e.g., 90 kB).
-#CONFIG_NO_STDOUT_DEBUG=y
+CONFIG_NO_STDOUT_DEBUG=y
# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
# 35-50 kB in code size.
Index: /Openwrt/trunk/package/hostapd/files/wpa_supplicant-full.config
===================================================================
--- /Openwrt/trunk/package/hostapd/files/wpa_supplicant-full.config
(revision 28485)
+++ /Openwrt/trunk/package/hostapd/files/wpa_supplicant-full.config
(working copy)
@@ -228,7 +228,7 @@
# This can be used to reduce the size of the wpa_supplicant considerably
# if debugging code is not needed. The size reduction can be around 35%
# (e.g., 90 kB).
-#CONFIG_NO_STDOUT_DEBUG=y
+CONFIG_NO_STDOUT_DEBUG=y
# Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save
# 35-50 kB in code size.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel