From owner-svn-src-head@FreeBSD.ORG Tue Jun 4 23:52:57 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DF259ADD; Tue, 4 Jun 2013 23:52:57 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B577B179D; Tue, 4 Jun 2013 23:52:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r54NqvMG032193; Tue, 4 Jun 2013 23:52:57 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r54NqvZX032192; Tue, 4 Jun 2013 23:52:57 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201306042352.r54NqvZX032192@svn.freebsd.org> From: Adrian Chadd Date: Tue, 4 Jun 2013 23:52:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251398 - head/tools/tools/ath/athstats 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.14 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: Tue, 04 Jun 2013 23:52:57 -0000 Author: adrian Date: Tue Jun 4 23:52:57 2013 New Revision: 251398 URL: http://svnweb.freebsd.org/changeset/base/251398 Log: Add RX STBC statistics. Modified: head/tools/tools/ath/athstats/athstats.c Modified: head/tools/tools/ath/athstats/athstats.c ============================================================================== --- head/tools/tools/ath/athstats/athstats.c Tue Jun 4 22:47:01 2013 (r251397) +++ head/tools/tools/ath/athstats/athstats.c Tue Jun 4 23:52:57 2013 (r251398) @@ -262,7 +262,9 @@ static const struct fmt athstats[] = { { 10, "rxdescbusy", "rxdescbusy", "Decryption engine busy" }, #define S_RX_HI_CHAIN AFTER(S_RX_DECRYPT_BUSY_ERR) { 4, "rxhi", "rxhi", "Frames received with RX chain in high power mode" }, -#define S_TX_HTPROTECT AFTER(S_RX_HI_CHAIN) +#define S_RX_STBC AFTER(S_RX_HI_CHAIN) + { 6, "rxstbc", "rxstbc", "Frames received w/ STBC encoding" }, +#define S_TX_HTPROTECT AFTER(S_RX_STBC) { 7, "txhtprot", "txhtprot", "Frames transmitted with HT Protection" }, #define S_RX_QEND AFTER(S_TX_HTPROTECT) { 7, "rxquend", "rxquend", "Hit end of RX descriptor queue" }, @@ -420,7 +422,6 @@ static const struct fmt athstats[] = { { 4, "signal", "sig", "avg recv signal (dBm)" }, #define S_BMISSCOUNT AFTER(S_RX_SIGNAL) { 8, "bmisscount", "bmisscnt", "beacon miss count" }, - }; #define S_PHY_MIN S_RX_PHY_UNDERRUN #define S_PHY_MAX S_RX_PHY_CCK_RESTART @@ -773,6 +774,7 @@ ath_get_curstat(struct statfoo *sf, int case S_RX_POST_CRC_ERR: STAT(rx_post_crc_err); case S_RX_DECRYPT_BUSY_ERR: STAT(rx_decrypt_busy_err); case S_RX_HI_CHAIN: STAT(rx_hi_rx_chain); + case S_RX_STBC: STAT(rx_stbc); case S_TX_HTPROTECT: STAT(tx_htprotect); case S_RX_QEND: STAT(rx_hitqueueend); case S_TX_TIMEOUT: STAT(tx_timeout); @@ -1015,6 +1017,7 @@ ath_get_totstat(struct statfoo *sf, int case S_RX_POST_CRC_ERR: STAT(rx_post_crc_err); case S_RX_DECRYPT_BUSY_ERR: STAT(rx_decrypt_busy_err); case S_RX_HI_CHAIN: STAT(rx_hi_rx_chain); + case S_RX_STBC: STAT(rx_stbc); case S_TX_HTPROTECT: STAT(tx_htprotect); case S_RX_QEND: STAT(rx_hitqueueend); case S_TX_TIMEOUT: STAT(tx_timeout);