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/main.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/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 5ac4f3f2ad60..7b7864dfab75 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -546,6 +546,7 @@ set_timer: | |||
546 | * The interval must be the shortest necessary to satisfy ANI, | 546 | * The interval must be the shortest necessary to satisfy ANI, |
547 | * short calibration and long calibration. | 547 | * short calibration and long calibration. |
548 | */ | 548 | */ |
549 | ath9k_debug_samp_bb_mac(sc); | ||
549 | cal_interval = ATH_LONG_CALINTERVAL; | 550 | cal_interval = ATH_LONG_CALINTERVAL; |
550 | if (sc->sc_ah->config.enable_ani) | 551 | if (sc->sc_ah->config.enable_ani) |
551 | cal_interval = min(cal_interval, | 552 | cal_interval = min(cal_interval, |
@@ -978,6 +979,7 @@ int ath_reset(struct ath_softc *sc, bool retry_tx) | |||
978 | 979 | ||
979 | sc->hw_busy_count = 0; | 980 | sc->hw_busy_count = 0; |
980 | 981 | ||
982 | ath9k_debug_samp_bb_mac(sc); | ||
981 | /* Stop ANI */ | 983 | /* Stop ANI */ |
982 | 984 | ||
983 | del_timer_sync(&common->ani.timer); | 985 | del_timer_sync(&common->ani.timer); |