Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2012 06:28:57 +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: r242951 - head/sys/dev/ath
Message-ID:  <201211130628.qAD6Svn9098454@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Nov 13 06:28:57 2012
New Revision: 242951
URL: http://svnweb.freebsd.org/changeset/base/242951

Log:
  Add some debugging to try and catch an invalid TX rate (0x0) that is
  being reported.

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	Tue Nov 13 06:12:26 2012	(r242950)
+++ head/sys/dev/ath/if_ath_tx.c	Tue Nov 13 06:28:57 2012	(r242951)
@@ -528,11 +528,19 @@ ath_tx_setds_11n(struct ath_softc *sc, s
 	    __func__, bf_first->bf_state.bfs_nframes,
 	    bf_first->bf_state.bfs_al);
 
+	bf = bf_first;
+
+	if (bf->bf_state.bfs_txrate0 == 0)
+		device_printf(sc->sc_dev, "%s: bf=%p, txrate0=%d\n",
+		    __func__, bf, 0);
+	if (bf->bf_state.bfs_rc[0].ratecode == 0)
+		device_printf(sc->sc_dev, "%s: bf=%p, rix0=%d\n",
+		    __func__, bf, 0);
+
 	/*
 	 * Setup all descriptors of all subframes - this will
 	 * call ath_hal_set11naggrmiddle() on every frame.
 	 */
-	bf = bf_first;
 	while (bf != NULL) {
 		DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR,
 		    "%s: bf=%p, nseg=%d, pktlen=%d, seqno=%d\n",
@@ -1236,6 +1244,10 @@ ath_tx_setds(struct ath_softc *sc, struc
 	struct ath_desc *ds = bf->bf_desc;
 	struct ath_hal *ah = sc->sc_ah;
 
+	if (bf->bf_state.bfs_txrate0 == 0)
+		device_printf(sc->sc_dev, "%s: bf=%p, txrate0=%d\n",
+		    __func__, bf, 0);
+
 	ath_hal_setuptxdesc(ah, ds
 		, bf->bf_state.bfs_pktlen	/* packet length */
 		, bf->bf_state.bfs_hdrlen	/* header length */



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