svn commit: r312609 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Sat Jan 21 23:35:55 UTC 2017


Author: adrian
Date: Sat Jan 21 23:35:54 2017
New Revision: 312609
URL: https://svnweb.freebsd.org/changeset/base/312609

Log:
  [ath] improve the debugging when looking into the maximum A-MPDU size being chosen.
  
  This is how I caught the "why are we only sending 8K aggregates?" problem.

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

Modified: head/sys/dev/ath/if_ath_tx_ht.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx_ht.c	Sat Jan 21 23:07:15 2017	(r312608)
+++ head/sys/dev/ath/if_ath_tx_ht.c	Sat Jan 21 23:35:54 2017	(r312609)
@@ -589,8 +589,14 @@ ath_get_aggr_limit(struct ath_softc *sc,
 		amin = MIN(amin, bf->bf_state.bfs_rc[i].max4msframelen);
 	}
 
-	DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR, "%s: max frame len= %d\n",
-	    __func__, amin);
+	DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR,
+	    "%s: aggr_limit=%d, iv_ampdu_limit=%d, "
+	    "peer maxrxampdu=%d, max frame len=%d\n",
+	    __func__,
+	    sc->sc_aggr_limit,
+	    vap->iv_ampdu_limit,
+	    MS(ni->ni_htparam, IEEE80211_HTCAP_MAXRXAMPDU),
+	    amin);
 
 	return amin;
 #undef	MS


More information about the svn-src-all mailing list