From 28dc144e732337673b5134a06c67a611a5e669d2 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 21 Jan 2017 23:35:54 +0000 Subject: [PATCH] [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. --- sys/dev/ath/if_ath_tx_ht.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/dev/ath/if_ath_tx_ht.c b/sys/dev/ath/if_ath_tx_ht.c index 5a6e39ed085c..e8bd665303ac 100644 --- a/sys/dev/ath/if_ath_tx_ht.c +++ b/sys/dev/ath/if_ath_tx_ht.c @@ -589,8 +589,14 @@ ath_get_aggr_limit(struct ath_softc *sc, struct ieee80211_node *ni, 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