diff mbox

[LEDE-DEV,1/2] hostapd: enable support for logging wpa_printf messages to syslog

Message ID 20170130063200.18029-1-zajec5@gmail.com
State Accepted
Headers show

Commit Message

Rafał Miłecki Jan. 30, 2017, 6:31 a.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

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@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 mbox

Patch

diff --git a/package/network/services/hostapd/files/hostapd-full.config b/package/network/services/hostapd/files/hostapd-full.config
index e388109fbb..4a2e87c2eb 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 8baff18fe4..2bd7d239c5 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