hostapd/RADIUS_server: enhance logging master
authorDávid Benko <davidbenko@davidbenko.dev>
Mon, 24 Feb 2025 10:01:19 +0000 (11:01 +0100)
committerRobert Marko <robimarko@gmail.com>
Wed, 12 Mar 2025 12:12:12 +0000 (13:12 +0100)
commit939628f6b8373fb3dfd26d55229c81e584269a22
tree241902470a6051e1a0793940d007c618bae13ecc
parentdbdd84725d5dd63480be7904d917a433b3c34b0b
hostapd/RADIUS_server: enhance logging

Currently, logging level of the RADIUS server is a constant corresponding
to the highest verbosity (EXCESSIVE, ALL), but when running as a system
service, the output is discarded.

This commit makes logging verbosity configurable by `log_level` option
and redirects all logs to `logd`. Possible levels are defined in hostap
sources:
https://w1.fi/cgit/hostap/tree/src/utils/wpa_debug.h?id=012a893c469157d5734f6f33953497ea6e3b0169#n23
Their reference is inlined in `radius.config` file.

Default value for logging verbosity is INFO (even if the `-l` flag isn't
specified).

Signed-off-by: Dávid Benko <davidbenko@davidbenko.dev>
Link: https://github.com/openwrt/openwrt/pull/18089
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/services/hostapd/files/radius.config
package/network/services/hostapd/files/radius.init
package/network/services/hostapd/src/hostapd/radius.c