From owner-svn-src-user@FreeBSD.ORG Wed Jul 14 09:04:01 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 C10F0106566B; Wed, 14 Jul 2010 09:04:01 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 759878FC1A; Wed, 14 Jul 2010 09:04:01 +0000 (UTC) Received: by yxe42 with SMTP id 42so3973yxe.13 for ; Wed, 14 Jul 2010 02:04:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.3.19 with SMTP id 19mr18289320anc.228.1279096627289; Wed, 14 Jul 2010 01:37:07 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.100.110.6 with HTTP; Wed, 14 Jul 2010 01:37:06 -0700 (PDT) In-Reply-To: <201007140808.o6E88hmd002521@svn.freebsd.org> References: <201007140808.o6E88hmd002521@svn.freebsd.org> Date: Wed, 14 Jul 2010 20:37:06 +1200 X-Google-Sender-Auth: n67deJ5heFNBBOdpFJfNfu0lr10 Message-ID: From: Andrew Thompson To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: Re: 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 09:04:01 -0000 On 14 July 2010 20:08, Adrian Chadd wrote: > Author: adrian > Date: Wed Jul 14 08:08:43 2010 > New Revision: 210045 > URL: http://svn.freebsd.org/changeset/base/210045 > > Log: > =A0Count missed (but not stuck) beacons. > > Modified: > =A0user/adrian/if_ath_devel/sys/dev/ath/if_ath.c > =A0user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h > > Modified: user/adrian/if_ath_devel/sys/dev/ath/if_ath.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- user/adrian/if_ath_devel/sys/dev/ath/if_ath.c =A0 =A0 =A0 Wed Jul 14 = 06:37:43 2010 =A0 =A0 =A0 =A0(r210044) > +++ user/adrian/if_ath_devel/sys/dev/ath/if_ath.c =A0 =A0 =A0 Wed Jul 14 = 08:08:43 2010 =A0 =A0 =A0 =A0(r210045) > @@ -2824,6 +2824,7 @@ ath_beacon_proc(void *arg, int pending) > =A0 =A0 =A0 =A0 */ > =A0 =A0 =A0 =A0if (ath_hal_numtxpending(ah, sc->sc_bhalq) !=3D 0) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sc->sc_bmisscount++; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 sc->sc_stats.ast_be_missed++; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0DPRINTF(sc, ATH_DEBUG_BEACON, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"%s: missed %u consecutive= beacons\n", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0__func__, sc->sc_bmisscoun= t); > > Modified: user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h =A0Wed Jul 14 06:3= 7:43 2010 =A0 =A0 =A0 =A0(r210044) > +++ user/adrian/if_ath_devel/sys/dev/ath/if_athioctl.h =A0Wed Jul 14 08:0= 8:43 2010 =A0 =A0 =A0 =A0(r210045) > @@ -118,7 +118,8 @@ struct ath_stats { > =A0 =A0 =A0 =A0u_int32_t =A0 =A0 =A0 ast_tdma_ack; =A0 /* TDMA tx failed = 'cuz ACK required */ > =A0 =A0 =A0 =A0u_int32_t =A0 =A0 =A0 ast_tx_raw_fail;/* raw tx failed 'cu= z h/w down */ > =A0 =A0 =A0 =A0u_int32_t =A0 =A0 =A0 ast_tx_nofrag; =A0/* tx dropped 'cuz= no ath frag buffer */ > - =A0 =A0 =A0 u_int32_t =A0 =A0 =A0 ast_pad[14]; > + =A0 =A0 =A0 u_int32_t =A0 =A0 =A0 ast_be_missed; =A0/* missed beacons *= / > + =A0 =A0 =A0 u_int32_t =A0 =A0 =A0 ast_pad[10]; > =A0}; The maths is out here, its just one 32bit int. cheers, Andrew