Ath9k and Ath9k - HTC Debugging
Ath9k and Ath9k - HTC Debugging
Ath9k and Ath9k - HTC Debugging
This page documents the debugging facilities available for ath9k and
ath9k_htc
Enabling debug
If you have issues with ath9k or ath9k_htc you can enable debug. You will first
need to enable the Kconfig option (CONFIG_ATH_DEBUG):
Device Drivers --->
[*] Network device support --->
Wireless LAN --->
<M>
Atheros Wireless Cards --->
[*] Atheros wireless debugging
Then you can use the module parameter debug. We cover below the different
available debug levels you can use.
enum ATH_DEBUG {
ATH- DBG- RESET
ATH- DBG- QUEUE
ATH DBG EEPROM
ATH DBG CALIBRATE
ATH DBG INTERRUPT
ATH- DBG- REGULATORY
ATH DBG ANI
ATH DBG XMIT
ATH DBG BEACON
ATH DBG CONFIG
ATH- DBG- FATAL
ATH DBG PS
ATH DBG BTCOEX
ATH DBG WMI
OxOOOOOOOl,
Ox00000002,
Ox00000004,
Ox00000008,
= OxOOOOOOlO,
= Ox00000020,
= Ox00000040,
= Ox00000080,
Ox00000100,
= Ox00000200,
= Ox00000400,
= Ox00000800,
= OxOOOOlOOO,
= Ox00002000,
ATH
ATHATH
ATH
ATH
DBG BSTUCK
DBG- MCI
DBG DFS
DBG WOW
DBG ANY
= Ox00004000,
Ox00008000,
Ox00010000,
Ox00020000,
Oxf fffff ff
};
Debugfs files
To get debugfs you will need to mount it first. You can do so as follows:
mount -t debugfs debugfs /sys/kernel/debug/
Once the config options are enabled and debugfs is mounted, these would be
seen:
/sys/kernel/debug/ieee80211/phy0/ath9k/btcoex
/sys/kernel/debug/ieee80211/phy0/ath9k/diversity
/sys/kernel/debug/ieee80211/phy0/ath9k/gpio_val
/sys/kernel/debug/ieee80211/phy0/ath9k/gpio_mask
/sys/kernel/debug/ieee80211/phy0/ath9k/spectral_fft_perio
d
/sys/kernel/debug/ieee80211/phy0/ath9k/spectral_period
/sys/kernel/debug/ieee80211/phy0/ath9k/spectral_count
/sys/kernel/debug/ieee80211/phy0/ath9k/spectral short_rep
eat
/sys/kernel/debug/ieee80211/phy0/ath9k/spectral scan_ctl
/sys/kernel/debug/ieee80211/phy0/ath9k/spectral scanO
/sys/kernel/debug/ieee80211/phy0/ath9k/modal_eeprom
/sys/kernel/debug/ieee80211/phy0/ath9k/base_eeprom
/sys/kernel/debug/ieee80211/phy0/ath9k/dump_nfcal
/sys/kernel/debug/ieee80211/phy0/ath9k/regdump
/sys/kernel/debug/ieee80211/phy0/ath9k/ignore_extcca
/sys/kernel/debug/ieee80211/phy0/ath9k/regval
/sys/kernel/debug/ieee80211/phy0/ath9k/regidx
/sys/kernel/debug/ieee80211/phy0/ath9k/paprd
/sys/kernel/debug/ieee80211/phy0/ath9k/ani
/sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
/sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
/sys/kernel/debug/ieee80211/phy0/ath9k/recv
/sys/kernel/debug/ieee80211/phy0/ath9k/reset
/sys/kernel/debug/ieee80211/phy0/ath9k/misc
/sys/kernel/debug/ieee80211/phy0/ath9k/qlen_vo
/sys/kernel/debug/ieee80211/phy0/ath9k/qlen_vi
/sys/kernel/debug/ieee80211/phy0/ath9k/qlen_be
/sys/kernel/debug/ieee80211/phy0/ath9k/qlen_bk
/sys/kernel/debug/ieee80211/phy0/ath9k/queues
/sys/kernel/debug/ieee80211/phy0/ath9k/xmit
/sys/kernel/debug/ieee80211/phy0/ath9k/interrupt
/sys/kernel/debug/ieee80211/phy0/ath9k/dma
I Device
Drivers
--->