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>
Sun, 5 Feb 2017 21:29:56 +0000 (22:29 +0100)
commita0bc62fe08beae87de8051b7e642715240b9d16c
treec36eb4fb7dde2c0949f938b3b435208d38744851
parent3f9a194e04a7bd857bcdd06e44616abef5dab209
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