8

据我所知,hostapd 是一个能够进行一些网络配置的二进制文件。

但是,要启用 hostapd 调试级别,我需要重建二进制文件吗?有没有其他方法可以代替重建新方法?

4

1 回答 1

12

不带参数执行hostapd表明指定-d-dd启用调试消息:

-d显示更多调试消息(-dd更多)

也可以通过hostapd配置文件来配置事件记录器的详细程度:

# hostapd event logger configuration
#
# Two output method: syslog and stdout (only usable if not forking to
# background).
#
# Module bitfield (ORed bitfield of modules that will be logged; -1 = all
# modules):
# bit 0 (1) = IEEE 802.11
# bit 1 (2) = IEEE 802.1X
# bit 2 (4) = RADIUS
# bit 3 (8) = WPA
# bit 4 (16) = driver interface
# bit 5 (32) = IAPP
# bit 6 (64) = MLME
#
# Levels (minimum value for logged events):
#  0 = verbose debugging
#  1 = debugging
#  2 = informational messages
#  3 = notification
#  4 = warning
#
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
于 2015-08-25T16:50:50.493 回答