diff options
author | Rajkumar Manoharan | 2011-08-20 13:52:09 +0200 |
---|---|---|
committer | John W. Linville | 2011-08-24 20:57:15 +0200 |
commit | 2a15b394f8e46dd3e2ab365ab41cfa701d92fa77 (patch) | |
tree | 7b19e84dab69a0c5681c131c319671e3fdacc6a2 /drivers/net/wireless/ath/ath9k/ar9003_mac.c | |
parent | ath9k: Add support for get_stats callback (diff) | |
download | kernel-qcow2-linux-2a15b394f8e46dd3e2ab365ab41cfa701d92fa77.tar.gz kernel-qcow2-linux-2a15b394f8e46dd3e2ab365ab41cfa701d92fa77.tar.xz kernel-qcow2-linux-2a15b394f8e46dd3e2ab365ab41cfa701d92fa77.zip |
ath9k_hw: Fix descriptor status of TxOpExceeded
Cc: stable@kernel.org
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/ar9003_mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c index 81ccce1faff5..8ace36e77399 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c @@ -253,8 +253,6 @@ static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, return -EIO; } - if (status & AR_TxOpExceeded) - ts->ts_status |= ATH9K_TXERR_XTXOP; ts->ts_rateindex = MS(status, AR_FinalTxIdx); ts->ts_seqnum = MS(status, AR_SeqNum); ts->tid = MS(status, AR_TxTid); @@ -264,6 +262,8 @@ static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, ts->ts_status = 0; ts->ts_flags = 0; + if (status & AR_TxOpExceeded) + ts->ts_status |= ATH9K_TXERR_XTXOP; status = ACCESS_ONCE(ads->status2); ts->ts_rssi_ctl0 = MS(status, AR_TxRSSIAnt00); ts->ts_rssi_ctl1 = MS(status, AR_TxRSSIAnt01); |