Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hostapd debug level configuration

Tags:

wifi

hostapd

From what I understand so far, hostapd is a binary which is able to do some network configurations.

However, to enable hostapd debug level, do I need to rebuild the binary? Is there any other approach I can take instead of rebuilding a new one ?

like image 412
Sam Avatar asked Aug 25 '15 13:08

Sam


People also ask

How do I check my Hostapd status?

You can use hostapd_cli . You can also use cat /var/log/syslog | grep hostapd . You can change the debug level in starting script /etc/init.

What is Hostapd Linux?

hostapd (host access point daemon) is a user space daemon software enabling a network interface card to act as an access point and authentication server.


1 Answers

Executing hostapd with no arguments reveals that specifying -d or -dd enables debug messages:

-d show more debug messages (-dd for even more)

It is also possible to configure the event logger verbosity via hostapd's configuration file:

# 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
like image 128
Yoel Avatar answered Oct 21 '22 01:10

Yoel