Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203511
b: refs/heads/master
c: 2b40994
h: refs/heads/master
i:
  203509: 3d16678
  203507: b234874
  203503: 9ef5977
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jul 7, 2010
1 parent d8a0ba8 commit 56381e2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 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: 60ea385ff279a18790a432d57a8302562aaa0f8d
refs/heads/master: 2b40994cabd2f545d5c11d3a65dcee6f6f9155f8
52 changes: 26 additions & 26 deletions trunk/drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2430,37 +2430,37 @@ void ath_tx_node_init(struct ath_softc *sc, struct ath_node *an)

void ath_tx_node_cleanup(struct ath_softc *sc, struct ath_node *an)
{
int i;
struct ath_atx_ac *ac, *ac_tmp;
struct ath_atx_tid *tid, *tid_tmp;
struct ath_atx_ac *ac;
struct ath_atx_tid *tid;
struct ath_txq *txq;
int i, tidno;

for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
if (ATH_TXQ_SETUP(sc, i)) {
txq = &sc->tx.txq[i];
for (tidno = 0, tid = &an->tid[tidno];
tidno < WME_NUM_TID; tidno++, tid++) {
i = tid->ac->qnum;

spin_lock_bh(&txq->axq_lock);
if (!ATH_TXQ_SETUP(sc, i))
continue;

list_for_each_entry_safe(ac,
ac_tmp, &txq->axq_acq, list) {
tid = list_first_entry(&ac->tid_q,
struct ath_atx_tid, list);
if (tid && tid->an != an)
continue;
list_del(&ac->list);
ac->sched = false;

list_for_each_entry_safe(tid,
tid_tmp, &ac->tid_q, list) {
list_del(&tid->list);
tid->sched = false;
ath_tid_drain(sc, txq, tid);
tid->state &= ~AGGR_ADDBA_COMPLETE;
tid->state &= ~AGGR_CLEANUP;
}
}
txq = &sc->tx.txq[i];
ac = tid->ac;

spin_unlock_bh(&txq->axq_lock);
spin_lock_bh(&txq->axq_lock);

if (tid->sched) {
list_del(&tid->list);
tid->sched = false;
}

if (ac->sched) {
list_del(&ac->list);
tid->ac->sched = false;
}

ath_tid_drain(sc, txq, tid);
tid->state &= ~AGGR_ADDBA_COMPLETE;
tid->state &= ~AGGR_CLEANUP;

spin_unlock_bh(&txq->axq_lock);
}
}

0 comments on commit 56381e2

Please sign in to comment.