From owner-svn-src-user@FreeBSD.ORG Fri Aug 19 11:58:06 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45701106566C; Fri, 19 Aug 2011 11:58:06 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1C52E8FC13; Fri, 19 Aug 2011 11:58:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7JBw6r5002573; Fri, 19 Aug 2011 11:58:06 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7JBw5qs002571; Fri, 19 Aug 2011 11:58:05 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201108191158.p7JBw5qs002571@svn.freebsd.org> From: Adrian Chadd Date: Fri, 19 Aug 2011 11:58:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225004 - user/adrian/if_ath_tx/sys/dev/ath X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 11:58:06 -0000 Author: adrian Date: Fri Aug 19 11:58:05 2011 New Revision: 225004 URL: http://svn.freebsd.org/changeset/base/225004 Log: Tidy up some debugging, remove some now unused code. Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Fri Aug 19 10:12:02 2011 (r225003) +++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Fri Aug 19 11:58:05 2011 (r225004) @@ -2616,11 +2616,7 @@ ath_tx_aggr_comp_aggr(struct ath_softc * __func__, bf, SEQNO(bf->bf_state.bfs_seqno), ATH_BA_ISSET(ba, ba_index)); - /* - * For now, ACK all packets - */ if (tx_ok && ATH_BA_ISSET(ba, ba_index)) { - //if (1) { ath_tx_update_baw(sc, an, atid, SEQNO(bf->bf_state.bfs_seqno)); ath_tx_default_comp(sc, bf, 0); @@ -2785,7 +2781,7 @@ ath_tx_tid_hw_queue_aggr(struct ath_soft * data frame), schedule it directly; continue. */ if (! bf->bf_state.bfs_dobaw) { - DPRINTF(sc, ATH_DEBUG_SW_TX_CTRL, "%s: non-baw packet\n", + DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR, "%s: non-baw packet\n", __func__); ATH_TXQ_REMOVE(atid, bf, bf_list); ATH_TXQ_UNLOCK(atid); @@ -2806,7 +2802,7 @@ ath_tx_tid_hw_queue_aggr(struct ath_soft TAILQ_INIT(&bf_q); status = ath_tx_form_aggr(sc, an, atid, &bf_q); - DPRINTF(sc, ATH_DEBUG_SW_TX_CTRL, + DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR, "%s: ath_tx_form_aggr() status=%d\n", __func__, status); /* @@ -2827,7 +2823,7 @@ ath_tx_tid_hw_queue_aggr(struct ath_soft * whether it's in the BAW and added it appropriately. */ if (bf->bf_state.bfs_nframes == 1) { - DPRINTF(sc, ATH_DEBUG_SW_TX_CTRL, + DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR, "%s: single-frame aggregate\n", __func__); bf->bf_state.bfs_aggr = 0; /* Ensure the last descriptor link is 0 */ @@ -2837,7 +2833,7 @@ ath_tx_tid_hw_queue_aggr(struct ath_soft ath_hal_clr11n_aggr(sc->sc_ah, bf->bf_desc); ath_tx_set_ratectrl(sc, ni, bf); } else { - DPRINTF(sc, ATH_DEBUG_SW_TX_CTRL, + DPRINTF(sc, ATH_DEBUG_SW_TX_AGGR, "%s: multi-frame aggregate: %d frames, length %d\n", __func__, bf->bf_state.bfs_nframes, bf->bf_state.bfs_al);