OpenWrt – Reduce Hostapd Verbosity
by kacang bawang
A quick note about how to reduce the log level of hostapd
, as it tends to dominate log entries in /var/log/messages
.
Note: this is on OpenWrt 12.07
The ultimate configuration file for hostapd
is placed in /var/run
. This file is formed by /lib/wifi/hostapd.sh
. In turn, it reads its input from /etc/config/wireless
. This daisy chain was not obvious to me. I kept searching in /etc/
without results.
Anyhow, examination of /lib/wifi/hostapd.sh
tells us that we need to add this to /etc/config/wireless
:
1 2 3 4 5 6 7 8 9 10 11 |
# Levels (minimum value for logged events): # 0 = verbose debugging # 1 = debugging # 2 = informational messages # 3 = notification # 4 = warning config wifi-device radio0 ... option log_level 4 ... |