]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ath9k_hw: report the TID in the tx status on AR5008-AR9002
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Jul 2010 10:48:43 +0000 (12:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jul 2010 20:05:38 +0000 (16:05 -0400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_mac.c
drivers/net/wireless/ath/ath9k/ar9003_mac.h
drivers/net/wireless/ath/ath9k/mac.h

index 2be20d2070c4472ebf97268d6eb10755b1305672..50dda394f8bef01ee69fb3d3e88604e856f6b938 100644 (file)
@@ -287,6 +287,7 @@ static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds,
        ts->ts_shortretry = MS(ads->ds_txstatus1, AR_RTSFailCnt);
        ts->ts_longretry = MS(ads->ds_txstatus1, AR_DataFailCnt);
        ts->ts_virtcol = MS(ads->ds_txstatus1, AR_VirtRetryCnt);
+       ts->tid = MS(ads->ds_txstatus9, AR_TxTid);
        ts->ts_antenna = 0;
 
        return 0;
index f76f27d16f771647ad5cb7dec9aad15dbe7dd445..9f2cea70a840801dc1f767993a83b02fa4c29eb1 100644 (file)
@@ -33,9 +33,6 @@
 #define AR_TxDescId_S  16
 #define AR_TxPtrChkSum 0x0000ffff
 
-#define AR_TxTid       0xf0000000
-#define AR_TxTid_S     28
-
 #define AR_LowRxChain  0x00004000
 
 #define AR_Not_Sounding        0x20000000
index 7559fb2b28a5b6541c25700a51bc585d8c68b0f2..2633896d39983499f931b576db97bfdbe5da2e31 100644 (file)
@@ -485,6 +485,9 @@ struct ar5416_desc {
 #define AR_TxRSSICombined   0xff000000
 #define AR_TxRSSICombined_S 24
 
+#define AR_TxTid       0xf0000000
+#define AR_TxTid_S     28
+
 #define AR_TxEVM0           ds_txstatus5
 #define AR_TxEVM1           ds_txstatus6
 #define AR_TxEVM2           ds_txstatus7