hostapd: backport support for sending debug messages to the syslog
authorRafał Miłecki <rafal@milecki.pl>
Wed, 25 Jan 2017 07:32:00 +0000 (08:32 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 30 Jan 2017 05:52:02 +0000 (06:52 +0100)
commit37b489fe04174bdede9c2817e021d77775e274ea
tree9821b71ea435170361a1c6ce26fbf49db7c802ec
parentf3c5934981d7a30d122827b30d8bca330ce0fd60
hostapd: backport support for sending debug messages to the syslog

It wasn't possible to read hostapd wpa_printf messages unless running
hostapd manually. It was because hostapd was printing them using vprintf
and not directly to the syslog.

We were trying to workaround this problem by redirecting STDIN_FILENO
and STDOUT_FILENO but it was working only for the initialization phase.
As soon as hostapd did os_daemonize our solution stopped working.

Please note despite the subject this change doesn't affect debug level
messages only but just everything printed by hostapd with wpa_printf
including MSG_ERROR-s. This makes it even more important as reading
error messages can be quite useful for debugging.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
package/network/services/hostapd/patches/004-hostapd-Add-possibility-to-send-debug-messages-to-sy.patch [new file with mode: 0644]
package/network/services/hostapd/patches/100-daemonize_fix.patch
package/network/services/hostapd/patches/200-multicall.patch
package/network/services/hostapd/patches/410-limit_debug_messages.patch
package/network/services/hostapd/patches/420-indicate-features.patch
package/network/services/hostapd/patches/450-scan_wait.patch