8.11 Debug Logs
The ATWILC driver inherits the debug logs levels from Linux. To change the system's
debug level, use one of the following methods:
#echo "7" > /proc/sys/kernel/printk
where "7" is the highest desired log level
or
# dmesg -n 7
To change the default level while building the kernel, change the following line in
kernel_src/include/linux/printk.h
#define CONSOLE_LOGLEVEL_DEFAULT 7
ATWILC driver also uses debugfs to allow the user to control which code regions to enable or disable logs for.
To change it, the user has to first mount the
debugfs:
# mount -t debugfs nodev /sys/kernel/debug
Then echo a number that represents a bit field of the regions that the user wants to
enable logs from. The bit field is defined as
follows:
BIT 0: GENERIC
BIT 1: HOSTAPD
BIT 2: HOSTINF
BIT 3: CORECONFIG
BIT 4: CFG80211
BIT 5: INT
BIT 6: TX
BIT 7: RX
BIT 8: TCP
BIT 9: INIT
BIT 10: PWRDEV