Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2012 06:00:52 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240882 - head/sys/dev/ath
Message-ID:  <201209240600.q8O60qwe055976@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Sep 24 06:00:51 2012
New Revision: 240882
URL: http://svn.freebsd.org/changeset/base/240882

Log:
  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.

Modified:
  head/sys/dev/ath/if_ath_tx.c

Modified: head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx.c	Mon Sep 24 05:24:10 2012	(r240881)
+++ head/sys/dev/ath/if_ath_tx.c	Mon Sep 24 06:00:51 2012	(r240882)
@@ -2012,6 +2012,7 @@ ath_tx_raw_start(struct ath_softc *sc, s
 	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, s
 		/* 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209240600.q8O60qwe055976>