Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134159
b: refs/heads/master
c: 55f5e4a
h: refs/heads/master
i:
  134157: 28c6a81
  134155: c30434e
  134151: 801b168
  134143: 2deca3f
v: v3
  • Loading branch information
Sujith authored and John W. Linville committed Jan 29, 2009
1 parent 3a33853 commit 3b0843c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8324357902698ffb7615d128d612c85d8e21912
refs/heads/master: 55f5e4a9800ae6e6e052380a8b3c9c4996d5cd05
22 changes: 9 additions & 13 deletions trunk/drivers/net/wireless/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,12 +877,6 @@ static u32 ath_txq_depth(struct ath_softc *sc, int qnum)
return sc->tx.txq[qnum].axq_depth;
}

static void ath_tx_stopdma(struct ath_softc *sc, struct ath_txq *txq)
{
struct ath_hal *ah = sc->sc_ah;
(void) ath9k_hw_stoptxdma(ah, txq->axq_qnum);
}

static void ath_get_beaconconfig(struct ath_softc *sc, int if_id,
struct ath_beacon_config *conf)
{
Expand All @@ -899,15 +893,17 @@ static void ath_get_beaconconfig(struct ath_softc *sc, int if_id,
static void ath_drain_txdataq(struct ath_softc *sc, bool retry_tx)
{
struct ath_hal *ah = sc->sc_ah;
struct ath_txq *txq;
int i, npend = 0;

if (!(sc->sc_flags & SC_OP_INVALID)) {
for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
if (ATH_TXQ_SETUP(sc, i)) {
ath_tx_stopdma(sc, &sc->tx.txq[i]);
npend += ath9k_hw_numtxpending(ah,
sc->tx.txq[i].axq_qnum);
}
if (sc->sc_flags & SC_OP_INVALID)
return;

for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
if (ATH_TXQ_SETUP(sc, i)) {
txq = &sc->tx.txq[i];
ath9k_hw_stoptxdma(ah, txq->axq_qnum);
npend += ath9k_hw_numtxpending(ah, txq->axq_qnum);
}
}

Expand Down

0 comments on commit 3b0843c

Please sign in to comment.