Skip to contentSkip to conversation

wpa-supplicant: use debian wpa contribution to improve ifup/ifdown

PATCH In review Jens Rehsack 1 participant 1 message Feb 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 wpa-supplicant: use debian wpa contribution to improve ifup/ifdown

Instead of simplified, self-written start/stop hooks for wpa-supplicant on interfaces coming up or going down, use the more advanced hooks provided by the debian contribution.

Since the default behavior in the debian start/stop hooks is log into syslog, which is more reasonable for embedded devices either (usually no user interface available), follow this behavior and enable CONFIG_DEBUG_SYSLOG.

Add a package for ifplugd action hooks, if desired and install man-pages as well for a reasonable wpa-supplicant-doc.

---
 .../wpa-supplicant/wpa-supplicant/defconfig        |  4 +-
 .../wpa-supplicant/wpa-supplicant.sh               | 85 ----------------------
 .../wpa-supplicant/wpa-supplicant_2.5.bb           | 47 ++++++++----
 3 files changed, 36 insertions(+), 100 deletions(-)
 delete mode 100644 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa-supplicant.sh
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/defconfig +2 -2
index f04e398..217cf61 100644
@@ -418,9 +418,9 @@ CONFIG_CTRL_IFACE_DBUS_NEW=y
 #CONFIG_DEBUG_FILE=y
 
 # Send debug messages to syslog instead of stdout
-#CONFIG_DEBUG_SYSLOG=y
+CONFIG_DEBUG_SYSLOG=y
 # Set syslog facility for debug messages
-#CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
+CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
 
 # Add support for sending all debug messages (regardless of debug verbosity)
 # to the Linux kernel tracing facility. This helps debug the entire stack by
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa-supplicant.sh deleted +0 -85

85 lines not on this page · raw message

meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.5.bb +34 -13

86 lines not on this page · raw message

--
2.6.3

--
Jens Rehsack - [email protected]