[source] hostapd: enable support for logging wpa_printf messages to syslog

LEDE Commits lede-commits at lists.infradead.org
Tue Jan 31 04:55:55 PST 2017


rmilecki pushed a commit to source.git, branch master:
https://git.lede-project.org/546b1a4d36b4a6e0b2ce7bfa7d7f0641306c4ba3

commit 546b1a4d36b4a6e0b2ce7bfa7d7f0641306c4ba3
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Mon Jan 30 07:31:59 2017 +0100

    hostapd: enable support for logging wpa_printf messages to syslog
    
    This will allow starting hostapd with the new -s parameter and finally
    read all (error) messages from the syslog.
    
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 package/network/services/hostapd/files/hostapd-full.config | 3 +++
 package/network/services/hostapd/files/hostapd-mini.config | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/package/network/services/hostapd/files/hostapd-full.config b/package/network/services/hostapd/files/hostapd-full.config
index e388109..4a2e87c 100644
--- a/package/network/services/hostapd/files/hostapd-full.config
+++ b/package/network/services/hostapd/files/hostapd-full.config
@@ -146,6 +146,9 @@ CONFIG_IEEE80211AC=y
 # code is not needed.
 #CONFIG_NO_STDOUT_DEBUG=y
 
+# Send debug messages to syslog instead of stdout
+CONFIG_DEBUG_SYSLOG=y
+
 # Remove support for RADIUS accounting
 #CONFIG_NO_ACCOUNTING=y
 
diff --git a/package/network/services/hostapd/files/hostapd-mini.config b/package/network/services/hostapd/files/hostapd-mini.config
index 8baff18..2bd7d23 100644
--- a/package/network/services/hostapd/files/hostapd-mini.config
+++ b/package/network/services/hostapd/files/hostapd-mini.config
@@ -142,6 +142,9 @@ CONFIG_IEEE80211AC=y
 # code is not needed.
 #CONFIG_NO_STDOUT_DEBUG=y
 
+# Send debug messages to syslog instead of stdout
+CONFIG_DEBUG_SYSLOG=y
+
 # Remove support for RADIUS accounting
 CONFIG_NO_ACCOUNTING=y
 



More information about the lede-commits mailing list