From 94eefcf1dc831530b97fa5db0016d882b5904902 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 24 Sep 2012 06:00:51 +0000 Subject: [PATCH] In (eventual) preparation for supporting disabling the whole 11n/software retry path - add some code to make it obvious (to me!) how to disable the software tx path. --- sys/dev/ath/if_ath_tx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index aa750d87802..b6c7ad6ae12 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -2012,6 +2012,7 @@ ath_tx_raw_start(struct ath_softc *sc, struct ieee80211_node *ni, DPRINTF(sc, ATH_DEBUG_SW_TX, "%s: dooverride=%d\n", __func__, do_override); +#if 1 if (do_override) { bf->bf_state.bfs_txflags |= HAL_TXDESC_CLRDMASK; ath_tx_xmit_normal(sc, sc->sc_ac2q[pri], bf); @@ -2019,6 +2020,11 @@ ath_tx_raw_start(struct ath_softc *sc, struct ieee80211_node *ni, /* Queue to software queue */ ath_tx_swq(sc, ni, sc->sc_ac2q[pri], bf); } +#else + /* Direct-dispatch to the hardware */ + bf->bf_state.bfs_txflags |= HAL_TXDESC_CLRDMASK; + ath_tx_xmit_normal(sc, sc->sc_ac2q[pri], bf); +#endif ATH_TXQ_UNLOCK(sc->sc_ac2q[pri]); return 0;