From owner-svn-src-head@FreeBSD.ORG Sat Mar 8 19:35:32 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 38254E31; Sat, 8 Mar 2014 19:35:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2506D185; Sat, 8 Mar 2014 19:35:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s28JZWAt002369; Sat, 8 Mar 2014 19:35:32 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s28JZVgZ002368; Sat, 8 Mar 2014 19:35:32 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201403081935.s28JZVgZ002368@svn.freebsd.org> From: Rui Paulo Date: Sat, 8 Mar 2014 19:35:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262930 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2014 19:35:32 -0000 Author: rpaulo Date: Sat Mar 8 19:35:31 2014 New Revision: 262930 URL: http://svnweb.freebsd.org/changeset/base/262930 Log: Call ieee80211_dump_pkt() based on IFF_DUMPPKTS(). MFC after: 3 days 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 Sat Mar 8 14:58:39 2014 (r262929) +++ head/sys/dev/ath/if_ath_tx.c Sat Mar 8 19:35:31 2014 (r262930) @@ -3769,9 +3769,10 @@ ath_tx_tid_drain_print(struct ath_softc 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); } /*