From 3af06f43c610e7499ff37c73843d4aee53ab9f2b Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Tue, 11 Mar 2014 05:58:52 +0000 Subject: [PATCH] MFC r262930 Call ieee80211_dump_pkt() based on IFF_DUMPPKTS(). --- sys/dev/ath/if_ath_tx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index 9184a4bcc18f..8bacd928aeac 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -3767,9 +3767,10 @@ ath_tx_tid_drain_print(struct ath_softc *sc, struct ath_node *an, ni->ni_txseqs[tid->tid]); /* XXX Dump the frame, see what it is? */ - ieee80211_dump_pkt(ni->ni_ic, - mtod(bf->bf_m, const uint8_t *), - bf->bf_m->m_len, 0, -1); + if (IFF_DUMPPKTS(sc, ATH_DEBUG_XMIT)) + ieee80211_dump_pkt(ni->ni_ic, + mtod(bf->bf_m, const uint8_t *), + bf->bf_m->m_len, 0, -1); } /*