Go back –> ath6kl
ath6kl debugging
Logging
Use debug_mask module parameter to enable debug logs. For example, to enable all possible log levels do:
modprobe ath6kl_sdio.ko debug_mask=0xffffffff
The log messages printed using the standard kernel log facilies, for example you can use dmesg or syslog to access them.
The log levels are defined in debug.h.
Some useful debug_mask values:
0x140400 |
boot, suspend, wmi |
0x50480 |
irq, wmi, sdio, boot |
Debugfs
ath6kl also has a debugfs interface for debugging driver and firmware state. The debugfs directory is in ieee80211/phy*/ath6kl/ under the debugfs root directory, which is distribution dependent (usually /sys/kernel/debug/ and needs to be mounted separately).
Few important files:
- tgt_stats
- various firmware statistics
- fwlog
- latest firmware debug logs, use cp to copy the logs to a file
- endpoint_stats
- HTC endpoint statistics
- roam_table
- list of possible roaming candidates
- reg_dump
- dump of firmware registers (slow)