From owner-freebsd-net@FreeBSD.ORG Wed Jan 30 22:45:18 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B7EC5DA3 for ; Wed, 30 Jan 2013 22:45:18 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm23.bullet.mail.bf1.yahoo.com (nm23.bullet.mail.bf1.yahoo.com [98.139.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5B52CB09 for ; Wed, 30 Jan 2013 22:45:15 +0000 (UTC) Received: from [98.139.212.153] by nm23.bullet.mail.bf1.yahoo.com with NNFMP; 30 Jan 2013 22:45:14 -0000 Received: from [98.139.211.200] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 30 Jan 2013 22:45:14 -0000 Received: from [127.0.0.1] by smtp209.mail.bf1.yahoo.com with NNFMP; 30 Jan 2013 22:45:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1359585914; bh=6l8e/ye1EhS45Bgfqk3hrcGaxpdVnVrxnDz07OjTedA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:X-Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=YkFy/m/J1PHjXabdbMKUTOGSE6Sgco6+FucMVr25ln9WYBBytGXjDPtfG9TtJiUegnodfzTpOK3rGX4aYrmu708XHkHRvARxkZp9Wo5Oq6o/afkFH/1pvoXZjVD+G1bs0i+uGiYICPgL0ENOOzqjJ+Qsku21zSI+9fw6vG+415g= X-Yahoo-Newman-Id: 947876.21850.bm@smtp209.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: .dZOMDoVM1mRjWlVfmwSJsJMusEkoUU89F.ZP6s1yAvjCyz HFS20wqZGoWHUq2VfhyWELX38muv47r.grMfhN9FNQNz7il7YXDwrXruLkTE 2pGf9BIYgMVnBlmMRCzHd9CIqXx_OpqjzNC0MOO4H8QFOkvkfxdkZCeKZt7R zKukvu3EaaUWBuAN7.CfiETSx_Fxwt.i6HBMjOoApkckA2WAZK3TPtsz9XDt Ck6qK5YdZw0hlFOavlfI7_vcFPwIFmjEPrso8u6qE6H5zyS9BHYfwADxHuDy ZNumL66QX.S0J3yvVTgAGGoDQcXRH1GdPSGZcHMsyeFZ0X04Qb_z3UKn1_J1 YzqJa7mQ1A_o_ybJBdhR9C4lnNhZT0FikW5aV2T53a6KOHu2XPRhtcfquxvM 22cEboSKXssl46uU9Vj_wXLJBVJJJRxr.SxPUzbaGZ3dlavB_vLhKoDRlWei BrEKgplXRCDQaMWDyy31W2BbtYaLnP3ealGXvX606Z56C6Lw9dzHnHP7jmF6 zajrQJ8iAodQb8ZiG7iEmwWSX10xo_RPz0k3dv1RO0FN66Tun2xVMTUpf X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-pa0-f51.google.com (moonlightakkiy@209.85.220.51 with plain) by smtp209.mail.bf1.yahoo.com with SMTP; 30 Jan 2013 14:45:14 -0800 PST Received: by mail-pa0-f51.google.com with SMTP id hz1so432145pad.10 for ; Wed, 30 Jan 2013 14:45:13 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.66.83.136 with SMTP id q8mr14840551pay.83.1359585913968; Wed, 30 Jan 2013 14:45:13 -0800 (PST) Received: by 10.68.52.170 with HTTP; Wed, 30 Jan 2013 14:45:13 -0800 (PST) In-Reply-To: References: Date: Wed, 30 Jan 2013 15:45:13 -0700 Message-ID: Subject: Re: Block ACK in Ralink RT2860 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: Wed, 30 Jan 2013 22:45:18 -0000 On Wed, Jan 30, 2013 at 1:20 PM, Ramanujan Seshadri wrote: > Thank you. I also wanted to know the function where the Block ACK Window > will be decided. is it decided during the ADDBA session establishment or > does it change dynamically. The hardware will aggregate packets until any of following limits hit max http://fxr.watson.org/fxr/source/dev/ral/rt2860reg.h#L782 * rt2860_txwi.flags RT2860_TX_MPDU_DSITY_SHIFT 000 == no restriction 001 == 1/4 us 010 == 1/2 us ... 111 == 16 us * rt2860_txwi.xflags RT2860_TX_BAWINSIZE_SHIFT (frame count) http://fxr.watson.org/fxr/source/dev/ral/rt2860reg.h#L93 * RT2860_MAX_LEN_CFG bit 12:13 00 == 8k bytes 01 == 16k 10 == 32k 11 == 64k At a quick look, none of them is set in current code. Also, RT2860_TX_AMPDU flag need to be set to make the h/w aggregate packets. How is ampdu working on ral(4)? I cannot test because I do not have any ral(4) nic (only have run(4) nics). AK > > > On Thu, Jan 24, 2013 at 5:13 PM, PseudoCylon > wrote: >> >> > Message: 6 >> > Date: Thu, 24 Jan 2013 12:23:55 -0500 >> > From: Ramanujan Seshadri >> > To: freebsd-net@freebsd.org >> > Subject: Block ACK in Ralink RT2860 >> > Message-ID: >> > >> > >> > Content-Type: text/plain; charset=ISO-8859-1 >> > >> > Hi all, >> > I am trying to read the contents of block ack's in a Ralink RT2860 >> > driver. >> > Can you please help me to know which function i should be looking into ? >> >> At default, all BA packets are dropped by h/w. Clear RT2860_DROP_BA flag >> at >> http://fxr.watson.org/fxr/source/dev/ral/rt2860.c#L3559 >> >> Then, the diver should receive BA packets, and you can read them. >> >> >> AK > >