diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-12-07 09:55:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-12-10 15:47:30 -0500 |
commit | 4f7dc951e2dad489fb89b03d3f968d3a229dc9ec (patch) | |
tree | 596ca5d4a9f52244f6739691c3f24c9d257a7626 /drivers/net | |
parent | 5b5ac41447de30cb5ed5e72d3d4e1a9e6e12f640 (diff) |
ath9k: Fix regression in 'xmit' debugfs file
Commit "ath9k: Fix the 'xmit' debugfs file" changed the
the array size of ath_stats.txstats to IEEE80211_NUM_ACS,
which is wrong because the HW queue number is used to
update the statistics. Revert back to using ATH9K_NUM_TX_QUEUES.
Reported-by: 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')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.h b/drivers/net/wireless/ath/ath9k/debug.h index 72d4893311b1..375c3b46411e 100644 --- a/drivers/net/wireless/ath/ath9k/debug.h +++ b/drivers/net/wireless/ath/ath9k/debug.h | |||
@@ -242,7 +242,7 @@ struct ath_rx_stats { | |||
242 | 242 | ||
243 | struct ath_stats { | 243 | struct ath_stats { |
244 | struct ath_interrupt_stats istats; | 244 | struct ath_interrupt_stats istats; |
245 | struct ath_tx_stats txstats[IEEE80211_NUM_ACS]; | 245 | struct ath_tx_stats txstats[ATH9K_NUM_TX_QUEUES]; |
246 | struct ath_rx_stats rxstats; | 246 | struct ath_rx_stats rxstats; |
247 | struct ath_dfs_stats dfs_stats; | 247 | struct ath_dfs_stats dfs_stats; |
248 | u32 reset[__RESET_TYPE_MAX]; | 248 | u32 reset[__RESET_TYPE_MAX]; |