From owner-svn-src-user@FreeBSD.ORG Wed Jul 14 08:08:44 2010 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 13498106566B; Wed, 14 Jul 2010 08:08:44 +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 0339A8FC18; Wed, 14 Jul 2010 08:08:44 +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 o6E88how002524; Wed, 14 Jul 2010 08:08:43 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6E88hmd002521; Wed, 14 Jul 2010 08:08:43 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201007140808.o6E88hmd002521@svn.freebsd.org> From: Adrian Chadd Date: Wed, 14 Jul 2010 08:08:43 +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: r210045 - user/adrian/if_ath_devel/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: Wed, 14 Jul 2010 08:08:44 -0000 Author: adrian Date: Wed Jul 14 08:08:43 2010 New Revision: 210045 URL: http://svn.freebsd.org/changeset/base/210045 Log: Count missed (but not stuck) beacons. Modified: user/adrian/if_ath_devel/sys/dev/ath/if_ath.c user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h Modified: user/adrian/if_ath_devel/sys/dev/ath/if_ath.c ============================================================================== --- user/adrian/if_ath_devel/sys/dev/ath/if_ath.c Wed Jul 14 06:37:43 2010 (r210044) +++ user/adrian/if_ath_devel/sys/dev/ath/if_ath.c Wed Jul 14 08:08:43 2010 (r210045) @@ -2824,6 +2824,7 @@ ath_beacon_proc(void *arg, int pending) */ if (ath_hal_numtxpending(ah, sc->sc_bhalq) != 0) { sc->sc_bmisscount++; + sc->sc_stats.ast_be_missed++; DPRINTF(sc, ATH_DEBUG_BEACON, "%s: missed %u consecutive beacons\n", __func__, sc->sc_bmisscount); Modified: user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h ============================================================================== --- user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h Wed Jul 14 06:37:43 2010 (r210044) +++ user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h Wed Jul 14 08:08:43 2010 (r210045) @@ -118,7 +118,8 @@ struct ath_stats { u_int32_t ast_tdma_ack; /* TDMA tx failed 'cuz ACK required */ u_int32_t ast_tx_raw_fail;/* raw tx failed 'cuz h/w down */ u_int32_t ast_tx_nofrag; /* tx dropped 'cuz no ath frag buffer */ - u_int32_t ast_pad[14]; + u_int32_t ast_be_missed; /* missed beacons */ + u_int32_t ast_pad[10]; }; #define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)