https://wiki.openwrt.org/doc/devel/debugging
调试hostapd,其中hostapd的调试等级如下:
# Levels (minimum value for logged events):
# 0 = verbose debugging
# 1 = debugging
# 2 = informational messages // 默认值
# 3 = notification
# 4 = warning
查看设备上hostapd当前的调试等级
root@hbg:/# grep _level /var/run/hostapd-phy0.conf
logger_syslog_level=2
logger_stdout_level=2
可以通过如下方法进行更改:
root@hbg:/# uci set wireless.radio0.log_level=1
root@hbg:/# uci commit wireless
root@hbg:/# wifi up
root@hbg:/# [96857.690000] device wlan0-1 left promiscuous mode
[96857.700000] br-net: port 4(wlan0-1) entered disabled state
[96857.750000] br-net: port 3(wlan0) entered disabled state
[96857.780000] device wlan0 left promiscuous mode
[96857.780000] br-net: port 3(wlan0) entered disabled state
[96858.700000] device wlan0-1 entered promiscuous mode
[96860.390000] device wlan0 entered promiscuous mode
root@hbg:/# grep _level /var/run/hostapd-phy0.conf
logger_syslog_level=1 // 已经修改
logger_stdout_level=1
root@hbg:/#