From owner-svn-src-head@FreeBSD.ORG Mon Feb 21 19:19:05 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93641106564A; Mon, 21 Feb 2011 19:19:05 +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 8212F8FC12; Mon, 21 Feb 2011 19:19:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1LJJ5Hb080474; Mon, 21 Feb 2011 19:19:05 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1LJJ53h080471; Mon, 21 Feb 2011 19:19:05 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201102211919.p1LJJ53h080471@svn.freebsd.org> From: Adrian Chadd Date: Mon, 21 Feb 2011 19:19:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218924 - head/sys/dev/ath X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 21 Feb 2011 19:19:05 -0000 Author: adrian Date: Mon Feb 21 19:19:05 2011 New Revision: 218924 URL: http://svn.freebsd.org/changeset/base/218924 Log: Add a new counter which tracks frames TX'ed with HT protection. Modified: head/sys/dev/ath/if_ath.c head/sys/dev/ath/if_athioctl.h Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Mon Feb 21 18:58:58 2011 (r218923) +++ head/sys/dev/ath/if_ath.c Mon Feb 21 19:19:05 2011 (r218924) @@ -6604,6 +6604,8 @@ ath_sysctl_stats_attach(struct ath_softc SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_post_crc_err", CTLFLAG_RD, &sc->sc_stats.ast_rx_post_crc_err, 0, ""); SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_decrypt_busy_err", CTLFLAG_RD, &sc->sc_stats.ast_rx_decrypt_busy_err, 0, ""); SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_hi_rx_chain", CTLFLAG_RD, &sc->sc_stats.ast_rx_hi_rx_chain, 0, ""); + SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_htprotect", CTLFLAG_RD, + &sc->sc_stats.ast_tx_htprotect, 0, "HT tx frames with protection"); /* Attach the RX phy error array */ ath_sysctl_stats_attach_rxphyerr(sc, child); Modified: head/sys/dev/ath/if_athioctl.h ============================================================================== --- head/sys/dev/ath/if_athioctl.h Mon Feb 21 18:58:58 2011 (r218923) +++ head/sys/dev/ath/if_athioctl.h Mon Feb 21 19:19:05 2011 (r218924) @@ -127,7 +127,8 @@ struct ath_stats { u_int32_t ast_rx_post_crc_err; u_int32_t ast_rx_decrypt_busy_err; u_int32_t ast_rx_hi_rx_chain; - u_int32_t ast_pad[4]; + u_int32_t ast_tx_htprotect; /* HT tx frames with protection */ + u_int32_t ast_pad[3]; }; #define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)