diff options
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index 3854619f3514..3201c1604340 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -1335,7 +1335,7 @@ ath5k_txbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf, | |||
1335 | 1335 | ||
1336 | spin_lock_bh(&txq->lock); | 1336 | spin_lock_bh(&txq->lock); |
1337 | list_add_tail(&bf->list, &txq->q); | 1337 | list_add_tail(&bf->list, &txq->q); |
1338 | sc->tx_stats.data[txq->qnum].len++; | 1338 | sc->tx_stats[txq->qnum].len++; |
1339 | if (txq->link == NULL) /* is this first packet? */ | 1339 | if (txq->link == NULL) /* is this first packet? */ |
1340 | ath5k_hw_put_tx_buf(ah, txq->qnum, bf->daddr); | 1340 | ath5k_hw_put_tx_buf(ah, txq->qnum, bf->daddr); |
1341 | else /* no, so only link it */ | 1341 | else /* no, so only link it */ |
@@ -1566,7 +1566,7 @@ ath5k_txq_drainq(struct ath5k_softc *sc, struct ath5k_txq *txq) | |||
1566 | ath5k_txbuf_free(sc, bf); | 1566 | ath5k_txbuf_free(sc, bf); |
1567 | 1567 | ||
1568 | spin_lock_bh(&sc->txbuflock); | 1568 | spin_lock_bh(&sc->txbuflock); |
1569 | sc->tx_stats.data[txq->qnum].len--; | 1569 | sc->tx_stats[txq->qnum].len--; |
1570 | list_move_tail(&bf->list, &sc->txbuf); | 1570 | list_move_tail(&bf->list, &sc->txbuf); |
1571 | sc->txbuf_len++; | 1571 | sc->txbuf_len++; |
1572 | spin_unlock_bh(&sc->txbuflock); | 1572 | spin_unlock_bh(&sc->txbuflock); |
@@ -1979,10 +1979,10 @@ ath5k_tx_processq(struct ath5k_softc *sc, struct ath5k_txq *txq) | |||
1979 | } | 1979 | } |
1980 | 1980 | ||
1981 | ieee80211_tx_status(sc->hw, skb, &txs); | 1981 | ieee80211_tx_status(sc->hw, skb, &txs); |
1982 | sc->tx_stats.data[txq->qnum].count++; | 1982 | sc->tx_stats[txq->qnum].count++; |
1983 | 1983 | ||
1984 | spin_lock(&sc->txbuflock); | 1984 | spin_lock(&sc->txbuflock); |
1985 | sc->tx_stats.data[txq->qnum].len--; | 1985 | sc->tx_stats[txq->qnum].len--; |
1986 | list_move_tail(&bf->list, &sc->txbuf); | 1986 | list_move_tail(&bf->list, &sc->txbuf); |
1987 | sc->txbuf_len++; | 1987 | sc->txbuf_len++; |
1988 | spin_unlock(&sc->txbuflock); | 1988 | spin_unlock(&sc->txbuflock); |