mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:18:07 +02:00
b1b81f3461
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23733 3c298f89-4303-0410-b956-a3cf2f4a3e73
35 lines
1013 B
Diff
35 lines
1013 B
Diff
--- a/drivers/net/wireless/ath/ath9k/xmit.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
|
|
@@ -1089,15 +1089,6 @@ void ath_draintxq(struct ath_softc *sc,
|
|
txq->axq_tx_inprogress = false;
|
|
spin_unlock_bh(&txq->axq_lock);
|
|
|
|
- /* flush any pending frames if aggregation is enabled */
|
|
- if (sc->sc_flags & SC_OP_TXAGGR) {
|
|
- if (!retry_tx) {
|
|
- spin_lock_bh(&txq->axq_lock);
|
|
- ath_txq_drain_pending_buffers(sc, txq);
|
|
- spin_unlock_bh(&txq->axq_lock);
|
|
- }
|
|
- }
|
|
-
|
|
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
|
|
spin_lock_bh(&txq->axq_lock);
|
|
while (!list_empty(&txq->txq_fifo_pending)) {
|
|
@@ -1118,6 +1109,15 @@ void ath_draintxq(struct ath_softc *sc,
|
|
}
|
|
spin_unlock_bh(&txq->axq_lock);
|
|
}
|
|
+
|
|
+ /* flush any pending frames if aggregation is enabled */
|
|
+ if (sc->sc_flags & SC_OP_TXAGGR) {
|
|
+ if (!retry_tx) {
|
|
+ spin_lock_bh(&txq->axq_lock);
|
|
+ ath_txq_drain_pending_buffers(sc, txq);
|
|
+ spin_unlock_bh(&txq->axq_lock);
|
|
+ }
|
|
+ }
|
|
}
|
|
|
|
void ath_drain_all_txq(struct ath_softc *sc, bool retry_tx)
|