aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-04-03 09:16:55 -0700
committerJohn W. Linville <linville@tuxdriver.com>2012-04-11 16:23:54 -0400
commita5a0bca1d81b18699885bce532d2b3e0ab3b30c0 (patch)
treef76303f3853e78790788006799c8cd7b63face38 /drivers/net/wireless/ath/ath9k/main.c
parentath9k: update to DFS pattern detector interface (diff)
downloadlinux-dev-a5a0bca1d81b18699885bce532d2b3e0ab3b30c0.tar.xz
linux-dev-a5a0bca1d81b18699885bce532d2b3e0ab3b30c0.zip
ath9k: Add tx-failed counter.
This counts any failure during getting packets into the DMA buffers, including out-of-memory, etc. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index eeea81b16d9c..5de648c243bf 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1152,6 +1152,7 @@ static void ath9k_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
if (ath_tx_start(hw, skb, &txctl) != 0) {
ath_dbg(common, XMIT, "TX failed\n");
+ TX_STAT_INC(txctl.txq->axq_qnum, txfailed);
goto exit;
}