summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/xmit.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-27 19:58:42 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-03-05 15:20:48 -0500
commit4e0ad2591adde7bec878a4b37a073427aec3e19c (patch)
tree614069849bdeaaccc48db05667ed97dea2098dc2 /drivers/net/wireless/ath/ath9k/xmit.c
parent627e67a656bbb1d616c1ca2d056138a164111a52 (diff)
downloadblackbird-op-linux-4e0ad2591adde7bec878a4b37a073427aec3e19c.tar.gz
blackbird-op-linux-4e0ad2591adde7bec878a4b37a073427aec3e19c.zip
ath9k: fix drv_tx_last_beacon on AR9003 by processing beacon tx status
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index 5dd27d2712fc..9f785015a7dc 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -2296,9 +2296,12 @@ void ath_tx_edma_tasklet(struct ath_softc *sc)
break;
}
- /* Skip beacon completions */
- if (ts.qid == sc->beacon.beaconq)
+ /* Process beacon completions separately */
+ if (ts.qid == sc->beacon.beaconq) {
+ sc->beacon.tx_processed = true;
+ sc->beacon.tx_last = !(ts.ts_status & ATH9K_TXERR_MASK);
continue;
+ }
txq = &sc->tx.txq[ts.qid];
OpenPOWER on IntegriCloud