NOTE: this page is for archival only, see the note at the end of the page.

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

Booting

When you see a message like this it means that firmware was able to boot:

ar6003 hw 2.1.1 sdio fw 3.2.0.35 api 3

For getting detailed information about booting enable the BOOT log level.

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)

This is a static dump of the old wiki, taken after locking it in January 2015. The new wiki is at https://wireless.wiki.kernel.org/.
versions of this page: last, v6, v5, v4, v3, v2, v1