diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-12-27 23:17:15 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-01-03 15:36:59 -0500 |
commit | 78c8a950f8658ea8c3aeffb86ba8e24c910103c1 (patch) | |
tree | 306b8705a95e7ac21ca413eec296d245e3911dd6 /drivers/net/wireless/ath/ath9k/main.c | |
parent | ff47f9320e8a20c60b78c4bb8340f2d76e18ff08 (diff) |
ath9k: Fix interrupt statistics
Initialize "sync_cause" to zero since commit
"ath9k: move ath9k_debug_sync_cause out of ath9k_hw"
fills it conditionally based on ISR status.
Not doing this results in garbage values in debugfs.
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Sujith Manoharan <c_manoha@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, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 5aaf0f93ea11..077f9fb3b8cb 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -544,7 +544,7 @@ irqreturn_t ath_isr(int irq, void *dev) | |||
544 | struct ath_hw *ah = sc->sc_ah; | 544 | struct ath_hw *ah = sc->sc_ah; |
545 | struct ath_common *common = ath9k_hw_common(ah); | 545 | struct ath_common *common = ath9k_hw_common(ah); |
546 | enum ath9k_int status; | 546 | enum ath9k_int status; |
547 | u32 sync_cause; | 547 | u32 sync_cause = 0; |
548 | bool sched = false; | 548 | bool sched = false; |
549 | 549 | ||
550 | /* | 550 | /* |