diff options
author | adrian <adrian@FreeBSD.org> | 2013-05-19 01:33:17 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-05-19 01:33:17 +0000 |
commit | 16418fa47289c8136078cbbb67f903d11131dcc5 (patch) | |
tree | 6802fec4a0d0c67df7fb28c3af09b9d72ee352b2 /sys/dev | |
parent | 3feeec31e4231e758baab37e86720e57e543055d (diff) | |
download | FreeBSD-src-16418fa47289c8136078cbbb67f903d11131dcc5.zip FreeBSD-src-16418fa47289c8136078cbbb67f903d11131dcc5.tar.gz |
More non-ATH_DEBUG build fixes.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/if_ath_tx.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index e394205..aed9825 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -929,7 +929,6 @@ ath_tx_handoff_hw(struct ath_softc *sc, struct ath_txq *txq, static void ath_legacy_tx_dma_restart(struct ath_softc *sc, struct ath_txq *txq) { - struct ath_hal *ah = sc->sc_ah; struct ath_buf *bf, *bf_last; ATH_TXQ_LOCK_ASSERT(txq); @@ -949,8 +948,10 @@ ath_legacy_tx_dma_restart(struct ath_softc *sc, struct ath_txq *txq) bf_last, (uint32_t) bf->bf_daddr); +#ifdef ATH_DEBUG if (sc->sc_debug & ATH_DEBUG_RESET) ath_tx_dump(sc, txq); +#endif /* * This is called from a restart, so DMA is known to be @@ -964,8 +965,9 @@ ath_legacy_tx_dma_restart(struct ath_softc *sc, struct ath_txq *txq) ath_hal_puttxbuf(sc->sc_ah, txq->axq_qnum, bf->bf_daddr); txq->axq_flags |= ATH_TXQ_PUTRUNNING; - ath_hal_gettxdesclinkptr(ah, bf_last->bf_lastds, &txq->axq_link); - ath_hal_txstart(ah, txq->axq_qnum); + ath_hal_gettxdesclinkptr(sc->sc_ah, bf_last->bf_lastds, + &txq->axq_link); + ath_hal_txstart(sc->sc_ah, txq->axq_qnum); } /* |