diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2011-08-27 06:47:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-29 15:33:03 -0400 |
commit | cf3af74824b1bf2bd60eb6a0dd82b27f9e9236ac (patch) | |
tree | c5ae88548f8acc38549032e8d659b39333b19417 /drivers/net/wireless/ath/ath9k/init.c | |
parent | 059ee09b99942bf64f4075196a7a2a992e64193d (diff) |
ath9k: Add debugfs support for mac/baseband samples
This patch keep track of number of samples that includes
DMA debugs registers, PCU observe, CR, channel noise,
cycle conters, noisefloor history buffer and last N number
of tx and rx descriptor status. These samples are grouped
in table manner which dumping in debgufs.
Debugfs file location:
<debugfs_mnt>/ieee80211/phy#/ath9k/samples
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index d7761d1fc5ba..dd71a5f77516 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -572,6 +572,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, | |||
572 | mutex_init(&sc->mutex); | 572 | mutex_init(&sc->mutex); |
573 | #ifdef CONFIG_ATH9K_DEBUGFS | 573 | #ifdef CONFIG_ATH9K_DEBUGFS |
574 | spin_lock_init(&sc->nodes_lock); | 574 | spin_lock_init(&sc->nodes_lock); |
575 | spin_lock_init(&sc->debug.samp_lock); | ||
575 | INIT_LIST_HEAD(&sc->nodes); | 576 | INIT_LIST_HEAD(&sc->nodes); |
576 | #endif | 577 | #endif |
577 | tasklet_init(&sc->intr_tq, ath9k_tasklet, (unsigned long)sc); | 578 | tasklet_init(&sc->intr_tq, ath9k_tasklet, (unsigned long)sc); |