From owner-freebsd-net@FreeBSD.ORG Tue Nov 27 23:10:40 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A2F13B8F for ; Tue, 27 Nov 2012 23:10:40 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm40-vm2.bullet.mail.ne1.yahoo.com (nm40-vm2.bullet.mail.ne1.yahoo.com [98.138.229.178]) by mx1.freebsd.org (Postfix) with ESMTP id 2F1DB8FC08 for ; Tue, 27 Nov 2012 23:10:40 +0000 (UTC) Received: from [98.138.90.50] by nm40.bullet.mail.ne1.yahoo.com with NNFMP; 27 Nov 2012 23:07:36 -0000 Received: from [98.138.226.62] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 27 Nov 2012 23:07:36 -0000 Received: from [127.0.0.1] by smtp213.mail.ne1.yahoo.com with NNFMP; 27 Nov 2012 23:07:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1354057655; bh=H9OAgMeMljH2jEE6sXFzEdiqLxzRknoR1hISThYHUA0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=4QvqIzMCX3FxOEjnEvlIvnmq+9eK2JUO7OVp5to6LH+jwlTb2zyH6KI87FRfh0LuZO77bAe7WFJu2/J8zrJ1EbrTz4CpqgsEG8f0e3toIH9Tmm0jlKRU/w2wR/S/EAjK4N+h+bQ4THaDhOeLVhPmom+S7w+fS1UwDgiHQlNpb4I= X-Yahoo-Newman-Id: 994524.94061.bm@smtp213.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _e864gcVM1mwpAD_7Xw6jvmAgGy6peQG4GBDoxVM75w._xw DfUONrFTWgq3Ott0s8YIESssyzeWMC2e.T4hj5_t4GcvxTgEnh37EN0UW._g 1c9m0voL9l5pABg069QZLrk96YKfeJQEZ.PqBoA3QUBnWDNI4Q97lwmkBZ58 Vw.2UDer9.Gn_wk8j.gtN1Mj.bdY64Ty8Xvpe9JvQNhc0ZtMtxs0oKeGMx28 SnSKHPwzWwRObAac1OqxWcuKd_yOheCzR0Mq0jS0wn7dLIuE65Y5fqAS8cpb FqPHDl1jzJ6TI0ROLlRkVojxzEJ43bV20bch8xnKr7i5KG.6sEtgmDQgxB_n .5SPX9g_mljT7NlxFBzvC4d0XeU4ow22IxllbHxC2Tk0gowEnQt7bo1j2pzI gIPAZHEf6EEIAl69UU3yfxY8GkybZKVcd6cA2VBli.aKGCBuAirwAlkqfmA0 9RPxaQNpisE0Wj76PJVoj.CIPa9YeQoPD3TGo6Hhoam5nnbYpF9v58Lo9VBm 8n225eeFO8ZtDXWiKcaLZRgItBaJM8saOQB8HjpGB8fMCIsZHQ0HTHZCeTHk XWMCNZgCqIJ3d.p7X2_ymOn082SIVPbybkQkh0Hw7OXzJN_rHPZs1b2gu_w- - X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-ia0-f182.google.com (moonlightakkiy@209.85.210.182 with plain) by smtp213.mail.ne1.yahoo.com with SMTP; 27 Nov 2012 15:07:35 -0800 PST Received: by mail-ia0-f182.google.com with SMTP id x2so11844542iad.13 for ; Tue, 27 Nov 2012 15:07:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.40.229 with SMTP id a5mr20120127igl.59.1354057655502; Tue, 27 Nov 2012 15:07:35 -0800 (PST) Received: by 10.64.44.141 with HTTP; Tue, 27 Nov 2012 15:07:35 -0800 (PST) In-Reply-To: References: Date: Tue, 27 Nov 2012 16:07:35 -0700 Message-ID: Subject: Re: Ralink RT2860 Driver Code From: PseudoCylon To: Ramanujan Seshadri Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2012 23:10:40 -0000 On Tue, Nov 27, 2012 at 1:23 PM, Ramanujan Seshadri wrote: > I want to know how many MPDU's are aggregated in each AMPDU transmission. You could use following statistic counters RT2860_TX_AGG_CNT0 to 7 https://gitorious.org/run/run/blobs/11n_rc3/dev/usb/wlan/if_runreg.h#line186 Each 32-bit little-endian read-on-clear register contains 2 16-bit counters (total 16 16-bit counters). counter at offset 0x1720 MPDU count 1 counter at offset 0x1722 MPDU count 2 ... counter at offset 0x173c MPDU count 15 counter at offset 0x173e MPDU count >= 16 These regs are identical on RT2800 and RT2700 (pci/usb). Example (see #if 0 part) https://gitorious.org/run/run/blobs/11n_rc3/dev/usb/wlan/if_run.c#line2493 You can only find out statistical numbers (total Tx counts past X sec). You cannot find out an MPDU count in a particular packet, i.e. an aggregated packet just Tx'd, unless you read the counters on each Tx. AK > > -ram > > > On Tue, Nov 27, 2012 at 2:11 PM, PseudoCylon > wrote: >> >> > ------------------------------ >> > >> > Message: 12 >> > Date: Tue, 27 Nov 2012 04:33:37 -0500 >> > From: Ramanujan Seshadri >> > To: freebsd-net@freebsd.org >> > Subject: Ralink RT2860 Driver Code >> > Message-ID: >> > >> > >> > Content-Type: text/plain; charset=ISO-8859-1 >> > >> > Hello, >> > Can i know how to get the MPDU's aggregated in each AMPDU in a ralink >> > driver code for RT2860. I saw the existing counters of ralink and tried >> > to >> > get some info, but was not very useful. >> > Any help is greatly appreciated. >> > >> >> https://gitorious.org/run/run/trees/11n_rc3/dev/usb/wlan >> >> What info are you trying to get? >> >> >> AK >> >> > Thanks >> > ram >> > >> > >> > ------------------------------ >> > >> > _______________________________________________ >> > freebsd-net@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-net >> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > >> > End of freebsd-net Digest, Vol 504, Issue 2 >> > ******************************************* > >