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 */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"