From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 4 18:57:29 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03626106564A for ; Sun, 4 Sep 2011 18:57:29 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id BCF168FC2F for ; Sun, 4 Sep 2011 18:57:28 +0000 (UTC) Received: by gwb15 with SMTP id 15so3018853gwb.13 for ; Sun, 04 Sep 2011 11:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=uSiOIftiBvJb1ysi6TNY7xEicqvQ8JNeCEgc+IztVfc=; b=NpWCz0qkbMUJ5kLaU8tCyC3ApsKRcIw/xqBwgnL8RSkgUY3TunzW3GJq+aiINtUubn FLi6R15e+JN5zgwGA3agFuAX4X1nw6JNcpkO3terR8R98uAG8z2sL+hy3mq1wW85Ze82 H9+XGJvmmrS0C92FXwb+RFq+0XO70YvWCcW28= MIME-Version: 1.0 Received: by 10.68.14.100 with SMTP id o4mr2795012pbc.340.1315160866255; Sun, 04 Sep 2011 11:27:46 -0700 (PDT) Received: by 10.142.49.6 with HTTP; Sun, 4 Sep 2011 11:27:46 -0700 (PDT) Date: Sun, 4 Sep 2011 20:27:46 +0200 Message-ID: From: Berislav Purgar To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 18:57:29 -0000 I am interested in the progress of the implementation code for the AMPD-TX ? From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 4 21:06:13 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C283B106566B for ; Sun, 4 Sep 2011 21:06:13 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 84B888FC0A for ; Sun, 4 Sep 2011 21:06:13 +0000 (UTC) Received: by yxn22 with SMTP id 22so2362738yxn.13 for ; Sun, 04 Sep 2011 14:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=b2C5RGJICk8M1eSqS1RCYNRK0qoSQY1TSSTMsO+Fxo4=; b=j3ZSR8uErtKSndZVyEGWZ1v9ug1mjQ19jM2j4qlxSqr5OA0wcAGUdnrCW2uTCbRQSa cWl2pojH+nmEVKwUmDmnqRFSKeu1uKIbKFXpZcOi8ez0CDk65JTS21aXHC4+xv2HZtzK Es5g9BSql6pX/9sABOJv1IjV5UjJrrhlJTAjw= MIME-Version: 1.0 Received: by 10.236.37.230 with SMTP id y66mr4901387yha.10.1315170372948; Sun, 04 Sep 2011 14:06:12 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Sun, 4 Sep 2011 14:06:12 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Sep 2011 05:06:12 +0800 X-Google-Sender-Auth: TwmuRNXAogsZdm9obKJQTSXV_FM Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 21:06:13 -0000 On 5 September 2011 02:27, Berislav Purgar wrote: > I am interested in the progress of the implementation code for the AMPD-TX ? Hi! My atheros work is in SVN - svn://svn.freebsd.org/base/user/adrian/if_ath_tx . iwn, mwl and ral already support AMPDU-TX. adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 4 21:09:28 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BB99106564A; Sun, 4 Sep 2011 21:09:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4C93E8FC15; Sun, 4 Sep 2011 21:09:28 +0000 (UTC) Received: by gwb15 with SMTP id 15so3043525gwb.13 for ; Sun, 04 Sep 2011 14:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=05dCGM509NH7NmJ6QUpDFtYl3jSoB9KsVALQLx3kH2U=; b=jyoy1jhv9XHByPlQg7pV4Xbs8yd8AjTM44HHRcwGwbv4ff2RywtydaTFBK5v/sUwjI bc2DLfaco90ZBQGwHIZyZYF7oUT0oInhrZvkNDtHrp+3GNcKz4/o7v3nhkKhgMbEsdlZ zU+LWtmq3TC5aGOn3t65NNHXIHbnRMVkUwPwM= MIME-Version: 1.0 Received: by 10.236.191.101 with SMTP id f65mr15071356yhn.61.1315170566430; Sun, 04 Sep 2011 14:09:26 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Sun, 4 Sep 2011 14:09:26 -0700 (PDT) In-Reply-To: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> Date: Mon, 5 Sep 2011 05:09:26 +0800 X-Google-Sender-Auth: PHMBCaaeNUweOZu59dA6g4uLI0U Message-ID: From: Adrian Chadd To: Joel Dahl Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 21:09:28 -0000 On 5 September 2011 01:04, Joel Dahl wrote: > Hi, > > I upgraded my laptop from BETA1 to rev. 225367 today, and now my laptop panics just a few minutes after booting. This is 100% reproducible, it panics every time. > > I've got a pic with the backtrace here: http://www.vnode.se/sc/panic_20110904.jpg Hi, There weren't many commits between BETA1 and -HEAD in the wireless area; would you please do a binary search of the kernel revisions (no need to do full buildworlds) to find which commit broke it? Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 4 22:13:40 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 659B2106566C; Sun, 4 Sep 2011 22:13:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF998FC0A; Sun, 4 Sep 2011 22:13:39 +0000 (UTC) Received: by gxk28 with SMTP id 28so3645771gxk.13 for ; Sun, 04 Sep 2011 15:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Uri75OlvNuSgHiBCfQTTuC1m3H+ZaAt3a+m7VAObjqU=; b=WE1OKE9McgFDZptocpgZFP0RuIIKhU5RoAxxxzb9bv8avpPPXw5et52z28WiZz/h2k CfFczgJRuCwahE/AmMPezf1tUs/n3IAMpuRWXHxuwELvBLRNKjAYFr8T8aakcR0BHJWl CdkrkOcLU9WpGP1VN4KQpuCIixktIxxmVPM9I= MIME-Version: 1.0 Received: by 10.236.176.226 with SMTP id b62mr14807246yhm.78.1315174419444; Sun, 04 Sep 2011 15:13:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Sun, 4 Sep 2011 15:13:39 -0700 (PDT) In-Reply-To: <4E6050F0.2040203@mgwigglesworth.net> References: <4E5D5422.9040609@mgwigglesworth.net> <4E5EE805.5010905@mgwigglesworth.net> <4E6050F0.2040203@mgwigglesworth.net> Date: Mon, 5 Sep 2011 06:13:39 +0800 X-Google-Sender-Auth: B-O4xHmCsmchvSiwheySmwUTsRU Message-ID: From: Adrian Chadd To: mailinglistmember@mgwigglesworth.net Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org, freebsd-wireless@freebsd.org Subject: Re: [Solved] Re:Commands for AR5212 cause system to hang using 8.2-STABLE X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 22:13:40 -0000 On 2 September 2011 11:43, Martes G Wigglesworth wrote: > > However, all works perfectly, if I simply assign the intended ip address to > the wlan0 device. > > Any input on this? I don't have anything useful to add; but then I don't use hostap mode with an IP address on the wlan interface. I tend to dump the hostap wlan interfaces into a bridge group. You'll likely have to go digging into the network scripts a bit. Also, you likely shouldn't have " "'s around the ssid. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 4 22:27:21 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F77F106566B for ; Sun, 4 Sep 2011 22:27:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id CD5FB8FC12 for ; Sun, 4 Sep 2011 22:27:20 +0000 (UTC) Received: by gyd10 with SMTP id 10so3456734gyd.13 for ; Sun, 04 Sep 2011 15:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Kb136Vvv1GfvMsGNmn2pnaGAxqBWsSkAkrmdl0B8f0A=; b=i4sZVncnjpgSl5j5ViUl+KqK1Hh/eN8J+plRvHgWbaQGu9V6aJ/zN3cnF1gPmp0VOm EHAjtUdvS2DTSePxJK9icvClViJzFtjWHXVIT8B0oB5EjoTuZp26YV0Bng+A+fI+b0fl GXbtylWZGxPk8uGmOpd9b7PgKEFf3nuv4RHLc= MIME-Version: 1.0 Received: by 10.236.176.226 with SMTP id b62mr14830180yhm.78.1315175240005; Sun, 04 Sep 2011 15:27:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Sun, 4 Sep 2011 15:27:19 -0700 (PDT) In-Reply-To: References: <201108290134.50561.geoff@apro.com.au> <201108291308.30442.geoff@apro.com.au> <20110830172125.17936q7fxrc6x8j4@aprosrv2.apro.com.au> Date: Mon, 5 Sep 2011 06:27:19 +0800 X-Google-Sender-Auth: etqEgwYW84TY9LKPDKvy_N59G28 Message-ID: From: Adrian Chadd To: Geoff Roberts Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: SPAM-LOW: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 22:27:21 -0000 Hi, have you had a chance to try your system with < 4G ram? Thanks, Adrian On 30 August 2011 18:31, Adrian Chadd wrote: > On 30 August 2011 15:21, Geoff Roberts wrote: > >> Unfortunately booting from the 32 bit 8.2-R i386 system froze when loadi= ng >> the ath driver. Same as the 64 bit system. > > That's not good. :( > >> The new system (apart from a new motherboard, CPU and architecture :)) a= lso >> has more than 4GB=A0 RAM installed. I guess in theory the 32 bit kernel = should >> take that out of the equation. > > Can you please take out memory above 2GB and let me know what happens? > >> Is there any other debug information I can help with, or is this looking >> more like an intractable low-level PCI/BIOS/Firmware interface issue? > > Nope; I'd like to figure out why it's not working.. > > > adrian > From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 05:16:33 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8E4C106564A; Mon, 5 Sep 2011 05:16:33 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A04C48FC1B; Mon, 5 Sep 2011 05:16:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p855GXq0011492; Mon, 5 Sep 2011 05:16:33 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p855GXl4011488; Mon, 5 Sep 2011 05:16:33 GMT (envelope-from linimon) Date: Mon, 5 Sep 2011 05:16:33 GMT Message-Id: <201109050516.p855GXl4011488@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/160296: [zyd] [panic] 802.11 usb device reboots system on 'ifconfig wlan0 up scan' X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 05:16:33 -0000 Old Synopsis: 802.11 usb device reboots system on 'ifconfig wlan0 up scan' New Synopsis: [zyd] [panic] 802.11 usb device reboots system on 'ifconfig wlan0 up scan' Responsible-Changed-From-To: freebsd-i386->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Mon Sep 5 05:15:27 UTC 2011 Responsible-Changed-Why: Probably not i386-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=160296 From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 06:43:49 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08DCF106564A; Mon, 5 Sep 2011 06:43:49 +0000 (UTC) (envelope-from joel@vnode.se) Received: from mail.vnode.se (mail.vnode.se [62.119.52.80]) by mx1.freebsd.org (Postfix) with ESMTP id B07608FC13; Mon, 5 Sep 2011 06:43:48 +0000 (UTC) Received: from mail.vnode.se (localhost [127.0.0.1]) by mail.vnode.se (Postfix) with ESMTP id AE3FFE3F07A; Mon, 5 Sep 2011 08:24:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at vnode.se Received: from mail.vnode.se ([127.0.0.1]) by mail.vnode.se (mail.vnode.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2MS0YJqPS8Pm; Mon, 5 Sep 2011 08:24:55 +0200 (CEST) Received: from goofy03.vnode.local (wg.benders.se [212.247.52.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.vnode.se (Postfix) with ESMTPSA id 7D12EE3F079; Mon, 5 Sep 2011 08:24:55 +0200 (CEST) Date: Mon, 5 Sep 2011 08:24:53 +0200 From: Joel Dahl To: Adrian Chadd Message-ID: <20110905062453.GM52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 06:43:49 -0000 On 05-09-2011 5:09, Adrian Chadd wrote: > On 5 September 2011 01:04, Joel Dahl wrote: > > Hi, > > > > I upgraded my laptop from BETA1 to rev. 225367 today, and now my laptop panics just a few minutes after booting. This is 100% reproducible, it panics every time. > > > > I've got a pic with the backtrace here: http://www.vnode.se/sc/panic_20110904.jpg > > Hi, > > There weren't many commits between BETA1 and -HEAD in the wireless > area; would you please do a binary search of the kernel revisions (no > need to do full buildworlds) to find which commit broke it? Yes, I'll do that tonight. -- Joel From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 07:01:51 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCF1F106566B; Mon, 5 Sep 2011 07:01:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7CC218FC19; Mon, 5 Sep 2011 07:01:51 +0000 (UTC) Received: by vws18 with SMTP id 18so4786435vws.13 for ; Mon, 05 Sep 2011 00:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=FJgya7NZujd1pJWDKGvaq9aBxVmuyKkjhLv/WGLZm0o=; b=gbIVzSEC6g7r9oQuxIqW/xtgnv6tsHtrpF23UvpfWGdvsgW5uRBhdGRiK1qL/dg+VG IYLobFtsYkCUDvYIET8cyHnDPvIrchiPwNB+jilsGtiA5qOEOr9v4bu+y9T8Wj0LFbiV +b/XncZE6z/jjRsjP9vbDuM7tkbVkQj1o//Aw= MIME-Version: 1.0 Received: by 10.52.64.171 with SMTP id p11mr3557223vds.529.1315206110707; Mon, 05 Sep 2011 00:01:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.33.49 with HTTP; Mon, 5 Sep 2011 00:01:50 -0700 (PDT) In-Reply-To: <20110905062453.GM52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> Date: Mon, 5 Sep 2011 15:01:50 +0800 X-Google-Sender-Auth: EQ5_-GItPT5NBe7cMGuQGOe9I7s Message-ID: From: Adrian Chadd To: Joel Dahl Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 07:01:52 -0000 On 5 September 2011 14:24, Joel Dahl wrote: >> There weren't many commits between BETA1 and -HEAD in the wireless >> area; would you please do a binary search of the kernel revisions (no >> need to do full buildworlds) to find which commit broke it? > > Yes, I'll do that tonight. Thanks, that'd be great! adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 07:02:14 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13AF010656D2; Mon, 5 Sep 2011 07:02:14 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 409138FC08; Mon, 5 Sep 2011 07:02:13 +0000 (UTC) Received: by fxe4 with SMTP id 4so4261068fxe.13 for ; Mon, 05 Sep 2011 00:02:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.24.21 with SMTP id t21mr1526334fab.24.1315206132214; Mon, 05 Sep 2011 00:02:12 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.223.73.202 with HTTP; Mon, 5 Sep 2011 00:02:12 -0700 (PDT) X-Originating-IP: [91.46.219.248] In-Reply-To: <20110905062453.GM52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> Date: Mon, 5 Sep 2011 09:02:12 +0200 X-Google-Sender-Auth: asJN7gtj-uzMizLiP9fhKZpNKM4 Message-ID: From: Bernhard Schmidt To: Joel Dahl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 07:02:14 -0000 On Mon, Sep 5, 2011 at 08:24, Joel Dahl wrote: > On 05-09-2011 =A05:09, Adrian Chadd wrote: >> On 5 September 2011 01:04, Joel Dahl wrote: >> > Hi, >> > >> > I upgraded my laptop from BETA1 to rev. 225367 today, and now my lapto= p panics just a few minutes after booting. This is 100% reproducible, it pa= nics every time. >> > >> > I've got a pic with the backtrace here: http://www.vnode.se/sc/panic_2= 0110904.jpg >> >> Hi, >> >> There weren't many commits between BETA1 and -HEAD in the wireless >> area; would you please do a binary search of the kernel revisions (no >> need to do full buildworlds) to find which commit broke it? > > Yes, I'll do that tonight. While doing so, can you enable at least some debugging? wlandebug +state or even better wlandebug 0xffffffff It smells like that something is poking the SW bmiss handler while not in RUN state and therefore you're hitting a KASSERT(). Question is if the bmiss timer isn't stopped/drained somewhere or if there is too excessive call. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 11:07:21 2011 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F27011065670 for ; Mon, 5 Sep 2011 11:07:21 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D79A88FC24 for ; Mon, 5 Sep 2011 11:07:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p85B7LVR066057 for ; Mon, 5 Sep 2011 11:07:21 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p85B7LwQ066055 for freebsd-wireless@FreeBSD.org; Mon, 5 Sep 2011 11:07:21 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Sep 2011 11:07:21 GMT Message-Id: <201109051107.p85B7LwQ066055@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-wireless@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-wireless@FreeBSD.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 11:07:22 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/160391 wireless [ieee80211] [patch] Panic in mesh mode o kern/160296 wireless [zyd] [panic] 802.11 usb device reboots system on 'ifc o misc/160176 wireless [mips] [panic] Kernel panic on AR7161 platform with AR o kern/157449 wireless [ath] MAC address conflict causes system to freeze o kern/157243 wireless [ath] investigate beacon TX (AP) / RX (STA) when under o kern/156904 wireless [ath] AR9285 antenna diversity algorithm is buggy and o kern/156884 wireless [ath] ath instablity o kern/156327 wireless [bwn] bwn driver causes 20%-50% packet loss o kern/156322 wireless [wpi] no ahdemo support for if_wpi o kern/156321 wireless [ath] ahdemo doesn't work with if_ath o kern/155498 wireless [ral] ral(4) needs to be resynced with OpenBSD's to ga o kern/155100 wireless [ath] ath driver on busy channel: "stuck beacon" p kern/154598 wireless [ath] Atheros 5424/2424 can't connect to WPA network o kern/154567 wireless [ath] ath(4) lot of bad series(0) o kern/154327 wireless [ath] AR5416 in station mode hangs when transmitting f o kern/154284 wireless [ath] Modern ath wifi cards (such as AR9285) have miss o kern/154153 wireless [ath] AR5213 + MIPS + WPA group key packet corruption o kern/153448 wireless [ath] ath networking device loses association after a o kern/152750 wireless [ath] ath0 lot of bad series hwrate o kern/151198 wireless [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: o kern/149786 wireless [bwn] bwn on Dell Inspiron 1150: connections stall o kern/149516 wireless [ath] ath(4) hostap with fake MAC/BSSID results in sta o kern/149373 wireless [realtek/atheros]: None of my network card working o kern/149307 wireless [ath] Doesn't work Atheros 9285 o kern/148322 wireless [ath] Triggering atheros wifi beacon misses in hostap o kern/148317 wireless [ath] FreeBSD 7.x hostap memory leak in net80211 or At o kern/148112 wireless [ath] Atheros 9285 cannot register with wifi AP (timeo o kern/148078 wireless [ath] wireless networking stops functioning o kern/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o kern/143868 wireless [ath] [patch] [request] allow Atheros watchdog timeout o conf/143079 wireless hostapd(8) startup missing multi wlan functionality o kern/140796 wireless [ath] [panic] Cannot attach (unable to attach hardware p kern/140567 wireless [ath] [patch] ath is not worked on my notebook PC o kern/140245 wireless [ath] [panic] Kernel panic during network activity on o kern/137592 wireless [ath] panic - 7-STABLE (Aug 7, 2009 UTC) crashes on ne p bin/137484 wireless [patch] Integer overflow in wpa_supplicant(8) base64 e o kern/136943 wireless [wpi] [lor] wpi0_com_lock / wpi0 o kern/136836 wireless [ath] atheros card stops functioning after about 12 ho o kern/132722 wireless [ath] Wifi ath0 associates fine with AP, but DHCP or I o bin/131549 wireless ifconfig(8) can't clear 'monitor' mode on the wireless o kern/126475 wireless [ath] [panic] ath pcmcia card inevitably panics under o kern/125721 wireless [ath] Terrible throughput/high ping latency with Ubiqu o kern/125617 wireless [ath] [panic] ath(4) related panic o kern/125501 wireless [ath] atheros cardbus driver hangs o kern/125332 wireless [ath] [panic] crash under any non-tiny networking unde o kern/124767 wireless [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 wireless [ieee80211] net80211 discards power-save queue packets o docs/120456 wireless ath(4) needs to specify requirement on wlan_scan_sta o kern/119513 wireless [ath] [irq] inserting dlink dwl-g630 wireless card res o kern/116747 wireless [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile f kern/105348 wireless [ath] ath device stopps TX 53 problems total. From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 13:11:22 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE026106566B for ; Mon, 5 Sep 2011 13:11:22 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 87AC58FC15 for ; Mon, 5 Sep 2011 13:11:22 +0000 (UTC) Received: by ywo32 with SMTP id 32so3989330ywo.13 for ; Mon, 05 Sep 2011 06:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=agBdJ7vGz7j3BJcg00RjFhGUk4tn1VRiNvYayHcYecA=; b=mVd7EACl7JVuGZG6NTaM3Ywg2eXJovPaB6PzcWtOkEsuq8ss73Uri5a8uWVwwptlST xqU5wa//CSYgL9U+NdAjTnfeiSSiNKZC6K+5qCsgBqofFr9eBM9JHtgmVeiBcY5uPFsW BXUiYfVT1oO0fpWiFdNgEVUbtELULxiMY3aPo= MIME-Version: 1.0 Received: by 10.68.25.104 with SMTP id b8mr7124473pbg.139.1315228281726; Mon, 05 Sep 2011 06:11:21 -0700 (PDT) Received: by 10.142.49.6 with HTTP; Mon, 5 Sep 2011 06:11:21 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Sep 2011 15:11:21 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 13:11:22 -0000 On Sun, Sep 4, 2011 at 11:06 PM, Adrian Chadd wrote: > On 5 September 2011 02:27, Berislav Purgar wrote: > > I am interested in the progress of the implementation code for the > AMPD-TX ? > > Hi! > > My atheros work is in SVN - svn:// > svn.freebsd.org/base/user/adrian/if_ath_tx . > iwn, mwl and ral already support AMPDU-TX. > > > adrian > ok tnx. i tried and it works but i have bunch of error in log : ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_tid_drain: wasn't added: seqno 3328 ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_tid_drain: wasn't added: seqno 3329 ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_tid_drain: wasn't added: seqno 3330 ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_tid_drain: wasn't added: seqno 3341 ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=120, head=120, tail=8) ath0: ath_tx_tid_drain: wasn't added: seqno 3359 ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=125, head=125, tail=26) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=126, head=126, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=3, head=3, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=4, head=4, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=7, head=7, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=8, head=8, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=17, head=17, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=18, head=18, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=25, head=25, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=26, head=26, tail=30) ath0: ath_tx_addto_baw: ba packet dup (index=0, cindex=29, head=29, tail=30) ath0: device timeout ath0: ath_tx_tid_drain: wasn't added: seqno 3302 ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_tid_drain: wasn't added: seqno 3303 ath0: ath_tx_default_comp: dobaw should've been cleared! ath0: ath_tx_tid_drain: wasn't added: seqno 3304 ath0: ath_tx_default_comp: dobaw should've been cleared! card is linksys WPC-300N ver2 - AR5008/5416 .. freebsd-9-beta2 i managed to get speed on TCP 120Mbits/s - UDP 170Mbits/s (tested with iperf) .. Beri From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 13:23:53 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D6D81065673; Mon, 5 Sep 2011 13:23:53 +0000 (UTC) (envelope-from geoff@apro.com.au) Received: from mail.ricksure.com.au (mail.ricksure.com.au [203.98.89.150]) by mx1.freebsd.org (Postfix) with ESMTP id B79628FC0A; Mon, 5 Sep 2011 13:23:52 +0000 (UTC) Received: from 171.78.233.220.static.exetel.com.au [220.233.78.171] by mail.ricksure.com.au with SMTP; Mon, 5 Sep 2011 23:23:35 +1000 From: Geoff Roberts Organization: Australian Projects To: Adrian Chadd Date: Mon, 5 Sep 2011 23:23:15 +1000 User-Agent: KMail/1.13.5 (Linux/2.6.32-33-generic; KDE/4.4.5; x86_64; ; ) References: <201108290134.50561.geoff@apro.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109052323.15363.geoff@apro.com.au> X-Declude-Sender: geoff@apro.com.au [220.233.78.171] X-Declude-Spoolname: 46165241.eml X-Declude-RefID: X-Declude-Note: Scanned by Declude 4.6.35 "http://www.declude.com/x-note.htm" X-Declude-Scan: Outgoing Score [0] at 23:23:38 on 05 Sep 2011 X-Declude-Tests: Whitelisted X-Country-Chain: X-Declude-Code: 0 X-Declude-Recipcount: 2 Organization: Declude, Inc. X-Helo: ubuntutest-01.localnet X-RevDNS: Cc: freebsd-wireless@freebsd.org Subject: Re: SPAM-LOW: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: geoff@apro.com.au List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 13:23:53 -0000 Hi Adrian, On Mon, 5 Sep 2011 08:27:19 am Adrian Chadd wrote: > Hi, have you had a chance to try your system with < 4G ram? Sorry for the delay in getting back. I was only able to get a 4GB stick of RAM. Not what we were after, but I tried it anyway and the system still froze during boot. I also tried a 32 bit 9.0 Beta 2 boot disk without any luck. I can keep this card in the new PC to work with you on testing/debugging in the PCI slot, but I need to get the wireless network back up. Leaving the current card in the PCI slot leaves me a spare PCI express slot. Are there any PCI express cards you are aware of (or chipsets I should look for in a PCI express wireless card) that work OK with FreeBSD and could host VAPs? Kind regards, Geoff From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 13:27:20 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAA131065672 for ; Mon, 5 Sep 2011 13:27:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 768D98FC0C for ; Mon, 5 Sep 2011 13:27:20 +0000 (UTC) Received: by vxh11 with SMTP id 11so4911846vxh.13 for ; Mon, 05 Sep 2011 06:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=g3d29Y91EtaXo/Ymemp38KIdXyt/ymsjiB5QWifFrzk=; b=UPq2Oyw+dg7u+Git9+CuhFfnaUZTeiGPMPoZ6reNQcLFy+xu9DUWuHDTzQvYh/q7Rg yXDyvVcE99jQPkE3gT5ZQRMbB4sEvV6I/VwruPib3CVOt5L1q4g57UXD+h6Qst14tipH bIrT622tevBZtFydk8eQhoyg/RKH86aaWqwP8= MIME-Version: 1.0 Received: by 10.52.72.16 with SMTP id z16mr3643840vdu.395.1315229239675; Mon, 05 Sep 2011 06:27:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.33.49 with HTTP; Mon, 5 Sep 2011 06:27:19 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Sep 2011 21:27:19 +0800 X-Google-Sender-Auth: f5OQgRjOBdeSd4dns9drYqyQ0AY Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 13:27:20 -0000 :-) You mean my code currently has bugs? Never! :) It's still definitely a work in progress. Just note - the AR5416 support is definitely not being tested during this pass; there are limitations which I've not yet worked around. :) In this instance - I know there are issues with the BAW (Block-ack window) tracking. Specifically, when the interface is scanning, the software TX queue is purged and the BAW isn't adjusted correctly. I'm working on adapting ath_rate_sample to "mostly work" with 802.11n (specifically, just enough to pick a low-error rate for 11n TX) and when that's done, I'll continue working on fixing up the BAW tracking. There's a bunch of rather invasive changes I think I'll have to do to net80211 and ath in order to get it working properly. That said, I'm glad it's working for you. :) I'm getting about 130mbit/sec via TCP at the moment as well. I just need to fix up the rate control stuff a little more.. :) Adrian On 5 September 2011 21:11, Berislav Purgar wrote: > On Sun, Sep 4, 2011 at 11:06 PM, Adrian Chadd wrote: > >> On 5 September 2011 02:27, Berislav Purgar wrote: >> > I am interested in the progress of the implementation code for the >> AMPD-TX ? >> >> Hi! >> >> My atheros work is in SVN - svn:// >> svn.freebsd.org/base/user/adrian/if_ath_tx . >> iwn, mwl and ral already support AMPDU-TX. >> >> >> adrian >> > > ok tnx. i tried and it works but i have bunch of error in log : > > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_tid_drain: wasn't added: seqno 3328 > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_tid_drain: wasn't added: seqno 3329 > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_tid_drain: wasn't added: seqno 3330 > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_tid_drain: wasn't added: seqno 3341 > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D120, head=3D12= 0, > tail=3D8) > ath0: ath_tx_tid_drain: wasn't added: seqno 3359 > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D125, head=3D12= 5, > tail=3D26) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D126, head=3D12= 6, > tail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D3, head=3D3, t= ail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D4, head=3D4, t= ail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D7, head=3D7, t= ail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D8, head=3D8, t= ail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D17, head=3D17,= tail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D18, head=3D18,= tail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D25, head=3D25,= tail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D26, head=3D26,= tail=3D30) > ath0: ath_tx_addto_baw: ba packet dup (index=3D0, cindex=3D29, head=3D29,= tail=3D30) > ath0: device timeout > ath0: ath_tx_tid_drain: wasn't added: seqno 3302 > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_tid_drain: wasn't added: seqno 3303 > ath0: ath_tx_default_comp: dobaw should've been cleared! > ath0: ath_tx_tid_drain: wasn't added: seqno 3304 > ath0: ath_tx_default_comp: dobaw should've been cleared! > > > card is linksys WPC-300N ver2 - AR5008/5416 .. freebsd-9-beta2 > i managed to get speed on TCP =A0120Mbits/s - UDP 170Mbits/s (tested with > iperf) .. > > Beri > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" > From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 13:29:53 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F0801065673 for ; Mon, 5 Sep 2011 13:29:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 86BF28FC15 for ; Mon, 5 Sep 2011 13:29:52 +0000 (UTC) Received: by vxh11 with SMTP id 11so4913949vxh.13 for ; Mon, 05 Sep 2011 06:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=97DQbvxbrDBN6tzQA5fc+RNhyn7a35vGqWnShnpJdDE=; b=Mj8dPGoA9wFmdlDY1KmJDnSLTrlA/f8WDPZvp9Gy3AEpeVwQ7jp445A1Lc3Q26pHtE GkQbpBt/UtSM91PwYj2LTk+Zjb5Yz0jjlMw0vOX0xFhAEhgtohs6lG0VhFBJXqwM+bvA gqNyolfYGryGZl/SMiN7IMudvhJ+j/6rIU8LE= MIME-Version: 1.0 Received: by 10.52.93.143 with SMTP id cu15mr3959367vdb.60.1315229391768; Mon, 05 Sep 2011 06:29:51 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.33.49 with HTTP; Mon, 5 Sep 2011 06:29:51 -0700 (PDT) In-Reply-To: <201109052323.15363.geoff@apro.com.au> References: <201108290134.50561.geoff@apro.com.au> <201109052323.15363.geoff@apro.com.au> Date: Mon, 5 Sep 2011 21:29:51 +0800 X-Google-Sender-Auth: quVOOmbZcFNNyg4VKi_47EJw7p0 Message-ID: From: Adrian Chadd To: geoff@apro.com.au Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: SPAM-LOW: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 13:29:53 -0000 Are you able to try booting 8.0-RELEASE or 8.1-RELEASE via CD, with only 2GB of RAM? I don't have any further ideas, I'm afraid. But I'd really like to nail this down before 9.0-REL is working, so let's see if we can find a working setup. Adrian On 5 September 2011 21:23, Geoff Roberts wrote: > Hi Adrian, > > On Mon, 5 Sep 2011 08:27:19 am Adrian Chadd wrote: >> Hi, have you had a chance to try your system with < 4G ram? > > Sorry for the delay in getting back. > > I was only able to get a 4GB stick of RAM. Not what we were after, but I tried > it anyway and the system still froze during boot. > > I also tried a 32 bit 9.0 Beta 2 boot disk without any luck. > > I can keep this card in the new PC to work with you on testing/debugging in > the PCI slot, but I need to get the wireless network back up. > > Leaving the current card in the PCI slot leaves me a spare PCI express slot. > > Are there any PCI express cards you are aware of (or chipsets I should look > for in a PCI express wireless card) that work OK with FreeBSD and could host > VAPs? > > Kind regards, > > Geoff > > > From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 5 23:45:24 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A86F106564A for ; Mon, 5 Sep 2011 23:45:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 582428FC19 for ; Mon, 5 Sep 2011 23:45:24 +0000 (UTC) Received: by vws18 with SMTP id 18so5512796vws.13 for ; Mon, 05 Sep 2011 16:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=vfN/FH4DnjRkinPF/AnJbEj8qagyMcJ+Mi/Rfw66Ji4=; b=fiPSthNJbNf5kp3fUiZujQ/7vcsulYHlAZg9GC+pEHHR7hozXuGSTKG9m8iKjNlzT/ rijDX8JGCsy48bJRTp7cHgJRmSJE3l1I3IQ1hx2+iH3oFxLh8kLoDaYKb/bYneSnoXyL 12YwLV6cfnSF9h2jdhQH91Vx74KGD9VZ/IsQg= MIME-Version: 1.0 Received: by 10.52.20.106 with SMTP id m10mr4301412vde.328.1315266323719; Mon, 05 Sep 2011 16:45:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.33.49 with HTTP; Mon, 5 Sep 2011 16:45:23 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Sep 2011 07:45:23 +0800 X-Google-Sender-Auth: K_fRqojIgnXIZwRMwpPKA8-p2m8 Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 23:45:24 -0000 .. since you're using the AR5416, I'll add in the missing bits. So the platform limitations I'm aware of are: * There's a TX bug somewhere which requires a chip reset when it occurs. I'll port that over today. * RTS protected aggregate frames are limited to 8k in size. Since I'm not (yet) doing RTS or CTS protected HT frames, this isn't a big deal for you. I'll see about trying to get the specific work around that improves performance when RTS is enabled. Since I'd like to investigate supporting MIMO power save (does anything _DO_ MIMO power save these days? I have no idea), and MIMO-PS requires functional 11n RTS frame protection, I'd like to make sure the RTS protected 11n aggregates are properly handled on the AR5416. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 02:29:05 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB9B9106566C for ; Tue, 6 Sep 2011 02:29:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 903208FC14 for ; Tue, 6 Sep 2011 02:29:02 +0000 (UTC) Received: by vws18 with SMTP id 18so5598240vws.13 for ; Mon, 05 Sep 2011 19:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=NUY/OClJftBgnLMUwD+DY4FmW0oYvHs4XpjOXutfg3I=; b=kvOs4N+DPyTPG7VpMnTIAauZJqONW/37MqMY+OjOnY3knqQ9VNn395eIPUuFXueVZT l1o0OQUhwFlFPaJ2zPmYBgIqi/VdWGITw+gGlN3OZaZZyfmVxePst/HVTu6YjwXyhSS9 ODRmlU0L5tj4V2zRm6OIZUhqQJfXzsuO4XydU= MIME-Version: 1.0 Received: by 10.52.74.2 with SMTP id p2mr4474286vdv.127.1315276141767; Mon, 05 Sep 2011 19:29:01 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.33.49 with HTTP; Mon, 5 Sep 2011 19:29:01 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Sep 2011 10:29:01 +0800 X-Google-Sender-Auth: TDu8FstGTiUeEfGbzCM7f7n9rac Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 02:29:05 -0000 Hi, Are you only seeing these messages when there's a device timeout logged? Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 05:08:25 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A0E1106566C for ; Tue, 6 Sep 2011 05:08:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 353E68FC12 for ; Tue, 6 Sep 2011 05:08:24 +0000 (UTC) Received: by vws18 with SMTP id 18so5673971vws.13 for ; Mon, 05 Sep 2011 22:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=AuaO5RXA2DuAemSYVKzP5bbfg2rWcjRY4XS396g+xmA=; b=HVzt0PSgmgOUHyfY9pfjCIvAbunS22PuxhkQ3H6oESVTpgBtYwwG7gfHWuouCrVR9V LAy6BMG5n+OXkTs9bVCP6Bbfke+292WS3d34TSLMSMCE7p5y46sa4in2jw8HNLthxQQG 2ekXIb4KltHNWu8x+iKkxWL5GEu+Pndv1ojUg= MIME-Version: 1.0 Received: by 10.52.93.143 with SMTP id cu15mr134370vdb.60.1315285704224; Mon, 05 Sep 2011 22:08:24 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.33.49 with HTTP; Mon, 5 Sep 2011 22:08:24 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Sep 2011 13:08:24 +0800 X-Google-Sender-Auth: nT4nIVPQXflZ1YG7qlEPDTjGxmM Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 05:08:25 -0000 .. I think I've found/fixed the current BAW tracking bug. There's more to go, but this should eliminate the obviously broken case I introduced in an earlier commit. Please try the latest code in my if_ath_tx branch and let me know. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 07:46:25 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE856106564A; Tue, 6 Sep 2011 07:46:25 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 572F48FC0C; Tue, 6 Sep 2011 07:46:25 +0000 (UTC) Received: by gxk28 with SMTP id 28so4451971gxk.13 for ; Tue, 06 Sep 2011 00:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IBpxInr3LWwDbAkuiJ5J8tfXEUGiAxicDJ2ELjd+Ha4=; b=nBeNXAoRyilq/mvGXkvjuk8r+Wug7RYwamzJRsNSsW26VWg/yeeU6OplUW61R5ZNWC xgZ15XDYn1Ff5kG9hp331RAIjbU9mCTMRXh8TCJFqO2VHCsZVe1WsnZRVE4hG+VxAlP4 DH3syQT4+VUw09yqz9tAgxNCYMkmAz36jESdk= MIME-Version: 1.0 Received: by 10.68.16.202 with SMTP id i10mr394312pbd.5.1315295184209; Tue, 06 Sep 2011 00:46:24 -0700 (PDT) Received: by 10.142.49.6 with HTTP; Tue, 6 Sep 2011 00:46:24 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Sep 2011 09:46:24 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 07:46:25 -0000 On Tue, Sep 6, 2011 at 7:08 AM, Adrian Chadd wrote: > .. I think I've found/fixed the current BAW tracking bug. > There's more to go, but this should eliminate the obviously broken > case I introduced in an earlier commit. > Please try the latest code in my if_ath_tx branch and let me know. :) > > > Adrian > Hi .. no .. i see these messages only when i produce high traffic .. i just download latest code of if_ath_tx branch. for now i can tell that is OK but i will test more.. tnx Adrian :) From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 09:22:34 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80F8B106566B; Tue, 6 Sep 2011 09:22:34 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2855D8FC14; Tue, 6 Sep 2011 09:22:33 +0000 (UTC) Received: by gyd10 with SMTP id 10so4305309gyd.13 for ; Tue, 06 Sep 2011 02:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=73L6TLYZXFIDyRkxNxHVRqSBmTgZ08kyOcdBjfPQ758=; b=DIl3WsuksC5bBus4Qlv9R189uH1ZqN2QtSk8x/0QiJOU825UloKTwqw5qyg3oOQLl8 amGvmIMewLxQbkxaayA6R6cq5IeG7txMC0iy+NXGUKh0z/3a5zaKpu/bLs+WROaySYZA 58jFYWY4NOL3eXf4E55ivkAOS/sokZQsrX3sc= MIME-Version: 1.0 Received: by 10.68.14.100 with SMTP id o4mr5959255pbc.340.1315300952922; Tue, 06 Sep 2011 02:22:32 -0700 (PDT) Received: by 10.142.49.6 with HTTP; Tue, 6 Sep 2011 02:22:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Sep 2011 11:22:32 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 09:22:34 -0000 On Tue, Sep 6, 2011 at 7:08 AM, Adrian Chadd wrote: > .. I think I've found/fixed the current BAW tracking bug. > There's more to go, but this should eliminate the obviously broken > case I introduced in an earlier commit. > Please try the latest code in my if_ath_tx branch and let me know. :) > > > Adrian > on my laptop where is 5416 works perfect. no more errors . on second PC where is 9280 and act as AP i still have same errors but not often like before on 5416. now i compile module for PC to test. Beri From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 09:29:07 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1006C106567C for ; Tue, 6 Sep 2011 09:29:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id C04358FC1B for ; Tue, 6 Sep 2011 09:29:06 +0000 (UTC) Received: by ywa17 with SMTP id 17so317177ywa.13 for ; Tue, 06 Sep 2011 02:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1bwOKtpdEwNyBR30mtGXW0mRJ02ARv89BR9D8JgJRD0=; b=DPaXk4DSWQEl8clQAtWB5o7YuMDH/AXWKNsrYv/ogB9oI1DxtATWFzZDtmxrylTha2 VazEZaRNYZwE+B0101f/FMEnTt61kreWRq9vl5o0fO/mw+wlZ91D7dSLWAK+okuBg8XZ tP7LK/N2gqWeUo7e7kR8Y1ArxjcsNVlsUTMWk= MIME-Version: 1.0 Received: by 10.236.200.137 with SMTP id z9mr22240251yhn.27.1315301346081; Tue, 06 Sep 2011 02:29:06 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Tue, 6 Sep 2011 02:29:06 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Sep 2011 17:29:06 +0800 X-Google-Sender-Auth: H1V0MYzHA6Ei1WSV-Jt_LsTXSeI Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath 802.11n ampdutx progress ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 09:29:07 -0000 On 6 September 2011 17:22, Berislav Purgar wrote: > on my laptop where is 5416 works perfect. no more errors . on second PC > where is 9280 and act as AP i still have same errors but not often like > before on 5416. now i compile module for PC to test. hostap mode requires a lot more work, specifically handling "filtered frames" from the hardware. If I don't do that, any time a station goes into PS mode, any frames already queued to the hardware will be dropped and performance will greatly suffer. As for the BAW tracking, there are also some bugs that have popped up in my testing. I'm using an AR9280 in my EEEPC as the STA and an AR9160 on a MIPS routerstation pro board as the hostap. I'll let you know when I've found/fixed those. There are other things I likely need to merge in now that the hardware is pushing ~ 18,000 pps. There's some workarounds for buffer management and some occasional status descriptor corruption which I'm going to need to sort out. I still haven't merged in the AR5416 workarounds yet though. I'll post when I have. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 13:35:52 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 348B01065675; Tue, 6 Sep 2011 13:35:52 +0000 (UTC) (envelope-from geoff@apro.com.au) Received: from mail.ricksure.com.au (mail.ricksure.com.au [203.98.89.150]) by mx1.freebsd.org (Postfix) with ESMTP id 61DDF8FC0C; Tue, 6 Sep 2011 13:35:51 +0000 (UTC) Received: from 171.78.233.220.static.exetel.com.au [220.233.78.171] by mail.ricksure.com.au with SMTP; Tue, 6 Sep 2011 23:35:38 +1000 From: Geoff Roberts Organization: Australian Projects To: Adrian Chadd Date: Tue, 6 Sep 2011 23:35:15 +1000 User-Agent: KMail/1.13.5 (Linux/2.6.32-33-generic; KDE/4.4.5; x86_64; ; ) References: <201108290134.50561.geoff@apro.com.au> <201109052323.15363.geoff@apro.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109062335.15397.geoff@apro.com.au> X-Declude-Sender: geoff@apro.com.au [220.233.78.171] X-Declude-Spoolname: 46167576.eml X-Declude-RefID: X-Declude-Note: Scanned by Declude 4.6.35 "http://www.declude.com/x-note.htm" X-Declude-Scan: Outgoing Score [0] at 23:35:39 on 06 Sep 2011 X-Declude-Tests: Whitelisted X-Country-Chain: X-Declude-Code: 0 X-Declude-Recipcount: 2 Organization: Declude, Inc. X-Helo: ubuntutest-01.localnet X-RevDNS: Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: geoff@apro.com.au List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 13:35:52 -0000 Hi Adrian, On Mon, 5 Sep 2011 11:29:51 pm Adrian Chadd wrote: > Are you able to try booting 8.0-RELEASE or 8.1-RELEASE via CD, with > only 2GB of RAM? Issue is getting the 2GB RAM module - I may have a 2 GB stick in an older system. I'll let you know how I get on. > I don't have any further ideas, I'm afraid. But I'd really like to > nail this down before 9.0-REL is working, so let's see if we can find > a working setup. I guess the other possibility is to try a completely different OS. If that boots OK then we most likely have a software - or at least a hardware initialisation problem via software. Would that be a worthwhile test. If so, is there another CD bootable system that would be worth trying (I don't have access to any Windows based OS)? In the meantime, are there any PCI express based cards that you think would be worth considering that could handle VAPs? I'd like to get the wireless network up and running whilst we work on the Netgear card. Kind regards, Geoff From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 13:37:47 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2A4B1065672 for ; Tue, 6 Sep 2011 13:37:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id A0F2C8FC17 for ; Tue, 6 Sep 2011 13:37:47 +0000 (UTC) Received: by gxk28 with SMTP id 28so4673182gxk.13 for ; Tue, 06 Sep 2011 06:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=elagZLuenJ8baKmoVtAuwJzmeyqo5MznN9z1SGvaXf0=; b=cQHFbXDtTT13rThJMtNWgxaNCfGm8w0CQqWYWrulTGrioCoa3xsv4Ux842xqabc/ug 46ctJYu22nRURdosvS3CCNZOS5TXCAj66Zr1ctHyttM1SouMML8Wfg1WaQR+LAaAjoaP mjpyd7WRkJbZzvNs17DA79BroGzG5sf91Oj5o= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr23847515yhl.112.1315316266833; Tue, 06 Sep 2011 06:37:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Tue, 6 Sep 2011 06:37:46 -0700 (PDT) In-Reply-To: <201109062335.15397.geoff@apro.com.au> References: <201108290134.50561.geoff@apro.com.au> <201109052323.15363.geoff@apro.com.au> <201109062335.15397.geoff@apro.com.au> Date: Tue, 6 Sep 2011 21:37:46 +0800 X-Google-Sender-Auth: 4ogX3vkUhLfEWBsX3ApYESUoms4 Message-ID: From: Adrian Chadd To: geoff@apro.com.au Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 13:37:48 -0000 On 6 September 2011 21:35, Geoff Roberts wrote: > In the meantime, are there any PCI express based cards that you think would be > worth considering that could handle VAPs? I'd like to get the wireless network > up and running whilst we work on the Netgear card. :-) Sure, there are AR5416 based D-Link cards that should work fine. adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 15:27:57 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D9F9106564A; Tue, 6 Sep 2011 15:27:57 +0000 (UTC) (envelope-from geoff@apro.com.au) Received: from mail.ricksure.com.au (mail.ricksure.com.au [203.98.89.150]) by mx1.freebsd.org (Postfix) with ESMTP id 8A2E58FC1A; Tue, 6 Sep 2011 15:27:56 +0000 (UTC) Received: from 171.78.233.220.static.exetel.com.au [220.233.78.171] by mail.ricksure.com.au with SMTP; Wed, 7 Sep 2011 01:27:41 +1000 From: Geoff Roberts Organization: Australian Projects To: Adrian Chadd Date: Wed, 7 Sep 2011 01:27:18 +1000 User-Agent: KMail/1.13.5 (Linux/2.6.32-33-generic; KDE/4.4.5; x86_64; ; ) References: <201108290134.50561.geoff@apro.com.au> <201109062335.15397.geoff@apro.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109070127.18256.geoff@apro.com.au> X-Declude-Sender: geoff@apro.com.au [220.233.78.171] X-Declude-Spoolname: 46167718.eml X-Declude-RefID: X-Declude-Note: Scanned by Declude 4.6.35 "http://www.declude.com/x-note.htm" X-Declude-Scan: Outgoing Score [0] at 01:27:45 on 07 Sep 2011 X-Declude-Tests: Whitelisted X-Country-Chain: X-Declude-Code: 0 X-Declude-Recipcount: 2 Organization: Declude, Inc. X-Helo: ubuntutest-01.localnet X-RevDNS: Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: geoff@apro.com.au List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 15:27:57 -0000 Hi Adrian, >> On 6 September 2011 21:35, Geoff Roberts wrote: > > In the meantime, are there any PCI express based cards that you think > > would be worth considering that could handle VAPs? I'd like to get the > > wireless network up and running whilst we work on the Netgear card. > On Tue, 6 Sep 2011 11:37:46 pm Adrian Chadd wrote: > :-) Sure, there are AR5416 based D-Link cards that should work fine. Thanks - Looking at the link below, all AR5416 based cards seem to be PCI cards. The PCI Express version looks like they are based on the AR5418 http://madwifi-project.org/wiki/Compatibility/D-Link Is that correct, or are there some PCI Express cards based on the AR5416? If not, do you think a card based on the AR5418 will be OK? Kind regards, Geoff From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 15:33:05 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FA1B1065688 for ; Tue, 6 Sep 2011 15:33:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id D24CD8FC1F for ; Tue, 6 Sep 2011 15:33:04 +0000 (UTC) Received: by ywa17 with SMTP id 17so606400ywa.13 for ; Tue, 06 Sep 2011 08:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=KTw3Nt8hPqphWQRp5gRGtdPkuU23M4RQs33+VwrcpN8=; b=kGIvCrhFs0ioMhzPy75KFRfRI+zDm/Juh4mye84a5A748WMQoh+bGD+LWcM5UqMDp0 4XNkNosI2HfanUMm6iH+ekO76HvNgdp3kFtV/gtjRRlk+MIdeUzAqx9cYEZPP3xJP+41 XYrQgat6IVI8TZ1VB4Iu+AwmF+go/uZbxAghg= MIME-Version: 1.0 Received: by 10.236.116.199 with SMTP id g47mr24607872yhh.44.1315323184064; Tue, 06 Sep 2011 08:33:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Tue, 6 Sep 2011 08:33:04 -0700 (PDT) In-Reply-To: <201109070127.18256.geoff@apro.com.au> References: <201108290134.50561.geoff@apro.com.au> <201109062335.15397.geoff@apro.com.au> <201109070127.18256.geoff@apro.com.au> Date: Tue, 6 Sep 2011 23:33:04 +0800 X-Google-Sender-Auth: XVeEagYk_46fxxGQmC2VI4pXLV8 Message-ID: From: Adrian Chadd To: geoff@apro.com.au Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 15:33:05 -0000 The AR5418 is a PCIe PHY version of the AR5416. :) But something tells me it's going to fail; the PCI/bus setup code is all the same for AR5212 or AR5416. Adrian On 6 September 2011 23:27, Geoff Roberts wrote: > Hi Adrian, > >>> On 6 September 2011 21:35, Geoff Roberts wrote: >> > In the meantime, are there any PCI express based cards that you think >> > would be worth considering that could handle VAPs? I'd like to get the >> > wireless network up and running whilst we work on the Netgear card. > >> On Tue, 6 Sep 2011 11:37:46 pm Adrian Chadd wrote: >> :-) Sure, there are AR5416 based D-Link cards that should work fine. > > Thanks - Looking at the link below, all AR5416 based cards seem to be PCI > cards. The PCI Express version looks like they are based on the AR5418 > > http://madwifi-project.org/wiki/Compatibility/D-Link > > Is that correct, or are there some PCI Express cards based on the AR5416? If > not, do you think a card based on the AR5418 will be OK? > > Kind regards, > > Geoff > > From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 16:50:03 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB226106568C for ; Tue, 6 Sep 2011 16:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8EC908FC0C for ; Tue, 6 Sep 2011 16:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p86Go3UX050908 for ; Tue, 6 Sep 2011 16:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p86Go30n050907; Tue, 6 Sep 2011 16:50:03 GMT (envelope-from gnats) Date: Tue, 6 Sep 2011 16:50:03 GMT Message-Id: <201109061650.p86Go30n050907@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Mark Linimon Cc: Subject: Re: kern/160391: [ieee80211] [patch] Panic in mesh mode X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Linimon List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 16:50:03 -0000 The following reply was made to PR kern/160391; it has been noted by GNATS. From: Mark Linimon To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/160391: [ieee80211] [patch] Panic in mesh mode Date: Tue, 6 Sep 2011 11:43:12 -0500 ----- Forwarded message from Adrian Chadd ----- Date: Tue, 6 Sep 2011 18:07:41 +0800 From: Adrian Chadd To: Edgar Martinez Cc: freebsd-net@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: kern/160391: [ieee80211] [patch] Panic in mesh mode Hi Edgar, Can you please provide; * A dmesg, just so we can see what/how many radios; * what do you mean by "create two mesh nodes" - do you mean two mesh nodes on the same board, one on each radio? Thanks, Adrian ----- End forwarded message ----- From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 16:50:11 2011 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F298106566C for ; Tue, 6 Sep 2011 16:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8168FC14 for ; Tue, 6 Sep 2011 16:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p86Go5U9050920 for ; Tue, 6 Sep 2011 16:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p86Go5NV050919; Tue, 6 Sep 2011 16:50:05 GMT (envelope-from gnats) Date: Tue, 6 Sep 2011 16:50:05 GMT Message-Id: <201109061650.p86Go5NV050919@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Mark Linimon Cc: Subject: Re: kern/160391: [ieee80211] [patch] Panic in mesh mode X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Linimon List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 16:50:11 -0000 The following reply was made to PR kern/160391; it has been noted by GNATS. From: Mark Linimon To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/160391: [ieee80211] [patch] Panic in mesh mode Date: Tue, 6 Sep 2011 11:44:06 -0500 ----- Forwarded message from Edgar Martinez ----- Date: Tue, 6 Sep 2011 08:39:56 -0700 From: Edgar Martinez To: Adrian Chadd Cc: "freebsd-net@freebsd.org" , "freebsd-bugs@freebsd.org" Subject: RE: kern/160391: [ieee80211] [patch] Panic in mesh mode Will provide dumps soon. But yes, effectively, two physical radios on a single board. Each configured in mesh mode. When they are both configured the same (channel/meshid/etc), and see each other, bad things happen. - Easy fix is to MAC filter. When they are both configured differently (channel/meshid/etc), and see each other, via the network, bad things happen. - Easy fix is to MAC filter. Interesting phenomena I am tracking down...sometimes the local and peer addresses are three characters vs four...and then of course its b0rkeD... a reboot sometimes cleans it right up, and things run... Finally, there's no mechanism to manually flush out the mesh info, yet, so I also noticed that it appears the routes just stop updating... I've been too busy to root cause many issues, and have only focused on the show-stoppers...but I really need to... ----- End forwarded message ----- From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 6 20:42:49 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C40CD106564A; Tue, 6 Sep 2011 20:42:49 +0000 (UTC) (envelope-from joel@vnode.se) Received: from mail.vnode.se (mail.vnode.se [62.119.52.80]) by mx1.freebsd.org (Postfix) with ESMTP id 758988FC0C; Tue, 6 Sep 2011 20:42:49 +0000 (UTC) Received: from mail.vnode.se (localhost [127.0.0.1]) by mail.vnode.se (Postfix) with ESMTP id 52F6DE3F07A; Tue, 6 Sep 2011 22:42:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at vnode.se Received: from mail.vnode.se ([127.0.0.1]) by mail.vnode.se (mail.vnode.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FqGEW8A-Jmla; Tue, 6 Sep 2011 22:42:44 +0200 (CEST) Received: from goofy03.vnode.local (wg.benders.se [212.247.52.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.vnode.se (Postfix) with ESMTPSA id 1B67AE3F079; Tue, 6 Sep 2011 22:42:44 +0200 (CEST) Date: Tue, 6 Sep 2011 22:42:42 +0200 From: Joel Dahl To: Bernhard Schmidt Message-ID: <20110906204242.GP52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 20:42:49 -0000 On 05-09-2011 9:02, Bernhard Schmidt wrote: > On Mon, Sep 5, 2011 at 08:24, Joel Dahl wrote: > > On 05-09-2011  5:09, Adrian Chadd wrote: > >> On 5 September 2011 01:04, Joel Dahl wrote: > >> > Hi, > >> > > >> > I upgraded my laptop from BETA1 to rev. 225367 today, and now my laptop panics just a few minutes after booting. This is 100% reproducible, it panics every time. > >> > > >> > I've got a pic with the backtrace here: http://www.vnode.se/sc/panic_20110904.jpg > >> > >> Hi, > >> > >> There weren't many commits between BETA1 and -HEAD in the wireless > >> area; would you please do a binary search of the kernel revisions (no > >> need to do full buildworlds) to find which commit broke it? > > > > Yes, I'll do that tonight. > > While doing so, can you enable at least some debugging? > wlandebug +state > or even better > wlandebug 0xffffffff > > It smells like that something is poking the SW bmiss handler while not > in RUN state and therefore you're hitting a KASSERT(). Question is if > the bmiss timer isn't stopped/drained somewhere or if there is too > excessive call. Exactly what in the wlandebug output are you looking for? I've posted a pic at http://www.vnode.se/sc/panic_20110906.jpg showing what it looks like right before the panic. This is with "wlandebug 0xffffffff". I've also installed kernels all the way back to revision 222980, but they all panic, which I think is somewhat odd. -- Joel From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 01:16:45 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD83C1065670 for ; Wed, 7 Sep 2011 01:16:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4BF8FC12 for ; Wed, 7 Sep 2011 01:16:45 +0000 (UTC) Received: by gwb1 with SMTP id 1so4243232gwb.36 for ; Tue, 06 Sep 2011 18:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=oxGf7gABn+NSVrQCmUZfBssXV6WxW1NqU1z0qESmOOM=; b=G5BGSe9f/tEMeqUNwPRvmknsOxG2elPK1646Tbr/P8LiWTylYwFoCBiIavWtbrDaSy 3Y7LxPGWyd0ebc/JSz/pgVsbsrDhEJ2j2cJas3RcGajZf3q06ga7aSrm7l8idVgoULI0 xHbTMiMBjCNexJVOQKTzpRfKeNT+LJFjaYY68= MIME-Version: 1.0 Received: by 10.236.191.101 with SMTP id f65mr28413752yhn.61.1315358204800; Tue, 06 Sep 2011 18:16:44 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Tue, 6 Sep 2011 18:16:44 -0700 (PDT) Date: Wed, 7 Sep 2011 09:16:44 +0800 X-Google-Sender-Auth: 95Ggl91ltbkTIwCHTAp0Gop0yEQ Message-ID: From: Adrian Chadd To: Yin Content-Type: multipart/mixed; boundary=20cf30434baa8caef804ac4fb2ef Cc: freebsd-wireless@freebsd.org Subject: [patch] Fix TBTT, TSF handling for TDMA on AR5416 and later chips X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 01:16:45 -0000 --20cf30434baa8caef804ac4fb2ef Content-Type: text/plain; charset=ISO-8859-1 Hi Yin, all; I've done a bit of tidying up of Yin's TDMA related cleanups. In particular, I've added a new capability (HAL_CAP_LONG_RXDESC_TSF) which the AR5416 and later chips set. This indicates the received TSF is 32 bits rather than 15 bits. Yin, would you mind testing this in your local setup and make sure it works the same as your patch? I'll submit it for inclusion into -HEAD / 9.0 if it does. Thanks again for your great work! adrian --20cf30434baa8caef804ac4fb2ef Content-Type: application/octet-stream; name="ar5416-tbtt-tsf-fixes.diff" Content-Disposition: attachment; filename="ar5416-tbtt-tsf-fixes.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gs9mb2q60 SW5kZXg6IHN5cy9kZXYvYXRoL2lmX2F0aHZhci5oCj09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9kZXYvYXRo L2lmX2F0aHZhci5oCShyZXZpc2lvbiAyMjUxNDMpCisrKyBzeXMvZGV2L2F0aC9pZl9hdGh2YXIu aAkod29ya2luZyBjb3B5KQpAQCAtMjU1LDcgK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BMRShzYy0+ c2NfYXZndHNmZGVsdGFwLCAwKTsKIAkJVERNQV9TQU1QTEUoc2MtPnNjX2F2Z3RzZmRlbHRhbSwg MCk7CiAJfQotCXR1ZGVsdGEgPSBuZXh0c2xvdHR1IC0gdGltZXIwOworCXR1ZGVsdGEgPSBuZXh0 c2xvdHR1IC0gVFNGX1RPX1RVKG5leHR0YnR0ID4+IDMyLCBuZXh0dGJ0dCk7CiAKIAkvKgogCSAq IENvcHkgc2VuZGVyJ3MgdGltZXRzdGFtcCBpbnRvIHRkbWEgaWUgc28gdGhleSBjYW4KQEAgLTU3 MjQsMTAgKzU3MjgsOSBAQAogCQkmbmktPm5pX3RzdGFtcC5kYXRhLCA4KTsKICNpZiAwCiAJRFBS SU5URihzYywgQVRIX0RFQlVHX1RETUFfVElNRVIsCi0JICAgICJ0c2YgJWxsdSBuZXh0c2xvdCAl bGx1ICglZCwgJWQpIG5leHRzbG90dHUgJXUgdGltZXIwICV1ICglZClcbiIsCisJICAgICJ0c2Yg JWxsdSBuZXh0c2xvdCAlbGx1ICglZCwgJWQpIG5leHRzbG90dHUgJXUgbmV4dHRidHQgJWxsdSAo JWQpXG4iLAogCSAgICAodW5zaWduZWQgbG9uZyBsb25nKSB0c2YsICh1bnNpZ25lZCBsb25nIGxv bmcpIG5leHRzbG90LAotCSAgICAoaW50KShuZXh0c2xvdCAtIHRzZiksIHRzZmRlbHRhLAotCSAg ICBuZXh0c2xvdHR1LCB0aW1lcjAsIHR1ZGVsdGEpOworCSAgICAoaW50KShuZXh0c2xvdCAtIHRz ZiksIHRzZmRlbHRhLCBuZXh0c2xvdHR1LCBuZXh0dGJ0dCwgdHVkZWx0YSk7CiAjZW5kaWYKIAkv KgogCSAqIEFkanVzdCB0aGUgYmVhY29uIHRpbWVycyBvbmx5IHdoZW4gcHVsbGluZyB0aGVtIGZv cndhcmQK --20cf30434baa8caef804ac4fb2ef-- From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 02:38:26 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38B19106564A; Wed, 7 Sep 2011 02:38:26 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id DAA558FC19; Wed, 7 Sep 2011 02:38:25 +0000 (UTC) Received: by gwb1 with SMTP id 1so4313926gwb.36 for ; Tue, 06 Sep 2011 19:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5xY+0YAqJ4A2H8B2rS0tFULcVfTVkB3oUkgDZOo6Sv8=; b=NEYU/SBqYnjSu3e8/NucFI9EfgadcBkxxbZsxz9tCgVbD6YVGyhZ9kr+jFMgL+rje3 mX3IXBBkgK7fITfaAv9Rhi1uX9/xFBC7ykKwfILM60u8ySoFTkxyzob1cIOgGgckz3ry /CB7QTuaIebFJYP0E4s/nVjY0g6TjPHoTk9kI= Received: by 10.151.144.6 with SMTP id w6mr4361915ybn.353.1315363105160; Tue, 06 Sep 2011 19:38:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.178.20 with HTTP; Tue, 6 Sep 2011 19:38:05 -0700 (PDT) In-Reply-To: References: From: Yin Date: Wed, 7 Sep 2011 10:38:05 +0800 Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] Fix TBTT, TSF handling for TDMA on AR5416 and later chips X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 02:38:26 -0000 Hi Adrian, OK! I will test it now and let you know the result. :) Thanks, Yin On Wed, Sep 7, 2011 at 9:16 AM, Adrian Chadd wrote: > Hi Yin, all; > > I've done a bit of tidying up of Yin's TDMA related cleanups. > > In particular, I've added a new capability (HAL_CAP_LONG_RXDESC_TSF) > which the AR5416 and later chips set. This indicates the received TSF > is 32 bits rather than 15 bits. > > Yin, would you mind testing this in your local setup and make sure it > works the same as your patch? I'll submit it for inclusion into -HEAD > / 9.0 if it does. > > Thanks again for your great work! > > > > adrian > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 03:17:44 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 526E2106566B; Wed, 7 Sep 2011 03:17:44 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id F13738FC15; Wed, 7 Sep 2011 03:17:43 +0000 (UTC) Received: by gwb1 with SMTP id 1so4346739gwb.36 for ; Tue, 06 Sep 2011 20:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=WWPymLRl72o9WwG0/bTCNYG2yUesEQbCppktGgiH088=; b=Yb1mVCDMgIlzYBG7YFRvLLwGV345kJH6TRdp0Hiu1pzju5NIX2v3dnZl88jmw7Mhvu Kfdk1eeK16798je7p/Q4uQR78KzrwKSqARAeyCewa5z1F2wB/48VlGHVERiR5ckiRboH eBMVwNX1omFmN6IeatJffwczTYgoGIRYGHiHE= Received: by 10.150.31.20 with SMTP id e20mr4380803ybe.239.1315365463110; Tue, 06 Sep 2011 20:17:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.178.20 with HTTP; Tue, 6 Sep 2011 20:17:23 -0700 (PDT) In-Reply-To: References: From: Yin Date: Wed, 7 Sep 2011 11:17:23 +0800 Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] Fix TBTT, TSF handling for TDMA on AR5416 and later chips X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 03:17:44 -0000 Hi Adrian, The flag to indicate the capability of 32bit RX TSF is great. It works the same as my patch. Thank you for reviewing it and submitting the patch! Yin On Wed, Sep 7, 2011 at 10:38 AM, Yin wrote: > Hi Adrian, > > OK! I will test it now and let you know the result. =A0:) > > Thanks, > Yin > > On Wed, Sep 7, 2011 at 9:16 AM, Adrian Chadd wrote: >> Hi Yin, all; >> >> I've done a bit of tidying up of Yin's TDMA related cleanups. >> >> In particular, I've added a new capability (HAL_CAP_LONG_RXDESC_TSF) >> which the AR5416 and later chips set. This indicates the received TSF >> is 32 bits rather than 15 bits. >> >> Yin, would you mind testing this in your local setup and make sure it >> works the same as your patch? I'll submit it for inclusion into -HEAD >> / 9.0 if it does. >> >> Thanks again for your great work! >> >> >> >> adrian >> > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 04:02:58 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CB45106564A; Wed, 7 Sep 2011 04:02:58 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id DE9768FC12; Wed, 7 Sep 2011 04:02:57 +0000 (UTC) Received: by ywa17 with SMTP id 17so1202489ywa.13 for ; Tue, 06 Sep 2011 21:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=FXfn9rKwuzUXZxKVFSmCQY93UHJjtUv0EbX+2n7EZpU=; b=Wiv0m6ZMWIpz44PuRE6ak/2/4VosDXfWuzd+mZkP74STXz6sAzWJv23TMAn5g8hloI YVArzMv87/xPfOlpMFushnoUckdV7ZM7zTjaLqSf2sPOfIQqcQlxmDzKNjmxDM+NSFYa /R15RKqdCd8N5uGgNjwp4P24CQlD5ZHwhVh0Q= Received: by 10.151.144.6 with SMTP id w6mr4415551ybn.353.1315368177219; Tue, 06 Sep 2011 21:02:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.178.20 with HTTP; Tue, 6 Sep 2011 21:02:37 -0700 (PDT) In-Reply-To: References: From: Yin Date: Wed, 7 Sep 2011 12:02:37 +0800 Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] Fix TBTT, TSF handling for TDMA on AR5416 and later chips X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 04:02:58 -0000 Hold on! I just make clean the kernel and rebuilding the kernel. ath_hal_has_long_rxdesc_tsf() is returning 0 for My DNMA-92 (AR9220) , Hence ath_extend_tsf15 is used instead of ath_extend_tsf32 and leads to beacon stuck. Would you check it please? ath0: stuck beacon; resetting (bmiss count 4) ath0: stuck beacon; resetting (bmiss count 4) ath0: stuck beacon; resetting (bmiss count 4) ath0: stuck beacon; resetting (bmiss count 4) ath0: stuck beacon; resetting (bmiss count 4) ath0: stuck beacon; resetting (bmiss count 4) Yin On Wed, Sep 7, 2011 at 11:17 AM, Yin wrote: > Hi Adrian, > > The flag to indicate the capability of 32bit RX TSF is great. It works > the same as my patch. > > Thank you for reviewing it and submitting the patch! > > Yin > > On Wed, Sep 7, 2011 at 10:38 AM, Yin wrote: >> Hi Adrian, >> >> OK! I will test it now and let you know the result. =A0:) >> >> Thanks, >> Yin >> >> On Wed, Sep 7, 2011 at 9:16 AM, Adrian Chadd wrote: >>> Hi Yin, all; >>> >>> I've done a bit of tidying up of Yin's TDMA related cleanups. >>> >>> In particular, I've added a new capability (HAL_CAP_LONG_RXDESC_TSF) >>> which the AR5416 and later chips set. This indicates the received TSF >>> is 32 bits rather than 15 bits. >>> >>> Yin, would you mind testing this in your local setup and make sure it >>> works the same as your patch? I'll submit it for inclusion into -HEAD >>> / 9.0 if it does. >>> >>> Thanks again for your great work! >>> >>> >>> >>> adrian >>> >> > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 04:48:26 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46EEC1065672; Wed, 7 Sep 2011 04:48:26 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id E254A8FC23; Wed, 7 Sep 2011 04:48:25 +0000 (UTC) Received: by gwb1 with SMTP id 1so4415231gwb.36 for ; Tue, 06 Sep 2011 21:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=NJ2XSCu7zxJIwuNEP4KFQDySKI2YYwZi1WuD+HIVoiU=; b=EMEMSCSp1pb7pCArLbj34m5FNg+56R/IM9N8KSB+DHF9QHr4L0aZwbuXzXsQXEHQ8Y G6tVD2TptrwTuPBDLnpSjouTTdHy/Tt5+mpgsqwAuIRlr0V5hhJIPxEjA6XepVjzJXsN y+SwhH5qT5ajlLQEXpzE8wP3qMKY4/vh/uZIo= Received: by 10.150.114.18 with SMTP id m18mr1533118ybc.182.1315370905079; Tue, 06 Sep 2011 21:48:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.178.20 with HTTP; Tue, 6 Sep 2011 21:48:05 -0700 (PDT) In-Reply-To: References: From: Yin Date: Wed, 7 Sep 2011 12:48:05 +0800 Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] Fix TBTT, TSF handling for TDMA on AR5416 and later chips X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 04:48:28 -0000 My apologize. My last build does not pick up ath_hal code. Your patch is working fine. Please commit it. -Yin On Wed, Sep 7, 2011 at 12:02 PM, Yin wrote: > Hold on! I just make clean the kernel and rebuilding the kernel. > ath_hal_has_long_rxdesc_tsf() is returning 0 for My DNMA-92 (AR9220) , > Hence ath_extend_tsf15 is used instead of ath_extend_tsf32 and leads > to beacon stuck. Would you check it please? > > ath0: stuck beacon; resetting (bmiss count 4) > ath0: stuck beacon; resetting (bmiss count 4) > ath0: stuck beacon; resetting (bmiss count 4) > ath0: stuck beacon; resetting (bmiss count 4) > ath0: stuck beacon; resetting (bmiss count 4) > ath0: stuck beacon; resetting (bmiss count 4) > > Yin > > On Wed, Sep 7, 2011 at 11:17 AM, Yin wrote: >> Hi Adrian, >> >> The flag to indicate the capability of 32bit RX TSF is great. It works >> the same as my patch. >> >> Thank you for reviewing it and submitting the patch! >> >> Yin >> >> On Wed, Sep 7, 2011 at 10:38 AM, Yin wrote: >>> Hi Adrian, >>> >>> OK! I will test it now and let you know the result. =A0:) >>> >>> Thanks, >>> Yin >>> >>> On Wed, Sep 7, 2011 at 9:16 AM, Adrian Chadd wrote= : >>>> Hi Yin, all; >>>> >>>> I've done a bit of tidying up of Yin's TDMA related cleanups. >>>> >>>> In particular, I've added a new capability (HAL_CAP_LONG_RXDESC_TSF) >>>> which the AR5416 and later chips set. This indicates the received TSF >>>> is 32 bits rather than 15 bits. >>>> >>>> Yin, would you mind testing this in your local setup and make sure it >>>> works the same as your patch? I'll submit it for inclusion into -HEAD >>>> / 9.0 if it does. >>>> >>>> Thanks again for your great work! >>>> >>>> >>>> >>>> adrian >>>> >>> >> > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 05:56:09 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BB60106566C for ; Wed, 7 Sep 2011 05:56:09 +0000 (UTC) (envelope-from jpaetzel@freebsd.org) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id 2DB688FC0C for ; Wed, 7 Sep 2011 05:56:09 +0000 (UTC) Received: from mail.ixsystems.com (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id 8C2E1A66403 for ; Tue, 6 Sep 2011 22:37:02 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by mail.ixsystems.com (mail.ixsystems.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 37179-01 for ; Tue, 6 Sep 2011 22:37:02 -0700 (PDT) Received: from roadrash.tccbug.org (unknown [10.10.1.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id 560DFA66402 for ; Tue, 6 Sep 2011 22:37:02 -0700 (PDT) From: Josh Paetzel To: freebsd-wireless@freebsd.org Date: Tue, 6 Sep 2011 22:36:55 -0700 User-Agent: KMail/1.13.7 (FreeBSD/9.0-BETA1; KDE/4.6.5; amd64; ; ) Organization: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1442816.xBSVvOh1x2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201109062237.00788.jpaetzel@freebsd.org> Subject: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 05:56:09 -0000 --nextPart1442816.xBSVvOh1x2 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I run a thinkpad T510 with a: iwn0: mem 0xf2000000-0xf2001fff irq= 17=20 at device 0.0 on pci3 iwn0@pci0:3:0:0: class=3D0x028000 card=3D0x13118086 chip=3D0x4239808= 6=20 rev=3D0x35 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Centrino Advanced-N 6200' class =3D network I ran PC-BSD 8.2 on this hardware for ~ 8 months with no real issues using = the=20 wifi. =20 Last week I upgraded to PC-BSD 9.0-BETA 1.5 which is based off of 9.0-BETA1= =2E =20 After I upgraded I started getting frequent disconnections from the wireles= s=20 network at work. This weekend the AP at work died, but my troubles didn't = go=20 away. I brought my laptop home tonight and was getting frequent disconnects here = as=20 well. I have an apple airport extreme (the AP at work is a netgear of unkn= own=20 model) I was able to regain a nice stable connection by running ifconfig wlan0 -ht. =2D-=20 Thanks, Josh Paetzel =46reeBSD -- The power to serve --nextPart1442816.xBSVvOh1x2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAABAgAGBQJOZwL8AAoJEKFq1/n1feG2YrAH/3oY1lJ3U4FXNTwo4yoR8NLS GtXcttc/hxDK6fG1MxuvD6bhQNOFAgyy72SdkkDXWEp5XI2nseoNHz6aV8Llho0m 5uSJb7QrJ3rnmcLZwoEglZcoJhF4zGibmhdwWiGZb4hTclIFdxNk3io/43Wqz/Xp 4BlRqv00gURXYTKPqijNGYbI4WSZ0QfnzQp9o+5y4ySnSZpPhOEB035i53leAP8Y uaqiGCBtoWJtAqLxWxutUb9Jcu9Jash9pqIzTnnrGQeeuTAFdK3LzmXq4uRK2woF 7ctL/RS6WhhZCy4FqZo0wgLGeWU7++XosAKhwYYqSxkOKZmmqNuaJxHhG8Z1qrU= =UsFu -----END PGP SIGNATURE----- --nextPart1442816.xBSVvOh1x2-- From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 05:59:08 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 675C8106564A for ; Wed, 7 Sep 2011 05:59:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 133CF8FC1E for ; Wed, 7 Sep 2011 05:59:07 +0000 (UTC) Received: by gyd10 with SMTP id 10so5257834gyd.13 for ; Tue, 06 Sep 2011 22:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eFzDTbQxjYi+9vAUh78cbJBG8VOTAH4MmFPccHgzyVI=; b=qJ2LO4d234uGpyFXRozy0uCQGcDw7LQDMOo1LB8DHbkmN+9sA/ffMTybwH7uT22Zau lmKg1U1kFy/CI7jX+Ck1FeF5dU/FNtUUP8wycAlpdOFvQvCgSVrA4eUO3WvQIEvjAbg/ IgBuxbbD2yzEFS2mozw8ZqtUabAx/r8/aWyTc= MIME-Version: 1.0 Received: by 10.236.200.137 with SMTP id z9mr29454420yhn.27.1315375147568; Tue, 06 Sep 2011 22:59:07 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Tue, 6 Sep 2011 22:59:07 -0700 (PDT) In-Reply-To: <201109062237.00788.jpaetzel@freebsd.org> References: <201109062237.00788.jpaetzel@freebsd.org> Date: Wed, 7 Sep 2011 13:59:07 +0800 X-Google-Sender-Auth: WleCCglU1NkCFJXlBVqBcf3xpm8 Message-ID: From: Adrian Chadd To: Josh Paetzel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 05:59:08 -0000 Hi! On 7 September 2011 13:36, Josh Paetzel wrote: > I run a thinkpad T510 with a: > > =A0iwn0: mem 0xf2000000-0xf2001fff= irq 17 > at device 0.0 on pci3 The last person to touch this was bernhard; I don't know if he has tinkered with the 6200 stuff though. > I brought my laptop home tonight and was getting frequent disconnects her= e as > well. =A0I have an apple airport extreme (the AP at work is a netgear of = unknown > model) > > I was able to regain a nice stable connection by running ifconfig wlan0 -= ht. Would you mind trying this instead: ifconfig wlan0 -ampdutx Once you've associated (ie, once HT has been enabled), and then run dhclient and start doing traffic. I'd like to see if it's a general HT issue or whether it's the TX aggregation code in iwn that needs tinkering with. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 06:29:31 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FAA91065677 for ; Wed, 7 Sep 2011 06:29:31 +0000 (UTC) (envelope-from ku-ku-ku-ku@live.com) Received: from bay0-omc1-s10.bay0.hotmail.com (bay0-omc1-s10.bay0.hotmail.com [65.54.190.21]) by mx1.freebsd.org (Postfix) with ESMTP id EFC5D8FC13 for ; Wed, 7 Sep 2011 06:29:30 +0000 (UTC) Received: from BAY149-W14 ([65.54.190.61]) by bay0-omc1-s10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 6 Sep 2011 23:16:13 -0700 Message-ID: X-Originating-IP: [24.193.11.125] From: kuku kuku To: Date: Wed, 7 Sep 2011 02:16:13 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 07 Sep 2011 06:16:13.0400 (UTC) FILETIME=[A4DBFD80:01CC6D25] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: intel Centrino 6150 Wireless Card w freebsd8.2 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 06:29:31 -0000 Hi all=2C As i know there is no support for intel 6150 cards currently. I tried w iwn= drivers no luck. Google search and freebsd forums didnt return any solutions. Card is working fine w linux output is below. Intel published drivers for l= inux but no bsd support. Platform is asus u46. Am i missing anything?? Thanks in advanced Linux output: [ 16.087858] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux=2C = in-tree:d [ 16.087861] iwlagn: Copyright(c) 2003-2011 Intel Corporation [ 16.087918] iwlagn 0000:02:00.0: PCI INT A -> GSI 17 (level=2C low) -> I= RQ 17 [ 16.087927] iwlagn 0000:02:00.0: setting latency timer to 64 [ 16.087978] iwlagn 0000:02:00.0: Detected Intel(R) Centrino(R) Wireless-= N + WiMAX 6150 BGN=2C REV=3D0x84 [ 16.098604] iwlagn 0000:02:00.0: device EEPROM VER=3D0x557=2C CALIB=3D0x= 6 [ 16.098606] iwlagn 0000:02:00.0: Device SKU: 0X9 [ 16.098608] iwlagn 0000:02:00.0: Valid Tx ant: 0X1=2C Valid Rx ant: 0X3 [ 16.098621] iwlagn 0000:02:00.0: Tunable channels: 13 802.11bg=2C 0 802.= 11a channels [ 16.098711] iwlagn 0000:02:00.0: irq 42 for MSI/MSI-X [ 16.101184] iwlagn 0000:02:00.0: loaded firmware version 41.28.5.1 build= 33926 Best Regards=2C bob = From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 06:37:10 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA636106564A for ; Wed, 7 Sep 2011 06:37:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 6B1288FC08 for ; Wed, 7 Sep 2011 06:37:10 +0000 (UTC) Received: by gwb1 with SMTP id 1so4505245gwb.36 for ; Tue, 06 Sep 2011 23:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=geiHCCQGoDCPDiUcvrGfvqpbLjgC2GTMT+l+EyX87YA=; b=l71GSa+5aOc5X5u3CDxIAPDqBKlMjcKP1Y7AKUVFI5Z2BR3W3VBl4GeU1ti/8LYolo G7i67kLwGnAcKv4gMBJw6AWPWWrOkGhPvzO6G3K4pdx31AnRLbuA3UslIhtMUF8obg1Y KSEcI1b7g0WaXSaExVL707Q2Q0cPS1nwh1wkU= MIME-Version: 1.0 Received: by 10.236.22.9 with SMTP id s9mr28567668yhs.129.1315377429905; Tue, 06 Sep 2011 23:37:09 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Tue, 6 Sep 2011 23:37:09 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 14:37:09 +0800 X-Google-Sender-Auth: gG4eMGMLF5xVwXVUv_afdJDsIVY Message-ID: From: Adrian Chadd To: kuku kuku Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: intel Centrino 6150 Wireless Card w freebsd8.2 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 06:37:10 -0000 There's currently no support for that in FreeBSD. Adrian On 7 September 2011 14:16, kuku kuku wrote: > > > Hi all, > > As i know there is no support for intel 6150 cards currently. I tried w i= wn drivers no luck. > Google search and freebsd forums didnt return any solutions. > > Card is working fine w linux output is below. Intel published drivers for= linux but no bsd support. > Platform is asus u46. Am i missing anything?? > > Thanks in advanced > > Linux output: > > [ 16.087858] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in= -tree:d > [ 16.087861] iwlagn: Copyright(c) 2003-2011 Intel Corporation > [ 16.087918] iwlagn 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ= 17 > [ 16.087927] iwlagn 0000:02:00.0: setting latency timer to 64 > [ 16.087978] iwlagn 0000:02:00.0: Detected Intel(R) Centrino(R) Wireless-= N + WiMAX 6150 BGN, REV=3D0x84 > [ 16.098604] iwlagn 0000:02:00.0: device EEPROM VER=3D0x557, CALIB=3D0x6 > [ 16.098606] iwlagn 0000:02:00.0: Device SKU: 0X9 > [ 16.098608] iwlagn 0000:02:00.0: Valid Tx ant: 0X1, Valid Rx ant: 0X3 > [ 16.098621] iwlagn 0000:02:00.0: Tunable channels: 13 802.11bg, 0 802.11= a channels > [ 16.098711] iwlagn 0000:02:00.0: irq 42 for MSI/MSI-X > [ 16.101184] iwlagn 0000:02:00.0: loaded firmware version 41.28.5.1 build= 33926 > > Best Regards, > bob > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0_______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 07:36:15 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C440F1065673 for ; Wed, 7 Sep 2011 07:36:15 +0000 (UTC) (envelope-from ku-ku-ku-ku@live.com) Received: from bay0-omc1-s26.bay0.hotmail.com (bay0-omc1-s26.bay0.hotmail.com [65.54.190.37]) by mx1.freebsd.org (Postfix) with ESMTP id AEE218FC0C for ; Wed, 7 Sep 2011 07:36:15 +0000 (UTC) Received: from BAY149-W12 ([65.54.190.61]) by bay0-omc1-s26.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 7 Sep 2011 00:36:15 -0700 Message-ID: X-Originating-IP: [24.193.11.125] From: kuku kuku To: Date: Wed, 7 Sep 2011 03:36:15 -0400 Importance: Normal In-Reply-To: References: , MIME-Version: 1.0 X-OriginalArrivalTime: 07 Sep 2011 07:36:15.0548 (UTC) FILETIME=[D3299FC0:01CC6D30] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: RE: intel Centrino 6150 Wireless Card w freebsd8.2 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 07:36:15 -0000 Thanks Adrian.=20 Any plans on adding support with v9 release. Background: Our company is changing laptops ( ~30 ) wants to go with asus u= 46 for price/performance Best regards=2C bob > Date: Wed=2C 7 Sep 2011 14:37:09 +0800 > Subject: Re: intel Centrino 6150 Wireless Card w freebsd8.2 > From: adrian@freebsd.org > To: ku-ku-ku-ku@live.com > CC: freebsd-wireless@freebsd.org >=20 > There's currently no support for that in FreeBSD. >=20 >=20 > Adrian >=20 > On 7 September 2011 14:16=2C kuku kuku wrote: > > > > > > Hi all=2C > > > > As i know there is no support for intel 6150 cards currently. I tried w= iwn drivers no luck. > > Google search and freebsd forums didnt return any solutions. > > > > Card is working fine w linux output is below. Intel published drivers f= or linux but no bsd support. > > Platform is asus u46. Am i missing anything?? > > > > Thanks in advanced > > > > Linux output: > > > > [ 16.087858] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux= =2C in-tree:d > > [ 16.087861] iwlagn: Copyright(c) 2003-2011 Intel Corporation > > [ 16.087918] iwlagn 0000:02:00.0: PCI INT A -> GSI 17 (level=2C low) ->= IRQ 17 > > [ 16.087927] iwlagn 0000:02:00.0: setting latency timer to 64 > > [ 16.087978] iwlagn 0000:02:00.0: Detected Intel(R) Centrino(R) Wireles= s-N + WiMAX 6150 BGN=2C REV=3D0x84 > > [ 16.098604] iwlagn 0000:02:00.0: device EEPROM VER=3D0x557=2C CALIB=3D= 0x6 > > [ 16.098606] iwlagn 0000:02:00.0: Device SKU: 0X9 > > [ 16.098608] iwlagn 0000:02:00.0: Valid Tx ant: 0X1=2C Valid Rx ant: 0X= 3 > > [ 16.098621] iwlagn 0000:02:00.0: Tunable channels: 13 802.11bg=2C 0 80= 2.11a channels > > [ 16.098711] iwlagn 0000:02:00.0: irq 42 for MSI/MSI-X > > [ 16.101184] iwlagn 0000:02:00.0: loaded firmware version 41.28.5.1 bui= ld 33926 > > > > Best Regards=2C > > bob > > ______________________________= _________________ > > freebsd-wireless@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe=2C send any mail to "freebsd-wireless-unsubscribe@freebs= d.org" > > = From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 07:54:00 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1A24106564A for ; Wed, 7 Sep 2011 07:54:00 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id A4C6B8FC15 for ; Wed, 7 Sep 2011 07:54:00 +0000 (UTC) Received: by gwb1 with SMTP id 1so4577419gwb.36 for ; Wed, 07 Sep 2011 00:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=pY+aMTlNQBK26UOdm2cY1q4j9bx1Zz+5VXee4WhFePo=; b=CuEkz+DjCF0/fGhnT24fPbXp0PkiiUQTfHZk1gCctakMcK3IhPAujFe8xSSioliGn/ 8Yr/+8+l3p98IlGTVMq3rsEUXUSIlmK5LHmQKDcdOLO1orGtOoMeS4cRITTtfGaRtFdU cCRB/mmEBN6GRjlSiJfSfH08ZspkR7y3wnSWo= MIME-Version: 1.0 Received: by 10.68.36.227 with SMTP id t3mr1954903pbj.273.1315382039554; Wed, 07 Sep 2011 00:53:59 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Wed, 7 Sep 2011 00:53:59 -0700 (PDT) Date: Wed, 7 Sep 2011 09:53:59 +0200 Message-ID: From: Berislav Purgar To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 07:54:01 -0000 Hi .. how can i enable tdma on ar5416 to work ?? ifconfig wlan1 create wlandev ath0 wlanmode tdma ssid tdma-test channel 2 up ifconfig wlan1 xx.xx.xx.xx/24 but i always have status: not running Beri From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 07:57:11 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 360D31065670 for ; Wed, 7 Sep 2011 07:57:11 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id E92A88FC16 for ; Wed, 7 Sep 2011 07:57:10 +0000 (UTC) Received: by ywa17 with SMTP id 17so1341682ywa.13 for ; Wed, 07 Sep 2011 00:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=fKbJV/x3UKwB7vrfsEj3dC9iYalm0tYCjld+dI40DmI=; b=OxFUo5lzvIcBcj9dAdR6118fxZgDYN6Cbh4mzk6rlcgdKOE5P6OAra0CucTqyGrYyq n/OAS/hI9Mb23rL1nWwBh96AFb/WQyBnqt/3PDbwLHyVp/vKfUJZhAnbWUxGbiLjX/p/ yvW5i5kcc8f0Z3d5x1L1UjulDciopyrrd597A= Received: by 10.150.31.20 with SMTP id e20mr4565831ybe.239.1315382228076; Wed, 07 Sep 2011 00:57:08 -0700 (PDT) MIME-Version: 1.0 Sender: paradyse@gmail.com Received: by 10.150.178.20 with HTTP; Wed, 7 Sep 2011 00:56:48 -0700 (PDT) In-Reply-To: References: From: Kang Yin Su Date: Wed, 7 Sep 2011 15:56:48 +0800 X-Google-Sender-Auth: f7m-dC5upqiTK66BOkaMMG53TpA Message-ID: To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 07:57:11 -0000 Hi, you need one for master and one for slave master: ifconfig wlan1 tdmaslotcnt 2 tdmaslot 0 slave: ifconfig wlan1 tdmaslotcnt 2 tdmaslot 1 Yin On Wed, Sep 7, 2011 at 3:53 PM, Berislav Purgar wrote: > Hi .. > > how can i enable =A0tdma on ar5416 to work ?? > > ifconfig wlan1 create wlandev ath0 wlanmode tdma ssid tdma-test channel 2= up > ifconfig wlan1 xx.xx.xx.xx/24 > > but i always have status: not running > > Beri > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 07:59:41 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58F1F106564A for ; Wed, 7 Sep 2011 07:59:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f178.google.com (mail-gx0-f178.google.com [209.85.161.178]) by mx1.freebsd.org (Postfix) with ESMTP id 1953C8FC0C for ; Wed, 7 Sep 2011 07:59:40 +0000 (UTC) Received: by gxk8 with SMTP id 8so5289086gxk.37 for ; Wed, 07 Sep 2011 00:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=2T6qwdxvLCZD1TrfKMGr0Z2viwO7EG3TtWxWe3BHU2Q=; b=aaJD8cWJDCrXLnp+b6SsNAHK49rwZ1tOnwVd7Yv1PQ9g/LNeL9tR6CL1tij+EWajqe V8Tomh7CjflN4021rui3eADfHbAZ9E+Ow4HlcoHZSPdpovXoutKZy3oRZP7wWAh/Kefy 6FsPTW/4I9E2ZtdzFcdolplqdsmRY3nWWpYWU= MIME-Version: 1.0 Received: by 10.236.187.2 with SMTP id x2mr29811113yhm.95.1315382380376; Wed, 07 Sep 2011 00:59:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 00:59:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 15:59:40 +0800 X-Google-Sender-Auth: jpg92c8CmAYe2vwMRQpaFUTHf8Y Message-ID: From: Adrian Chadd To: Kang Yin Su Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 07:59:41 -0000 Hm! On 7 September 2011 15:56, Kang Yin Su wrote: > Hi, > > you need one for master and one for slave > > master: > ifconfig wlan1 tdmaslotcnt 2 tdmaslot 0 > > slave: > ifconfig wlan1 tdmaslotcnt 2 tdmaslot 1 Did you ever tinker with the net80211 ieee80211_tdma.c code to handle >2 slots? I'm pretty sure the code in there assumed only two slots and I've not seen any patches from you about it? Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 07:59:48 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 637C2106564A for ; Wed, 7 Sep 2011 07:59:48 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 22A098FC13 for ; Wed, 7 Sep 2011 07:59:47 +0000 (UTC) Received: by yxk36 with SMTP id 36so182324yxk.13 for ; Wed, 07 Sep 2011 00:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=WgsCE6lwGRexREKN+a5YI+d/ioms3F/ojqo3F+AT8po=; b=pC4ZtxVoPllNmRUNl7rvCZ+++cpxCNpSQ1C+T0iPNdpQw3YnGwnVn+A2SLB4W/D+S2 zjUkRFx+lkdL8GbM5R8mJnBqhRvZ4SkzmxPiEfOB0KG/1bm5gnL3QsGZNhI+jqHTqJiR waMCeZ5c47PQPR3H2LVfdVhhs1wNA1WeA1a0I= Received: by 10.150.114.18 with SMTP id m18mr1661433ybc.182.1315382387447; Wed, 07 Sep 2011 00:59:47 -0700 (PDT) MIME-Version: 1.0 Sender: paradyse@gmail.com Received: by 10.150.178.20 with HTTP; Wed, 7 Sep 2011 00:59:27 -0700 (PDT) In-Reply-To: References: From: Kang Yin Su Date: Wed, 7 Sep 2011 15:59:27 +0800 X-Google-Sender-Auth: eNZKqZTCsx7N3_lEFHfbK1NLGLY Message-ID: To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 07:59:48 -0000 Please use the code from HEAD and apply the latest patch. The old code does't transmit beacon on AR5416. -Yin On Wed, Sep 7, 2011 at 3:56 PM, Kang Yin Su wrote: > Hi, > > you need one for master and one for slave > > master: > ifconfig wlan1 tdmaslotcnt 2 tdmaslot 0 > > slave: > ifconfig wlan1 tdmaslotcnt 2 tdmaslot 1 > > Yin > > > On Wed, Sep 7, 2011 at 3:53 PM, Berislav Purgar wrote= : >> Hi .. >> >> how can i enable =A0tdma on ar5416 to work ?? >> >> ifconfig wlan1 create wlandev ath0 wlanmode tdma ssid tdma-test channel = 2 up >> ifconfig wlan1 xx.xx.xx.xx/24 >> >> but i always have status: not running >> >> Beri >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.o= rg" >> > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:00:32 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7CCA106564A for ; Wed, 7 Sep 2011 08:00:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 76BB48FC15 for ; Wed, 7 Sep 2011 08:00:32 +0000 (UTC) Received: by gwb1 with SMTP id 1so4583705gwb.36 for ; Wed, 07 Sep 2011 01:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=IIPtC/+8umt8gY+b6TUoxxFoVSicL7GV8HFlgGY+7rI=; b=ejv0nTuAXGP+aiUKP26KKBYCwzYnKXdc9Q/aF+yRIG/OsqTsS2YNVpZvJ4rg3ZlN+p 21YOSoGZuw6CWShXSvaWhLwwrCCtIuobTXkQCIWeJA8OiX34t6InwEfG8JkzzqzCNAzZ 2ipPy0aqYWm6j4BAQX3EL3+cGQgzAcHvFXt68= MIME-Version: 1.0 Received: by 10.236.22.9 with SMTP id s9mr28943630yhs.129.1315382431844; Wed, 07 Sep 2011 01:00:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 01:00:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 16:00:31 +0800 X-Google-Sender-Auth: W7yhITkB_OwvU__Oz1avd8BVzKk Message-ID: From: Adrian Chadd To: kuku kuku Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: intel Centrino 6150 Wireless Card w freebsd8.2 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:00:32 -0000 On 7 September 2011 15:36, kuku kuku wrote: > > Thanks Adrian. > Any plans on adding support with v9 release. > > Background: Our company is changing laptops ( ~30 ) wants to go with asus u46 for price/performance Hi, I don't know of any current plans to port the drivers. Bernhard would be the best person to know. If someone would like to step up and do/sponsor the port then I'm sure it'll get done! Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:02:50 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5511C1065672; Wed, 7 Sep 2011 08:02:50 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-gx0-f178.google.com (mail-gx0-f178.google.com [209.85.161.178]) by mx1.freebsd.org (Postfix) with ESMTP id 002B18FC25; Wed, 7 Sep 2011 08:02:49 +0000 (UTC) Received: by gxk8 with SMTP id 8so5292353gxk.37 for ; Wed, 07 Sep 2011 01:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=/2j2becF783TDqxpgiByQXMJXf0c25eqEQo+11ietbg=; b=vFa4r8s7Ci+3lr8GRT+wApD9RwgpX9lue2apEMXrIG4v+CrUIEfsfQAAtLcVs62Svm JVsj8LW1hyXVr4Nf6N8Czod3IKhMuGaAcXFdFwbzifTncKXI1Hh+IisiVWB8a6WKVj3F RucTYWA0wZ5WIyoAIHEoyIvtlD1oVvEWblTiM= Received: by 10.150.218.11 with SMTP id q11mr4732314ybg.11.1315382569241; Wed, 07 Sep 2011 01:02:49 -0700 (PDT) MIME-Version: 1.0 Sender: paradyse@gmail.com Received: by 10.150.178.20 with HTTP; Wed, 7 Sep 2011 01:02:29 -0700 (PDT) In-Reply-To: References: From: Kang Yin Su Date: Wed, 7 Sep 2011 16:02:29 +0800 X-Google-Sender-Auth: CfOCq4NmYj0ZX8YuPKgm6_KEOKs Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:02:50 -0000 Sure, For testing >2 slot, I just comment out the line from ieee80211_tdma.c 110://CTASSERT(TDMA_MAXSLOTS == 2); Yin On Wed, Sep 7, 2011 at 3:59 PM, Adrian Chadd wrote: > Hm! > > On 7 September 2011 15:56, Kang Yin Su wrote: >> Hi, >> >> you need one for master and one for slave >> >> master: >> ifconfig wlan1 tdmaslotcnt 2 tdmaslot 0 >> >> slave: >> ifconfig wlan1 tdmaslotcnt 2 tdmaslot 1 > > Did you ever tinker with the net80211 ieee80211_tdma.c code to handle >2 slots? > I'm pretty sure the code in there assumed only two slots and I've not > seen any patches from you about it? > > > Adrian > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:30:57 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B65FD1065680 for ; Wed, 7 Sep 2011 08:30:57 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 7642E8FC17 for ; Wed, 7 Sep 2011 08:30:57 +0000 (UTC) Received: by gwb1 with SMTP id 1so4614992gwb.36 for ; Wed, 07 Sep 2011 01:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GlwkAJcTusm3q5FBnJy+2ypyn/avzxII5NRge8cZT9Q=; b=K7i4TKE2rv4BCQO4Vpur4cOWDpo+AnwO03u9lL5RJV0b20Qx3ocPkbVxp/gsMg3fOo XiKuD9Uz2X6VZsu95gVpfK8OVO1Y3oRrUWSBZOpUdX6APpVMrbnKqHtTX3Yg4lGCaZ0m zILUGMvicpS1oq0+fTa6D2IxJhBObNwXGFv1w= MIME-Version: 1.0 Received: by 10.68.159.116 with SMTP id xb20mr1204569pbb.407.1315384256175; Wed, 07 Sep 2011 01:30:56 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Wed, 7 Sep 2011 01:30:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 10:30:56 +0200 Message-ID: From: Berislav Purgar To: Kang Yin Su Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:30:57 -0000 ok . now works . tnx :) Beri On Wed, Sep 7, 2011 at 9:56 AM, Kang Yin Su wrote: > Hi, > > you need one for master and one for slave > > master: > ifconfig wlan1 tdmaslotcnt 2 tdmaslot 0 > > slave: > ifconfig wlan1 tdmaslotcnt 2 tdmaslot 1 > > Yin > > > On Wed, Sep 7, 2011 at 3:53 PM, Berislav Purgar wrote: > > Hi .. > > > > how can i enable tdma on ar5416 to work ?? > > > > ifconfig wlan1 create wlandev ath0 wlanmode tdma ssid tdma-test channel 2 > up > > ifconfig wlan1 xx.xx.xx.xx/24 > > > > but i always have status: not running > > > > Beri > > _______________________________________________ > > freebsd-wireless@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to " > freebsd-wireless-unsubscribe@freebsd.org" > > > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:40:01 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5E3F106564A; Wed, 7 Sep 2011 08:40:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 4AF6E8FC16; Wed, 7 Sep 2011 08:40:00 +0000 (UTC) Received: by gwb1 with SMTP id 1so4624184gwb.36 for ; Wed, 07 Sep 2011 01:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=wN0vbdh+HxPEjKGZ9oNhHxOrLHO7l8h+x2/4xGGI4zg=; b=TOZRmm1LFsQQTX8DNE5pX+wJxePr9GzBpHd7D6LvHjvW84zzEfsU7Gum+38CooMq9M AcYoo5OBicepvXlS3jdxuJvmyXSAms6ZFy1Ze2U7lEh7TkZEubLFl90hglnREBg3mR91 2yVpCew6qi1yvRbyTdYzxi4hvXhmERRjx4/Ks= MIME-Version: 1.0 Received: by 10.236.191.101 with SMTP id f65mr30543592yhn.61.1315384800447; Wed, 07 Sep 2011 01:40:00 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 01:40:00 -0700 (PDT) Date: Wed, 7 Sep 2011 16:40:00 +0800 X-Google-Sender-Auth: X6X2JDqAzdAK5nMovcPSpXOoYC4 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Net , freebsd-current , freebsd-mobile@freebsd.org Subject: [ANNOUNCE] 802.11n TX aggregation support for Atheros 11n NICs X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:40:01 -0000 Hi all, I apologise up front for the cross-posting. Please redirect all future queries about this to freebsd-wireless@freebsd.org. I guess the cat is out of the bag (and it hasn't killed anyone yet.) For the last 6 or so months, the if_ath driver and net80211 802.11n support has been updated to (hopefully) be usable, both in station and hostap modes. Users could use ath(4) in -HEAD as an 11n station or hostap by just disabling ampdutx. I've been doing that successfully for a few months now at home, with respectable (> 200mbit UDP, ~ 100mbit TCP) throughput in the receive direction (as AMPDU RX now works well.) Through the gracious sponsorship of Hobnob, Inc., (and the completion of my bachelors degree in something completely unrelated to all of this!) I've dived in head-first into the 802.11n TX aggregation support. As I type this, I have an EEEPC 701 w/ an AR9280 currently spitting out a 130mbit/sec TCP stream to a Ubiquiti Routerstation Pro MIPS board w/ an AR9160 (5ghz HT/40/shortgi mode.) They're both running FreeBSD. A user asked about the state of this code on the -wireless list a couple days ago and has reported that his AR5416 based NIC is happily performing much the same way. So, since it's passed my "works for someone who isn't me!" test, I've decided to make a wider announcement. There's still a -lot- to do. Specifically (this isn't an exhaustive list): * There are locking issues with ath/net80211 which need to be resolved before this is merged back into -HEAD. * There's currently no support for HT RTS/CTS frame protection. I can add it easily enough, but I first have to add the AR5416 workarounds (8k limitation on RTS protected frames) before I can do that. * The AMPDU code is currently not sending BAR frames. This requires a little more fore-thought and net80211 reorganisation before they can be queued and sent. * Don't try to do a UDP iperf test before you establish AMPDU, or you'll fill the hardware TX queue with UDP frames and then end up with no frames available to send the ADDBA management frames. Oops! :) * The rate control module (sample) supports 11n and some basic TX aggregation stuff, but it isn't optimal. It's only "good enough" for me to not have to care about rate control causing large issues. Something needs to be done before it's merged into -HEAD - either a replacement needs to be written, or minstrel_ht needs to be ported. * There's no hardware power saving support in place at the moment. This means it'll draw a lot of power in station mode. * There's no MIMO PS support. Same caveat as the above. * adhoc, ahdemo, TDMA and IBSS modes likely won't work just yet. I'm not likely to begin looking at those until all the net80211 and ath driver changes are in place and tested. * I haven't yet added "filtered frames" support, so there's going to be a lot of packet loss in hostap mode when a station decides to go into power-saving or off-channel mode (eg to do a scan). * There are still (very) occasional TX-side hangs which I'm seeing. I'm trying to get to the bottom of this. * I've not tested this -at all- on multi-CPU/multi-core setups, primarily because I don't run freebsd+wifi on anything like that just yet. * net80211 AMPDU TX is based on QoS/WME Access Category (AC) numbers, rather than the full set of available TIDs. This is likely going to need to change (and the ieee80211 superg support tested/updated) before this can be merged into -HEAD as I've been told it's quite valid to expect multiple aggregation sessions in the same AC. What does work (what have I tested): * HT/20 and HT/40 support; * 2 and 5ghz support; * station and and hostap modes; * AR5416/AR5418, AR9160, AR9280 chipsets. I haven't tested AR9285 or AR9287 yet; * HT/20 and HT/40 interoperability support - ie, a HT/40 AP can have HT/20 and HT/40 nodes associated. 11a/11bg nodes can also associate but the current lack of HT frame protection is likely to cause significant interference; * ADDBA negotiation (with the above caveat that buffer management needs to be tidied up in my codebase, or you could end up with no TX buffers..) * ath_rate_sample knows enough about 11n and aggregation to make decent enough rate choices, but it isn't optimal by any means. * Software retransmission of aggregate frames, including doing new rate lookups so frames aren't simply retried at a bad rate. What I'm currently working on: * verifying that AR5212 series NICs haven't been broken by this. If someone has AR5210/AR5211 series PCMCIA hardware that they'd be able to send to me I'll also give them a test and verify I haven't broken them; * fixing TX side hangs; * HT protection support, w/ the AR5416 workarounds as needed; * Filtered-frame support; * More debugging and better behaviour during channel scan / off channel behaviour and during an interface reset. All of that said, it's working for me and it's working for someone else, so if you're interested in trying it out, I'm happy to take bug reports and feedback. But since I'm still actively developing it, please understand if I'm unable to provide you with a lot of personal hand-holding. If you're up for picking some area of the driver (eg porting minstrel_ht rate control, for example) then I'll be very happy to work with you to get it tested and integrated. I'll write up a Wiki page with the current state of the project and some instructions on how to do things like enable debugging, get statistics using athstats/wlanstats, TODO/issue lists and such. If you'd like to try it out, you'll need to grab it from svn://svn.freebsd.org/base/user/adrian/if_ath_tx/ . You'll have to add a few options to your kernel config: options ATH_ENABLE_11N options ATH_DEBUG options AH_DEBUG options ATH_DIAGAPI options IEEE80211_DEBUG .. the latter four are so you can actually use the debug tools. To preempt some questions - no, I have no plans to get this into 9.0-RELEASE. And no, I have no current plans to backport this to 9.X when it's stable and working: * I don't (yet) want to try and maintain two branches - 9.x and -HEAD - during active development (and this is still under active development); * There are some intrusive net80211 changes which need to occur which will break kernel ABIs and I'd to only break the ABI -once- in 9.X. That said, I do my current testing on an older -HEAD install (on the EEEPC) but compile up net80211 + ath + ath_pci as modules. This also requires you to compile up copies of athstats and wlanstats from the if_ath_tx branch in order to get debugging information. I'll post some instructions on how I achieve this as it's quite tricky to get all the correct environment variables setup so things are built correctly. Finally! I'd like to thank Hobnob, Inc. for their generous sponsorship to date! None of this would have happened without their continuing support. I'd also like to thank the ath9k/openwrt developers who have been very helpful in answering questions about how all of this holds together (including Felix Fietkau who I've been pestering incessantly with chipset, 11n and rate control questions - and we've discovered a few bugs in ath9k along the way.) Last and not least! I'd like to thank Atheros/Qualcomm and the dedicated team of (software, hardware) engineers who have been very helpful in providing me with chip documentation and reference driver source code. They've also answered questions about their hardware and helping me trace down bugs. (Yes: I did say "Atheros", "Documentation" and "Reference Driver Source." No, this isn't 2005 any longer. People still seem to think FreeBSD's ath(4) support uses a binary HAL. Go figure.) Enjoy! Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:42:54 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 689C6106566C for ; Wed, 7 Sep 2011 08:42:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f178.google.com (mail-gx0-f178.google.com [209.85.161.178]) by mx1.freebsd.org (Postfix) with ESMTP id 25DBB8FC08 for ; Wed, 7 Sep 2011 08:42:53 +0000 (UTC) Received: by gxk8 with SMTP id 8so5332171gxk.37 for ; Wed, 07 Sep 2011 01:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=t8WDBa2mhQAZ7TN2Jv7GN/4bFTeS/SpBWjOCtQqobdg=; b=AtV2tar8vddKC7y4glp1H6FwNqfyqynE8B4C4wUs+b52BVnFWnroWmcs8xYveBjo06 FRNro4femfTIFg6aD6XI0o+jmjnq++hB9xt1VBQCSlA18z7BUg/Rzp7psRl9Tz1s1e8S 3PX6w4VBc8gJBPr4nqgU1qzWMAk+/lqn5edAs= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr30366791yhl.112.1315384973465; Wed, 07 Sep 2011 01:42:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 01:42:53 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 16:42:53 +0800 X-Google-Sender-Auth: kHyCjdNIVC3apXpL7qJWOnjpv_U Message-ID: From: Adrian Chadd To: Kang Yin Su Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:42:54 -0000 On 7 September 2011 16:02, Kang Yin Su wrote: > Sure, =A0For testing >2 slot, I just comment out the line from ieee80211_= tdma.c > > =A0110://CTASSERT(TDMA_MAXSLOTS =3D=3D 2); And what about these: uint8_t tdma_inuse[1]; /* mask of slots in use */ uint8_t tdma_active[1]; /* mask of active slots */ And: ieee80211_tdma.c:#define TDMA_SLOTCNT_DEFAULT 2 /* 2x (pt-to-pt) */ Did you update these? Ie, the above bitmaps are only 8 slots wide. The above define is used for initialising tdma_slotcnt so you may have overridden it somehow using ifconfig. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:47:49 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 313F8106564A; Wed, 7 Sep 2011 08:47:49 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 95F098FC13; Wed, 7 Sep 2011 08:47:48 +0000 (UTC) Received: by fxe4 with SMTP id 4so511441fxe.13 for ; Wed, 07 Sep 2011 01:47:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.22.14 with SMTP id l14mr223524fab.100.1315385267397; Wed, 07 Sep 2011 01:47:47 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.223.73.202 with HTTP; Wed, 7 Sep 2011 01:47:47 -0700 (PDT) X-Originating-IP: [91.46.214.235] In-Reply-To: References: Date: Wed, 7 Sep 2011 10:47:47 +0200 X-Google-Sender-Auth: PvyPNyzzjxeXKpCcznYfLz97gjM Message-ID: From: Bernhard Schmidt To: kuku kuku Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: intel Centrino 6150 Wireless Card w freebsd8.2 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:47:49 -0000 On Wed, Sep 7, 2011 at 10:00, Adrian Chadd wrote: > On 7 September 2011 15:36, kuku kuku wrote: >> >> Thanks Adrian. >> Any plans on adding support with v9 release. >> >> Background: Our company is changing laptops ( ~30 ) wants to go with asus u46 for price/performance Which model is that exactly? > Hi, > > I don't know of any current plans to port the drivers. Bernhard would > be the best person to know. > If someone would like to step up and do/sponsor the port then I'm sure > it'll get done! As soon as I get my hands on one of those cards I can work on adding support for it. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:52:54 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 846AC106566C; Wed, 7 Sep 2011 08:52:54 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C46548FC08; Wed, 7 Sep 2011 08:52:53 +0000 (UTC) Received: by fxe4 with SMTP id 4so515708fxe.13 for ; Wed, 07 Sep 2011 01:52:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.22.16 with SMTP id l16mr825059fab.62.1315385494303; Wed, 07 Sep 2011 01:51:34 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.223.73.202 with HTTP; Wed, 7 Sep 2011 01:51:34 -0700 (PDT) X-Originating-IP: [91.46.214.235] In-Reply-To: References: <201109062237.00788.jpaetzel@freebsd.org> Date: Wed, 7 Sep 2011 10:51:34 +0200 X-Google-Sender-Auth: ONYf69EiTrVTVtJdwqgOZOD_6jM Message-ID: From: Bernhard Schmidt To: Josh Paetzel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:52:54 -0000 On Wed, Sep 7, 2011 at 07:59, Adrian Chadd wrote: > Hi! > > On 7 September 2011 13:36, Josh Paetzel wrote: >> I run a thinkpad T510 with a: >> >> =A0iwn0: mem 0xf2000000-0xf2001ff= f irq 17 >> at device 0.0 on pci3 > > The last person to touch this was bernhard; I don't know if he has > tinkered with the 6200 stuff though. > >> I brought my laptop home tonight and was getting frequent disconnects he= re as >> well. =A0I have an apple airport extreme (the AP at work is a netgear of= unknown >> model) >> >> I was able to regain a nice stable connection by running ifconfig wlan0 = -ht. > > Would you mind trying this instead: > > ifconfig wlan0 -ampdutx > > Once you've associated (ie, once HT has been enabled), and then run > dhclient and start doing traffic. > I'd like to see if it's a general HT issue or whether it's the TX > aggregation code in iwn that needs tinkering with. > > Thanks, Yeah, please do that. And.. is the network your connecting to even HT/11n capable? -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:53:19 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34C001065670; Wed, 7 Sep 2011 08:53:19 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id D1B2C8FC0A; Wed, 7 Sep 2011 08:53:18 +0000 (UTC) Received: by yib19 with SMTP id 19so5607829yib.13 for ; Wed, 07 Sep 2011 01:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Rh3mrp+O7njzdnDgNF9dEnGWWDa44/EU3nZdc2yl3MU=; b=wcbaYMozD6hvn1wQ7yQdzinOdZ2g1X1J+Zn+qYFy6MrHTRJBjntd3TRoVI+l+aNhUC oKtVVegG/MCXa5q21yM8hbQI53VsUxpKWpmhrpYyons8xVxv/N3BJY/QjHMe5Pikj0+x kuHnyXAvGNcRLBNm3PqkEuo1jdM2FYuSkzp0Y= Received: by 10.150.218.11 with SMTP id q11mr4775778ybg.11.1315385598116; Wed, 07 Sep 2011 01:53:18 -0700 (PDT) MIME-Version: 1.0 Sender: paradyse@gmail.com Received: by 10.150.178.20 with HTTP; Wed, 7 Sep 2011 01:52:58 -0700 (PDT) In-Reply-To: References: From: Kang Yin Su Date: Wed, 7 Sep 2011 16:52:58 +0800 X-Google-Sender-Auth: Lc8_IVOMtQNlRKqc4xG8Og9NMNM Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:53:19 -0000 Right. I didn't change these, 8 slots is enough for my setup and the default slot cnt can override by ifconfig. -Yin On Wed, Sep 7, 2011 at 4:42 PM, Adrian Chadd wrote: > On 7 September 2011 16:02, Kang Yin Su wrote: >> Sure, =A0For testing >2 slot, I just comment out the line from ieee80211= _tdma.c >> >> =A0110://CTASSERT(TDMA_MAXSLOTS =3D=3D 2); > > And what about these: > > =A0 =A0 =A0 =A0uint8_t tdma_inuse[1]; =A0 =A0 =A0 =A0 =A0/* mask of slots= in use */ > =A0 =A0 =A0 =A0uint8_t tdma_active[1]; =A0 =A0 =A0 =A0 /* mask of active = slots */ > > And: > > ieee80211_tdma.c:#define =A0 =A0 =A0 =A0TDMA_SLOTCNT_DEFAULT =A0 =A02 > =A0/* 2x (pt-to-pt) */ > > Did you update these? > > Ie, the above bitmaps are only 8 slots wide. The above define is used > for initialising tdma_slotcnt so you may have overridden it somehow > using ifconfig. > > Thanks, > > > > Adrian > From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:53:59 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE581106566B; Wed, 7 Sep 2011 08:53:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9A21E8FC12; Wed, 7 Sep 2011 08:53:59 +0000 (UTC) Received: by ywa17 with SMTP id 17so1380184ywa.13 for ; Wed, 07 Sep 2011 01:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=vx9trekF4ZHmhp/LkUdzG70bOCJBzBsEO6Jroa6WmTM=; b=Eo96XoJGxYp2aTOW6EGPon85zUF63+Hoj9W6+lDHQ032hBs5aaYrn7w8+bQJ41UYbM bzZFCqmmfxGkER7bWjW9K+1B6IjHiyhDLdVNs6LwF8h6J8LWVcq3hKun8DmYq8hW+xKR oqp+KKC2CYjCM31H62f7dhUD/AUt5ZocA7I28= MIME-Version: 1.0 Received: by 10.236.144.193 with SMTP id n41mr9428047yhj.78.1315385638660; Wed, 07 Sep 2011 01:53:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 01:53:58 -0700 (PDT) In-Reply-To: References: <2b3c94c380656632a4a23cd01391322e@212.203.104.226> Date: Wed, 7 Sep 2011 16:53:58 +0800 X-Google-Sender-Auth: xeeqi6nN9Ql6dsE88cIkb16aLyw Message-ID: From: Adrian Chadd To: Tz-Huan Huang Content-Type: text/plain; charset=ISO-8859-1 Cc: Andreas Tobler , freebsd-wireless@freebsd.org, freebsd-current@freebsd.org Subject: Re: "Intel Centrino Advanced-N + WiMAX 6250" doesn't work X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:54:00 -0000 Hi! Hm, maybe the iwn driver doesn't have the 6250 support? Is it supposed to use 6000/6200 specific calibration (and other routines), or is it using the 5000 routines correctly? Has the card successfully loaded the firmware in? Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 08:57:41 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88BEE1065674 for ; Wed, 7 Sep 2011 08:57:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 45C468FC0C for ; Wed, 7 Sep 2011 08:57:40 +0000 (UTC) Received: by gwb1 with SMTP id 1so4641752gwb.36 for ; Wed, 07 Sep 2011 01:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=rCk6Dy6/yt58Z3F7m2AhK/EaJplmzj/M/YxhQb/ZfTA=; b=GgSDJgIfozcg86AcB+KIHdGdprDxkY1SB6sUDWiFLQzYDOVKCL/qAiH57Kl563tWog XWyL2psMY9A3knXgshjKc3yeP5nObSv2ApzEyTkccyaHiZmualBLoV7/0HKA+giQLzn0 nsTCAqdRKffV8peiA+IfTwUzaeC29b74Y7JSk= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr30456788yhl.112.1315385860502; Wed, 07 Sep 2011 01:57:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 01:57:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 16:57:40 +0800 X-Google-Sender-Auth: DVDBHjFRXLNL2roU7ynyHXpknG0 Message-ID: From: Adrian Chadd To: Kang Yin Su Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 08:57:41 -0000 On 7 September 2011 16:52, Kang Yin Su wrote: > Right. I didn't change these, 8 slots is enough for my setup and the > default slot cnt can override by ifconfig. Ok. Well, it's likely you should've changed the #define to be 8, not 2. Along with TDMA_MAXSLOTS. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 09:05:50 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFFA61065670; Wed, 7 Sep 2011 09:05:50 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 763C78FC1B; Wed, 7 Sep 2011 09:05:50 +0000 (UTC) Received: by yxk36 with SMTP id 36so228181yxk.13 for ; Wed, 07 Sep 2011 02:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=HhZqo6qYdtzWHPKmGwdDd8HqFnWJ1LLINGor6lvgxfE=; b=W6ncX+6XTYu7t0U+i7mm42fD3vNLJAdwqOlcCOJb8hjib0Ywzt76iACqnUFHNoj4pe APGgFWASF7JL3mnzXjFrlICCSeOGufSv9OmZ8P5kVJ+JYVYo05/Bx0YTLK6kDXMyM5z7 X8ggcyKGyn5wNvzIrpSxeTLzor1iVsRP1w9z4= Received: by 10.151.43.8 with SMTP id v8mr4613817ybj.296.1315386349319; Wed, 07 Sep 2011 02:05:49 -0700 (PDT) MIME-Version: 1.0 Sender: paradyse@gmail.com Received: by 10.150.178.20 with HTTP; Wed, 7 Sep 2011 02:05:29 -0700 (PDT) In-Reply-To: References: From: Kang Yin Su Date: Wed, 7 Sep 2011 17:05:29 +0800 X-Google-Sender-Auth: 3utzppyjF2MLtWGv7JmAdtccb2w Message-ID: To: Adrian Chadd Content-Type: multipart/mixed; boundary=00151750d9e617f6ca04ac5640d1 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 09:05:50 -0000 --00151750d9e617f6ca04ac5640d1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Attached is the patch which I modified for more than 2 stations. -Yin On Wed, Sep 7, 2011 at 4:52 PM, Kang Yin Su wrote: > Right. I didn't change these, 8 slots is enough for my setup and the > default slot cnt can override by ifconfig. > > -Yin > > On Wed, Sep 7, 2011 at 4:42 PM, Adrian Chadd wrote: >> On 7 September 2011 16:02, Kang Yin Su wrote: >>> Sure, =A0For testing >2 slot, I just comment out the line from ieee8021= 1_tdma.c >>> >>> =A0110://CTASSERT(TDMA_MAXSLOTS =3D=3D 2); >> >> And what about these: >> >> =A0 =A0 =A0 =A0uint8_t tdma_inuse[1]; =A0 =A0 =A0 =A0 =A0/* mask of slot= s in use */ >> =A0 =A0 =A0 =A0uint8_t tdma_active[1]; =A0 =A0 =A0 =A0 /* mask of active= slots */ >> >> And: >> >> ieee80211_tdma.c:#define =A0 =A0 =A0 =A0TDMA_SLOTCNT_DEFAULT =A0 =A02 >> =A0/* 2x (pt-to-pt) */ >> >> Did you update these? >> >> Ie, the above bitmaps are only 8 slots wide. The above define is used >> for initialising tdma_slotcnt so you may have overridden it somehow >> using ifconfig. >> >> Thanks, >> >> >> >> Adrian >> > --00151750d9e617f6ca04ac5640d1 Content-Type: application/octet-stream; name="tdma_more_slot.patch" Content-Disposition: attachment; filename="tdma_more_slot.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gsa31cqr0 SW5kZXg6IGllZWU4MDIxMV90ZG1hLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gaWVlZTgwMjExX3RkbWEuaAko cmV2aXNpb24gMjI1NDMxKQorKysgaWVlZTgwMjExX3RkbWEuaAkod29ya2luZyBjb3B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YXRlLCBpbnQpOwpAQCAtNDQxLDcgKzQ0MSwxMCBAQAog CQkvKgogCQkgKiBQaWNrIHVub2NjdXBpZWQgc2xvdC4gIE5vdGUgd2UgbmV2ZXIgY2hvb3NlIHNs b3QgMC4KIAkJICovCi0JCWZvciAoc2xvdCA9IHRkbWEtPnRkbWFfc2xvdGNudC0xOyBzbG90ID4g MDsgc2xvdC0tKQorCQkvKiBBc3NpZ24gc2xvdCBieSBvcmRlciwgc2luY2Ugc2xhdmUgc3RhdGlv bnMgbmVlZCB0byBwYXJzZSBiZWFjb24gb2YgZm9ybWVyIHN0YXRpb24gCisJCSAqIHNvIHRoYXQg aXQgY2FuIGJyb2FkY2FzdCBpdHMgb3duIGJlYWNvbi4gU2VlOiA1NjYgKi8KKwkJZm9yIChzbG90 ID0gMTsgc2xvdCA8IHRkbWEtPnRkbWFfc2xvdGNudDsgc2xvdCsrKSB7CisJCS8vZm9yIChzbG90 ID0gdGRtYS0+dGRtYV9zbG90Y250LTE7IHNsb3QgPiAwOyBzbG90LS0pCiAJCQlpZiAoaXNjbHIo dGRtYS0+dGRtYV9pbnVzZSwgc2xvdCkpCiAJCQkJYnJlYWs7CiAJCWlmIChzbG90IDw9IDApIHsK --00151750d9e617f6ca04ac5640d1-- From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 09:06:17 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8821065670; Wed, 7 Sep 2011 09:06:17 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0E57C8FC21; Wed, 7 Sep 2011 09:06:16 +0000 (UTC) Received: by fxe4 with SMTP id 4so526613fxe.13 for ; Wed, 07 Sep 2011 02:06:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.24.21 with SMTP id t21mr3061981fab.24.1315385973459; Wed, 07 Sep 2011 01:59:33 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.223.73.202 with HTTP; Wed, 7 Sep 2011 01:59:33 -0700 (PDT) X-Originating-IP: [91.46.214.235] In-Reply-To: <20110906204242.GP52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> Date: Wed, 7 Sep 2011 10:59:33 +0200 X-Google-Sender-Auth: 6-z4IP5JLTE2Ed_rfG3lMFaLbjY Message-ID: From: Bernhard Schmidt To: Joel Dahl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 09:06:17 -0000 On Tue, Sep 6, 2011 at 22:42, Joel Dahl wrote: > On 05-09-2011 =A09:02, Bernhard Schmidt wrote: >> On Mon, Sep 5, 2011 at 08:24, Joel Dahl wrote: >> > On 05-09-2011 =A05:09, Adrian Chadd wrote: >> >> On 5 September 2011 01:04, Joel Dahl wrote: >> >> > Hi, >> >> > >> >> > I upgraded my laptop from BETA1 to rev. 225367 today, and now my la= ptop panics just a few minutes after booting. This is 100% reproducible, it= panics every time. >> >> > >> >> > I've got a pic with the backtrace here: http://www.vnode.se/sc/pani= c_20110904.jpg >> >> >> >> Hi, >> >> >> >> There weren't many commits between BETA1 and -HEAD in the wireless >> >> area; would you please do a binary search of the kernel revisions (no >> >> need to do full buildworlds) to find which commit broke it? >> > >> > Yes, I'll do that tonight. >> >> While doing so, can you enable at least some debugging? >> wlandebug +state >> or even better >> wlandebug 0xffffffff >> >> It smells like that something is poking the SW bmiss handler while not >> in RUN state and therefore you're hitting a KASSERT(). Question is if >> the bmiss timer isn't stopped/drained somewhere or if there is too >> excessive call. > > Exactly what in the wlandebug output are you looking for? =A0I've posted = a pic > at http://www.vnode.se/sc/panic_20110906.jpg showing what it looks like r= ight > before the panic. =A0This is with "wlandebug 0xffffffff". Thanks, so, looks like it is scanning while the panic happens. At that point it should actually never ever care about beacon misses.. this is strange, really. Can you try to comment out the call to ieee80211_beacon_miss() on line 2936 in if_iwn.c? If the panic no longer happens the issue is somewhere in the conditions before that call. > I've also installed kernels all the way back to revision 222980, but they= all > panic, which I think is somewhat odd. I think this is an issue related to iwn(4), which had its last commit prior to that. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 09:20:52 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 167D21065677 for ; Wed, 7 Sep 2011 09:20:52 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7B0AD8FC2C for ; Wed, 7 Sep 2011 09:20:51 +0000 (UTC) Received: by fxe4 with SMTP id 4so538765fxe.13 for ; Wed, 07 Sep 2011 02:20:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.22.16 with SMTP id l16mr860732fab.62.1315387250456; Wed, 07 Sep 2011 02:20:50 -0700 (PDT) Received: by 10.223.73.202 with HTTP; Wed, 7 Sep 2011 02:20:50 -0700 (PDT) X-Originating-IP: [91.46.214.235] In-Reply-To: References: Date: Wed, 7 Sep 2011 11:20:50 +0200 Message-ID: From: Bernhard Schmidt To: Tz-Huan Huang Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, freebsd-wireless@freebsd.org Subject: Re: "Intel Centrino Advanced-N + WiMAX 6250" doesn't work X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 09:20:55 -0000 On Wed, Sep 7, 2011 at 09:39, Tz-Huan Huang wrote: > On Wed, Sep 7, 2011 at 14:10, Tz-Huan Huang wrote: >> Hi, >> >> I have a lenovo X201s with a "Intel Centrino Advanced-N + WiMAX 6250" bu= ndled. >> The device seems recognized as iwn0 correctly but it just doesn't work. >> The command "ifconfig wlan0 up scan" return immediately and nothing show= ed. >> >> Is the device not supported, or do I miss something? >> Any suggestion is welcome, thanks. >> >> Here is some information: >> >> $ uname -a >> FreeBSD bud 9.0-BETA2 FreeBSD 9.0-BETA2 #2: Tue Sep =A06 16:50:09 CST >> 2011 =A0 =A0 root@bud:/usr/obj/usr/src/sys/BUD =A0amd64 >> >> dmesg -a: >> http://www.csie.ntu.edu.tw/~b90093/tmp/dmesg.txt >> >> rc.conf: >> http://www.csie.ntu.edu.tw/~b90093/tmp/rc.conf >> >> kldstat -v >> http://www.csie.ntu.edu.tw/~b90093/tmp/kldstat.txt > > When loading acpi_ibm, I got more error information: > > $ kldload acpi_ibm > acpi_ibm0: on acpi0 > $ ifconfig wlan0 up > iwn0: iwn5000_send_calibration: could not send calibration result, error = 22 > iwn0: iwn_init_locked: could not initialize hardware, error 22 Can you do sysctl dev.iwn.0.debug=3D0xffffffff before doing ifconfig wlan0 up? I'm curious on which result it can't send to the firmware. --=20 Bernhard From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 09:44:46 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 701FB1065673 for ; Wed, 7 Sep 2011 09:44:46 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id C291A8FC17 for ; Wed, 7 Sep 2011 09:44:45 +0000 (UTC) Received: from vhoffman.lon.namesco.net (lon.namesco.net [195.7.254.102]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id p879iiCN063021 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 7 Sep 2011 10:44:44 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4E673D0C.7040504@unsane.co.uk> Date: Wed, 07 Sep 2011 10:44:44 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [ANNOUNCE] 802.11n TX aggregation support for Atheros 11n NICs X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 09:44:46 -0000 On 07/09/2011 09:40, Adrian Chadd wrote: > Hi all, > > I apologise up front for the cross-posting. Please redirect all future > queries about this to freebsd-wireless@freebsd.org. > > I guess the cat is out of the bag (and it hasn't killed anyone yet.) > For the last 6 or so months, the if_ath driver and net80211 802.11n > support has been updated to (hopefully) be usable, both in station and > hostap modes. > Users could use ath(4) in -HEAD as an 11n station or hostap by just > disabling ampdutx. I've been doing that successfully for a few months > now at home, with respectable (> 200mbit UDP, ~ 100mbit TCP) > throughput in the receive direction (as AMPDU RX now works well.) > > Through the gracious sponsorship of Hobnob, Inc., (and the completion > of my bachelors degree in something completely unrelated to all of > this!) I've dived in head-first into the 802.11n TX aggregation > support. > > As I type this, I have an EEEPC 701 w/ an AR9280 currently spitting > out a 130mbit/sec TCP stream to a Ubiquiti Routerstation Pro MIPS > board w/ an AR9160 (5ghz HT/40/shortgi mode.) They're both running > FreeBSD. > > A user asked about the state of this code on the -wireless list a > couple days ago and has reported that his AR5416 based NIC is happily > performing much the same way. So, since it's passed my "works for > someone who isn't me!" test, I've decided to make a wider > announcement. > > There's still a -lot- to do. Specifically (this isn't an exhaustive list): > > * There are locking issues with ath/net80211 which need to be resolved > before this is merged back into -HEAD. > * There's currently no support for HT RTS/CTS frame protection. I can > add it easily enough, but I first have to add the AR5416 workarounds > (8k limitation on RTS protected frames) before I can do that. > * The AMPDU code is currently not sending BAR frames. This requires a > little more fore-thought and net80211 reorganisation before they can > be queued and sent. > * Don't try to do a UDP iperf test before you establish AMPDU, or > you'll fill the hardware TX queue with UDP frames and then end up with > no frames available to send the ADDBA management frames. Oops! :) > * The rate control module (sample) supports 11n and some basic TX > aggregation stuff, but it isn't optimal. It's only "good enough" for > me to not have to care about rate control causing large issues. > Something needs to be done before it's merged into -HEAD - either a > replacement needs to be written, or minstrel_ht needs to be ported. > * There's no hardware power saving support in place at the moment. > This means it'll draw a lot of power in station mode. > * There's no MIMO PS support. Same caveat as the above. > * adhoc, ahdemo, TDMA and IBSS modes likely won't work just yet. I'm > not likely to begin looking at those until all the net80211 and ath > driver changes are in place and tested. > * I haven't yet added "filtered frames" support, so there's going to > be a lot of packet loss in hostap mode when a station decides to go > into power-saving or off-channel mode (eg to do a scan). > * There are still (very) occasional TX-side hangs which I'm seeing. > I'm trying to get to the bottom of this. > * I've not tested this -at all- on multi-CPU/multi-core setups, > primarily because I don't run freebsd+wifi on anything like that just > yet. > * net80211 AMPDU TX is based on QoS/WME Access Category (AC) numbers, > rather than the full set of available TIDs. This is likely going to > need to change (and the ieee80211 superg support tested/updated) > before this can be merged into -HEAD as I've been told it's quite > valid to expect multiple aggregation sessions in the same AC. > > What does work (what have I tested): > > * HT/20 and HT/40 support; > * 2 and 5ghz support; > * station and and hostap modes; > * AR5416/AR5418, AR9160, AR9280 chipsets. I haven't tested AR9285 or AR9287 yet; > * HT/20 and HT/40 interoperability support - ie, a HT/40 AP can have > HT/20 and HT/40 nodes associated. 11a/11bg nodes can also associate > but the current lack of HT frame protection is likely to cause > significant interference; > * ADDBA negotiation (with the above caveat that buffer management > needs to be tidied up in my codebase, or you could end up with no TX > buffers..) > * ath_rate_sample knows enough about 11n and aggregation to make > decent enough rate choices, but it isn't optimal by any means. > * Software retransmission of aggregate frames, including doing new > rate lookups so frames aren't simply retried at a bad rate. > > What I'm currently working on: > > * verifying that AR5212 series NICs haven't been broken by this. If > someone has AR5210/AR5211 series PCMCIA hardware that they'd be able > to send to me I'll also give them a test and verify I haven't broken > them; > * fixing TX side hangs; > * HT protection support, w/ the AR5416 workarounds as needed; > * Filtered-frame support; > * More debugging and better behaviour during channel scan / off > channel behaviour and during an interface reset. > > All of that said, it's working for me and it's working for someone > else, so if you're interested in trying it out, I'm happy to take bug > reports and feedback. But since I'm still actively developing it, > please understand if I'm unable to provide you with a lot of personal > hand-holding. If you're up for picking some area of the driver (eg > porting minstrel_ht rate control, for example) then I'll be very happy > to work with you to get it tested and integrated. > > I'll write up a Wiki page with the current state of the project and > some instructions on how to do things like enable debugging, get > statistics using athstats/wlanstats, TODO/issue lists and such. > > If you'd like to try it out, you'll need to grab it from > svn://svn.freebsd.org/base/user/adrian/if_ath_tx/ . You'll have to add > a few options to your kernel config: > > options ATH_ENABLE_11N > options ATH_DEBUG > options AH_DEBUG > options ATH_DIAGAPI > options IEEE80211_DEBUG > > .. the latter four are so you can actually use the debug tools. > > To preempt some questions - no, I have no plans to get this into > 9.0-RELEASE. And no, I have no current plans to backport this to 9.X > when it's stable and working: > > * I don't (yet) want to try and maintain two branches - 9.x and -HEAD > - during active development (and this is still under active > development); > * There are some intrusive net80211 changes which need to occur which > will break kernel ABIs and I'd to only break the ABI -once- in 9.X. > > That said, I do my current testing on an older -HEAD install (on the > EEEPC) but compile up net80211 + ath + ath_pci as modules. This also > requires you to compile up copies of athstats and wlanstats from the > if_ath_tx branch in order to get debugging information. I'll post some > instructions on how I achieve this as it's quite tricky to get all the > correct environment variables setup so things are built correctly. > > Finally! I'd like to thank Hobnob, Inc. for their generous sponsorship > to date! None of this would have happened without their continuing > support. > I'd also like to thank the ath9k/openwrt developers who have been very > helpful in answering questions about how all of this holds together > (including Felix Fietkau who I've been pestering incessantly with > chipset, 11n and rate control questions - and we've discovered a few > bugs in ath9k along the way.) > > Last and not least! I'd like to thank Atheros/Qualcomm and the > dedicated team of (software, hardware) engineers who have been very > helpful in providing me with chip documentation and reference driver > source code. They've also answered questions about their hardware and > helping me trace down bugs. > > (Yes: I did say "Atheros", "Documentation" and "Reference Driver > Source." No, this isn't 2005 any longer. People still seem to think > FreeBSD's ath(4) support uses a binary HAL. Go figure.) > > > Enjoy! > > > Adrian Just because there usually seems to be silence after you announce yet more updates and advances and as a happy user of some of these advances (albeit under 8.2 so I wont get them all yet.) Thanks for stepping up, taking on and advancing the ath driver as much as you have and are planning to. Its much appreciated. Vince > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 09:57:37 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83D161065686 for ; Wed, 7 Sep 2011 09:57:37 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 56BE28FC0C for ; Wed, 7 Sep 2011 09:57:37 +0000 (UTC) Received: by pzk33 with SMTP id 33so18003072pzk.18 for ; Wed, 07 Sep 2011 02:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OQRNF4lZi5tJbUC4qsSobgzi/Kwf2pt++38heD5pzmo=; b=ekYOsDF6CyMMiZbzHpgLpLUXzK26J4ddpelewDIFPyIPRXbq2EV2jCV6uxvaIBIXp9 fa6kaa9AIwOdeiNvQCJJioLy3I+xlAnnxaRfRvEKqMt5/cXHpJ1wP2RSCR/PGTPdadjR vBN+XnE8mav0TfxbqJbd3VNfgeZY3DnEtaXJs= MIME-Version: 1.0 Received: by 10.68.4.105 with SMTP id j9mr10538064pbj.72.1315389456852; Wed, 07 Sep 2011 02:57:36 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Wed, 7 Sep 2011 02:57:36 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 11:57:36 +0200 Message-ID: From: Berislav Purgar To: Kang Yin Su Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 09:57:37 -0000 On Wed, Sep 7, 2011 at 11:05 AM, Kang Yin Su wrote: > Attached is the patch which I modified for more than 2 stations. -Yin > > On Wed, Sep 7, 2011 at 4:52 PM, Kang Yin Su wrote: > > Right. I didn't change these, 8 slots is enough for my setup and the > > default slot cnt can override by ifconfig. > > > > -Yin > > > > On Wed, Sep 7, 2011 at 4:42 PM, Adrian Chadd wrote: > >> On 7 September 2011 16:02, Kang Yin Su wrote: > >>> Sure, For testing >2 slot, I just comment out the line from > ieee80211_tdma.c > >>> > >>> 110://CTASSERT(TDMA_MAXSLOTS == 2); > >> > >> And what about these: > >> > >> uint8_t tdma_inuse[1]; /* mask of slots in use */ > >> uint8_t tdma_active[1]; /* mask of active slots */ > >> > >> And: > >> > >> ieee80211_tdma.c:#define TDMA_SLOTCNT_DEFAULT 2 > >> /* 2x (pt-to-pt) */ > >> > >> Did you update these? > >> > >> Ie, the above bitmaps are only 8 slots wide. The above define is used > >> for initialising tdma_slotcnt so you may have overridden it somehow > >> using ifconfig. > >> > >> Thanks, > >> > >> > >> > >> Adrian > >> > > > Hi .. after applaying this patch i got error when compiling kernel : /usr/src/sys/net80211/ieee80211_tdma.c: In function 'tdma_update': /usr/src/sys/net80211/ieee80211_tdma.c:517: error: invalid storage class for function 'tdma_process_params' cc1: warnings being treated as errors /usr/src/sys/net80211/ieee80211_tdma.c:517: warning: no previous prototype for 'tdma_process_params' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:624: warning: no previous prototype for 'ieee80211_tdma_getslot' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:637: warning: no previous prototype for 'ieee80211_parse_tdma' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:668: warning: no previous prototype for 'ieee80211_add_tdma' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:709: warning: no previous prototype for 'ieee80211_tdma_update_beacon' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:742: error: invalid storage class for function 'tdma_ioctl_get80211' /usr/src/sys/net80211/ieee80211_tdma.c:742: warning: no previous prototype for 'tdma_ioctl_get80211' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:766: error: initializer element is not computable at load time /usr/src/sys/net80211/ieee80211_tdma.c:770: error: invalid storage class for function 'tdma_ioctl_set80211' /usr/src/sys/net80211/ieee80211_tdma.c:770: warning: no previous prototype for 'tdma_ioctl_set80211' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:823: error: initializer element is not computable at load time /usr/src/sys/net80211/ieee80211_tdma.c:823: error: expected declaration or statement at end of input *** Error code 1 Beri From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 10:06:05 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58FD0106566B for ; Wed, 7 Sep 2011 10:06:05 +0000 (UTC) (envelope-from paradyse@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0C9DE8FC08 for ; Wed, 7 Sep 2011 10:06:04 +0000 (UTC) Received: by yib19 with SMTP id 19so5659921yib.13 for ; Wed, 07 Sep 2011 03:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=BG/1lPIsOneUvsDnQvP9BP/DdXetO0kEnOLu8gEo0gw=; b=BMvke1dmsPS3rZe2hrTrehq2J+0OkIMO6K/dShV3ERCttRIwIMXmvQVMG6eOKzWrWo GOLbs9fafMB2BqA+E8YkxhclNXuZlH3BWouhGvWp0AT8VP5RJZmJxvuL8WG10QOtRTaY abY0mUIQ3rAIJ85PZQ5uQiAprTjCqZkFB9Jqc= Received: by 10.150.31.20 with SMTP id e20mr4678721ybe.239.1315389964166; Wed, 07 Sep 2011 03:06:04 -0700 (PDT) MIME-Version: 1.0 Sender: paradyse@gmail.com Received: by 10.150.178.20 with HTTP; Wed, 7 Sep 2011 03:05:44 -0700 (PDT) In-Reply-To: References: From: Kang Yin Su Date: Wed, 7 Sep 2011 18:05:44 +0800 X-Google-Sender-Auth: -Nr4ajEMyzwL6AmNwrWWpPlj8DA Message-ID: To: Berislav Purgar Content-Type: multipart/mixed; boundary=000e0cd358968e27ae04ac571768 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 10:06:05 -0000 --000e0cd358968e27ae04ac571768 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Try this. Yin On Wed, Sep 7, 2011 at 5:57 PM, Berislav Purgar wrote: > > > On Wed, Sep 7, 2011 at 11:05 AM, Kang Yin Su wrote: >> >> Attached is the patch which I modified for more than 2 stations. -Yin >> >> On Wed, Sep 7, 2011 at 4:52 PM, Kang Yin Su wrote: >> > Right. I didn't change these, 8 slots is enough for my setup and the >> > default slot cnt can override by ifconfig. >> > >> > -Yin >> > >> > On Wed, Sep 7, 2011 at 4:42 PM, Adrian Chadd wrot= e: >> >> On 7 September 2011 16:02, Kang Yin Su wrote: >> >>> Sure, =A0For testing >2 slot, I just comment out the line from >> >>> ieee80211_tdma.c >> >>> >> >>> =A0110://CTASSERT(TDMA_MAXSLOTS =3D=3D 2); >> >> >> >> And what about these: >> >> >> >> =A0 =A0 =A0 =A0uint8_t tdma_inuse[1]; =A0 =A0 =A0 =A0 =A0/* mask of s= lots in use */ >> >> =A0 =A0 =A0 =A0uint8_t tdma_active[1]; =A0 =A0 =A0 =A0 /* mask of act= ive slots */ >> >> >> >> And: >> >> >> >> ieee80211_tdma.c:#define =A0 =A0 =A0 =A0TDMA_SLOTCNT_DEFAULT =A0 =A02 >> >> =A0/* 2x (pt-to-pt) */ >> >> >> >> Did you update these? >> >> >> >> Ie, the above bitmaps are only 8 slots wide. The above define is used >> >> for initialising tdma_slotcnt so you may have overridden it somehow >> >> using ifconfig. >> >> >> >> Thanks, >> >> >> >> >> >> >> >> Adrian >> >> >> > > > Hi .. > > after applaying this patch i got error when compiling kernel : > /usr/src/sys/net80211/ieee80211_tdma.c: In function 'tdma_update': > /usr/src/sys/net80211/ieee80211_tdma.c:517: error: invalid storage class = for > function 'tdma_process_params' > cc1: warnings being treated as errors > /usr/src/sys/net80211/ieee80211_tdma.c:517: warning: no previous prototyp= e > for 'tdma_process_params' [-Wmissing-prototypes] > /usr/src/sys/net80211/ieee80211_tdma.c:624: warning: no previous prototyp= e > for 'ieee80211_tdma_getslot' [-Wmissing-prototypes] > /usr/src/sys/net80211/ieee80211_tdma.c:637: warning: no previous prototyp= e > for 'ieee80211_parse_tdma' [-Wmissing-prototypes] > /usr/src/sys/net80211/ieee80211_tdma.c:668: warning: no previous prototyp= e > for 'ieee80211_add_tdma' [-Wmissing-prototypes] > /usr/src/sys/net80211/ieee80211_tdma.c:709: warning: no previous prototyp= e > for 'ieee80211_tdma_update_beacon' [-Wmissing-prototypes] > /usr/src/sys/net80211/ieee80211_tdma.c:742: error: invalid storage class = for > function 'tdma_ioctl_get80211' > /usr/src/sys/net80211/ieee80211_tdma.c:742: warning: no previous prototyp= e > for 'tdma_ioctl_get80211' [-Wmissing-prototypes] > /usr/src/sys/net80211/ieee80211_tdma.c:766: error: initializer element is > not computable at load time > /usr/src/sys/net80211/ieee80211_tdma.c:770: error: invalid storage class = for > function 'tdma_ioctl_set80211' > /usr/src/sys/net80211/ieee80211_tdma.c:770: warning: no previous prototyp= e > for 'tdma_ioctl_set80211' [-Wmissing-prototypes] > /usr/src/sys/net80211/ieee80211_tdma.c:823: error: initializer element is > not computable at load time > /usr/src/sys/net80211/ieee80211_tdma.c:823: error: expected declaration o= r > statement at end of input > *** Error code 1 > > Beri > > --000e0cd358968e27ae04ac571768 Content-Type: application/octet-stream; name="tdma_more_slot2.patch" Content-Disposition: attachment; filename="tdma_more_slot2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gsa576gz0 SW5kZXg6IGllZWU4MDIxMV90ZG1hLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gaWVlZTgwMjExX3RkbWEuaAko cmV2aXNpb24gMjI1NDMzKQorKysgaWVlZTgwMjExX3RkbWEuaAkod29ya2luZyBjb3B5KQpAQCAt MzYsOCArMzYsOCBAQAogI2RlZmluZQlURE1BX1ZFUlNJT05fVjIJCTIKICNkZWZpbmUJVERNQV9W RVJTSU9OCQlURE1BX1ZFUlNJT05fVjIKIAotLyogTkI6IHdlIG9ubHkgc3VwcG9ydCAyIHJpZ2h0 IG5vdyBidXQgcHJvdG9jb2wgaGFuZGxlcyB1cCB0byA4ICovCi0jZGVmaW5lCVRETUFfTUFYU0xP VFMJCTIJLyogbWF4IHNsb3RzL3N0YSdzICovCisvKiBOQjogd2Ugb25seSBzdXBwb3J0IDggcmln aHQgbm93IGJ1dCBwcm90b2NvbCBoYW5kbGVzIHVwIHRvIDggKi8KKyNkZWZpbmUJVERNQV9NQVhT TE9UUwkJOAkvKiBtYXggc2xvdHMvc3RhJ3MgKi8KIAogI2RlZmluZQlURE1BX1BBUkFNX0xFTl9W MglzaXplb2Yoc3RydWN0IGllZWU4MDIxMV90ZG1hX3BhcmFtKQogCkluZGV4OiBpZWVlODAyMTFf dGRtYS5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT0KLS0tIGllZWU4MDIxMV90ZG1hLmMJKHJldmlzaW9uIDIyNTQzMykK KysrIGllZWU4MDIxMV90ZG1hLmMJKHdvcmtpbmcgY29weSkKQEAgLTEwNyw3ICsxMDcsNyBAQAog LyoKICAqIFRoaXMgY29kZSBpcyBub3QgcHJlcGFyZWQgdG8gaGFuZGxlIG1vcmUgdGhhbiAyIHNs b3RzLgogICovCi1DVEFTU0VSVChURE1BX01BWFNMT1RTID09IDIpOworLy9DVEFTU0VSVChURE1B X01BWFNMT1RTID09IDIpOwogCiBzdGF0aWMgdm9pZCB0ZG1hX3ZkZXRhY2goc3RydWN0IGllZWU4 MDIxMXZhcCAqdmFwKTsKIHN0YXRpYyBpbnQgdGRtYV9uZXdzdGF0ZShzdHJ1Y3QgaWVlZTgwMjEx dmFwICosIGVudW0gaWVlZTgwMjExX3N0YXRlLCBpbnQpOwpAQCAtNDQxLDcgKzQ0MSwxMCBAQAog CQkvKgogCQkgKiBQaWNrIHVub2NjdXBpZWQgc2xvdC4gIE5vdGUgd2UgbmV2ZXIgY2hvb3NlIHNs b3QgMC4KIAkJICovCi0JCWZvciAoc2xvdCA9IHRkbWEtPnRkbWFfc2xvdGNudC0xOyBzbG90ID4g MDsgc2xvdC0tKQorCQkvKiBBc3NpZ24gc2xvdCBieSBvcmRlciwgc2luY2Ugc2xhdmUgc3RhdGlv bnMgbmVlZCB0byBwYXJzZSBiZWFjb24gb2YgZm9ybWVyIHN0YXRpb24gCisJCSAqIHNvIHRoYXQg aXQgY2FuIGJyb2FkY2FzdCBpdHMgb3duIGJlYWNvbi4gU2VlOiA1NjYgKi8KKwkJZm9yIChzbG90 ID0gMTsgc2xvdCA8IHRkbWEtPnRkbWFfc2xvdGNudDsgc2xvdCsrKQorCQkvL2ZvciAoc2xvdCA9 IHRkbWEtPnRkbWFfc2xvdGNudC0xOyBzbG90ID4gMDsgc2xvdC0tKQogCQkJaWYgKGlzY2xyKHRk bWEtPnRkbWFfaW51c2UsIHNsb3QpKQogCQkJCWJyZWFrOwogCQlpZiAoc2xvdCA8PSAwKSB7Cg== --000e0cd358968e27ae04ac571768-- From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 10:53:31 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3213106566C; Wed, 7 Sep 2011 10:53:31 +0000 (UTC) (envelope-from joel@vnode.se) Received: from mail.vnode.se (mail.vnode.se [62.119.52.80]) by mx1.freebsd.org (Postfix) with ESMTP id 82D048FC17; Wed, 7 Sep 2011 10:53:31 +0000 (UTC) Received: from mail.vnode.se (localhost [127.0.0.1]) by mail.vnode.se (Postfix) with ESMTP id 285A3E3F07A; Wed, 7 Sep 2011 12:53:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at vnode.se Received: from mail.vnode.se ([127.0.0.1]) by mail.vnode.se (mail.vnode.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id INWisrjNIM9f; Wed, 7 Sep 2011 12:53:27 +0200 (CEST) Received: from goofy03.vnode.local (wg.benders.se [212.247.52.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.vnode.se (Postfix) with ESMTPSA id 12224E3F079; Wed, 7 Sep 2011 12:53:27 +0200 (CEST) Date: Wed, 7 Sep 2011 12:53:25 +0200 From: Joel Dahl To: Bernhard Schmidt Message-ID: <20110907105325.GQ52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 10:53:31 -0000 On 07-09-2011 10:59, Bernhard Schmidt wrote: > On Tue, Sep 6, 2011 at 22:42, Joel Dahl wrote: > > On 05-09-2011  9:02, Bernhard Schmidt wrote: > >> On Mon, Sep 5, 2011 at 08:24, Joel Dahl wrote: > >> > On 05-09-2011  5:09, Adrian Chadd wrote: > >> >> On 5 September 2011 01:04, Joel Dahl wrote: > >> >> > Hi, > >> >> > > >> >> > I upgraded my laptop from BETA1 to rev. 225367 today, and now my laptop panics just a few minutes after booting. This is 100% reproducible, it panics every time. > >> >> > > >> >> > I've got a pic with the backtrace here: http://www.vnode.se/sc/panic_20110904.jpg > >> >> > >> >> Hi, > >> >> > >> >> There weren't many commits between BETA1 and -HEAD in the wireless > >> >> area; would you please do a binary search of the kernel revisions (no > >> >> need to do full buildworlds) to find which commit broke it? > >> > > >> > Yes, I'll do that tonight. > >> > >> While doing so, can you enable at least some debugging? > >> wlandebug +state > >> or even better > >> wlandebug 0xffffffff > >> > >> It smells like that something is poking the SW bmiss handler while not > >> in RUN state and therefore you're hitting a KASSERT(). Question is if > >> the bmiss timer isn't stopped/drained somewhere or if there is too > >> excessive call. > > > > Exactly what in the wlandebug output are you looking for?  I've posted a pic > > at http://www.vnode.se/sc/panic_20110906.jpg showing what it looks like right > > before the panic.  This is with "wlandebug 0xffffffff". > > Thanks, so, looks like it is scanning while the panic happens. At that > point it should actually never ever care about beacon misses.. this is > strange, really. > > Can you try to comment out the call to ieee80211_beacon_miss() on line > 2936 in if_iwn.c? If the panic no longer happens the issue is > somewhere in the conditions before that call. Hm, this is with bwn(4), not iwn(4). :) -- Joel From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 10:59:23 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 962BA106566B; Wed, 7 Sep 2011 10:59:23 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 051C38FC0C; Wed, 7 Sep 2011 10:59:22 +0000 (UTC) Received: by fxe4 with SMTP id 4so622223fxe.13 for ; Wed, 07 Sep 2011 03:59:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.4.133 with SMTP id 5mr139114far.81.1315393161842; Wed, 07 Sep 2011 03:59:21 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.223.73.202 with HTTP; Wed, 7 Sep 2011 03:59:21 -0700 (PDT) X-Originating-IP: [91.46.214.235] In-Reply-To: <20110907105325.GQ52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> <20110907105325.GQ52426@goofy03.vnode.local> Date: Wed, 7 Sep 2011 12:59:21 +0200 X-Google-Sender-Auth: a25jVI6sPyo5qgPXp5J63t2dYE0 Message-ID: From: Bernhard Schmidt To: Joel Dahl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, current@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 10:59:23 -0000 On Wed, Sep 7, 2011 at 12:53, Joel Dahl wrote: > On 07-09-2011 10:59, Bernhard Schmidt wrote: >> On Tue, Sep 6, 2011 at 22:42, Joel Dahl wrote: >> > On 05-09-2011 =A09:02, Bernhard Schmidt wrote: >> >> On Mon, Sep 5, 2011 at 08:24, Joel Dahl wrote: >> >> > On 05-09-2011 =A05:09, Adrian Chadd wrote: >> >> >> On 5 September 2011 01:04, Joel Dahl wrote: >> >> >> > Hi, >> >> >> > >> >> >> > I upgraded my laptop from BETA1 to rev. 225367 today, and now my= laptop panics just a few minutes after booting. This is 100% reproducible,= it panics every time. >> >> >> > >> >> >> > I've got a pic with the backtrace here: http://www.vnode.se/sc/p= anic_20110904.jpg >> >> >> >> >> >> Hi, >> >> >> >> >> >> There weren't many commits between BETA1 and -HEAD in the wireless >> >> >> area; would you please do a binary search of the kernel revisions = (no >> >> >> need to do full buildworlds) to find which commit broke it? >> >> > >> >> > Yes, I'll do that tonight. >> >> >> >> While doing so, can you enable at least some debugging? >> >> wlandebug +state >> >> or even better >> >> wlandebug 0xffffffff >> >> >> >> It smells like that something is poking the SW bmiss handler while no= t >> >> in RUN state and therefore you're hitting a KASSERT(). Question is if >> >> the bmiss timer isn't stopped/drained somewhere or if there is too >> >> excessive call. >> > >> > Exactly what in the wlandebug output are you looking for? =A0I've post= ed a pic >> > at http://www.vnode.se/sc/panic_20110906.jpg showing what it looks lik= e right >> > before the panic. =A0This is with "wlandebug 0xffffffff". >> >> Thanks, so, looks like it is scanning while the panic happens. At that >> point it should actually never ever care about beacon misses.. this is >> strange, really. >> >> Can you try to comment out the call to ieee80211_beacon_miss() on line >> 2936 in if_iwn.c? If the panic no longer happens the issue is >> somewhere in the conditions before that call. > > Hm, this is with bwn(4), not iwn(4). :) Uhm.. right, I'm sorry, missed that Still.. two options, remove IEEE80211_FEXT_SWBMISS or try with ifconfig wlan0 -bgscan -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 13:19:50 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 875311065676; Wed, 7 Sep 2011 13:19:50 +0000 (UTC) (envelope-from tzhuan@gmail.com) Received: from mail-vw0-f50.google.com (mail-vw0-f50.google.com [209.85.212.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1BB558FC16; Wed, 7 Sep 2011 13:19:49 +0000 (UTC) Received: by vws14 with SMTP id 14so7152800vws.37 for ; Wed, 07 Sep 2011 06:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=QMOsV39freXHwsWoUBT6xk4uQNOQG9ViTj4Ac+iGyKY=; b=eletdO+JRxtB87j5pj72LdlhQBPWvRTj83PXYhqzdDypM5yJj1jrAaVTZ7dsqjABqI GMg7w20kty0z01MQ2/cEgqHHd+REeLsYl4CKkmNxWvzsZ9o5wzfaMO/+OsGl00n+G0Oo 2d/z+MRDqWq3X7d8+OvIxKIu/IaPWhk1GemM4= Received: by 10.52.96.193 with SMTP id du1mr56551vdb.206.1315401589544; Wed, 07 Sep 2011 06:19:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.161.234 with HTTP; Wed, 7 Sep 2011 06:19:29 -0700 (PDT) In-Reply-To: References: <2b3c94c380656632a4a23cd01391322e@212.203.104.226> From: Tz-Huan Huang Date: Wed, 7 Sep 2011 21:19:29 +0800 Message-ID: To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: Andreas Tobler , freebsd-wireless@freebsd.org, freebsd-current@freebsd.org Subject: Re: "Intel Centrino Advanced-N + WiMAX 6250" doesn't work X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 13:19:50 -0000 On Wed, Sep 7, 2011 at 16:53, Adrian Chadd wrote: > Hi! > > Hm, maybe the iwn driver doesn't have the 6250 support? Is it supposed > to use 6000/6200 specific calibration (and other routines), or is it > using the 5000 routines correctly? > Has the card successfully loaded the firmware in? I'm not sure is the 6250 supported or not because the iwn(4) says nothing about it, but it seems be supported according to these pages: http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers http://forums.freebsd.org/showthread.php?t=19839 Thanks, Tz-Huan From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 13:26:08 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F121106566C for ; Wed, 7 Sep 2011 13:26:08 +0000 (UTC) (envelope-from tzhuan@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0D49E8FC18 for ; Wed, 7 Sep 2011 13:26:07 +0000 (UTC) Received: by vxh11 with SMTP id 11so943550vxh.13 for ; Wed, 07 Sep 2011 06:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=i0IhfQ2nmH4yzc5DQ86iZd9QmxSymczifxw3P9Q53QQ=; b=PgOiw9F4MxQmOpmyltoTj63r8NJydd3vbpa99jFOeRP4ezsYJ2m2rxppZgM4GXhQdp DMYl+SVIMWphNCE3LzuJWQvEvPtjUYWl2iYT2ZNou5graqE3mZPwaHgMc3go1lTiB8ot BDRs/+P4nolo4kttnAeO0WUPXZyYtU6KCDkOM= Received: by 10.52.73.42 with SMTP id i10mr1985403vdv.5.1315400265185; Wed, 07 Sep 2011 05:57:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.161.234 with HTTP; Wed, 7 Sep 2011 05:57:25 -0700 (PDT) In-Reply-To: References: From: Tz-Huan Huang Date: Wed, 7 Sep 2011 20:57:25 +0800 Message-ID: To: Bernhard Schmidt Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, freebsd-wireless@freebsd.org Subject: Re: "Intel Centrino Advanced-N + WiMAX 6250" doesn't work X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 13:26:08 -0000 On Wed, Sep 7, 2011 at 17:20, Bernhard Schmidt wro= te: > On Wed, Sep 7, 2011 at 09:39, Tz-Huan Huang wrote: >> On Wed, Sep 7, 2011 at 14:10, Tz-Huan Huang wrote: >>> >>> $ uname -a >>> FreeBSD bud 9.0-BETA2 FreeBSD 9.0-BETA2 #2: Tue Sep =C2=A06 16:50:09 CS= T >>> 2011 =C2=A0 =C2=A0 root@bud:/usr/obj/usr/src/sys/BUD =C2=A0amd64 >>> >>> dmesg -a: >>> http://www.csie.ntu.edu.tw/~b90093/tmp/dmesg.txt >>> >>> rc.conf: >>> http://www.csie.ntu.edu.tw/~b90093/tmp/rc.conf >>> >>> kldstat -v >>> http://www.csie.ntu.edu.tw/~b90093/tmp/kldstat.txt >> >> When loading acpi_ibm, I got more error information: >> >> $ kldload acpi_ibm >> acpi_ibm0: on acpi0 >> $ ifconfig wlan0 up >> iwn0: iwn5000_send_calibration: could not send calibration result, error= 22 >> iwn0: iwn_init_locked: could not initialize hardware, error 22 > > Can you do > sysctl dev.iwn.0.debug=3D0xffffffff > before doing > ifconfig wlan0 up? > > I'm curious on which result it can't send to the firmware. Sure, here are the error messages: http://www.csie.ntu.edu.tw/~b90093/tmp/iwn-debug.txt Thanks, Tz-Huan From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 14:42:16 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AC621065673; Wed, 7 Sep 2011 14:42:16 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id 23EF88FC0C; Wed, 7 Sep 2011 14:42:15 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id C1FE92A17F; Wed, 7 Sep 2011 10:27:12 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 07 Sep 2011 10:27:12 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:from :subject:date:to; s=smtpout; bh=vyyuLb7jinxB6a4wrI/QIAlCUDM=; b= X8scI8SqXF+CsKu8gvA6OwCnYnVj/Jv25zR/6STHA2tMM0QbJ8I/3oiFR7rQpEBP x43NdD7FyGyjmnBMo8Bzn+5mcfYKeFgaWHopdqn9Gy25FK1DjOLPEWo2rB1/3wSO g7hOa5YyUiKDaelNphU2tMCeATfjB85c4qVJL/zAqMo= X-Sasl-enc: 929ta/lUg+amTFGI8fsN720N33QYKPboJG70qDftVCNG 1315405632 Received: from [10.10.1.128] (unknown [216.139.7.151]) by mail.messagingengine.com (Postfix) with ESMTPSA id 7B5DFA00436; Wed, 7 Sep 2011 10:27:12 -0400 (EDT) References: <201109062237.00788.jpaetzel@freebsd.org> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8K2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> X-Mailer: iPhone Mail (8K2) From: Josh Paetzel Date: Wed, 7 Sep 2011 07:27:05 -0700 To: Bernhard Schmidt Cc: Josh Paetzel , "freebsd-wireless@freebsd.org" Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 14:42:16 -0000 On Sep 7, 2011, at 1:51 AM, Bernhard Schmidt wrote: > On Wed, Sep 7, 2011 at 07:59, Adrian Chadd wrote: >> Hi! >>=20 >> On 7 September 2011 13:36, Josh Paetzel wrote: >>> I run a thinkpad T510 with a: >>>=20 >>> iwn0: mem 0xf2000000-0xf2001fff i= rq 17 >>> at device 0.0 on pci3 >>=20 >> The last person to touch this was bernhard; I don't know if he has >> tinkered with the 6200 stuff though. >>=20 >>> I brought my laptop home tonight and was getting frequent disconnects he= re as >>> well. I have an apple airport extreme (the AP at work is a netgear of u= nknown >>> model) >>>=20 >>> I was able to regain a nice stable connection by running ifconfig wlan0 -= ht. >>=20 >> Would you mind trying this instead: >>=20 >> ifconfig wlan0 -ampdutx >>=20 >> Once you've associated (ie, once HT has been enabled), and then run >> dhclient and start doing traffic. >> I'd like to see if it's a general HT issue or whether it's the TX >> aggregation code in iwn that needs tinkering with. >>=20 >> Thanks, >=20 > Yeah, please do that. And.. is the network your connecting to even > HT/11n capable? >=20 > -- > Bernhard I'm unsure how to check that to be honest. The old wireless router at work w= as a/b/g only. Everyone was experiencing drops to it though, and it complete= ly lost it's mind this weekend and had to be replaced. My WAP at home is an a= irport extreme. It is n capable, I don't know enough about wireless to say i= f it's HT capable. The new WAP at work is a pretty high end netgear. I'll ch= eck the model as soon as I get there and try what was suggested.=20 Thanks, Josh= From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 14:55:57 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EFF31065672; Wed, 7 Sep 2011 14:55:57 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id CD3218FC14; Wed, 7 Sep 2011 14:55:56 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com (192.168.222.22) by WTL-EXCH-1.sandvine.com (192.168.196.31) with Microsoft SMTP Server id 14.0.694.0; Wed, 7 Sep 2011 10:45:09 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id 51B1D33C02; Wed, 7 Sep 2011 10:45:09 -0400 (EDT) Date: Wed, 7 Sep 2011 10:45:09 -0400 From: Ed Maste To: Joel Dahl Message-ID: <20110907144509.GA93951@sandvine.com> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> <20110907105325.GQ52426@goofy03.vnode.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20110907105325.GQ52426@goofy03.vnode.local> User-Agent: Mutt/1.4.2.1i Cc: freebsd-wireless@freebsd.org, Bernhard Schmidt Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 14:55:57 -0000 On Wed, Sep 07, 2011 at 12:53:25PM +0200, Joel Dahl wrote: > > Can you try to comment out the call to ieee80211_beacon_miss() on line > > 2936 in if_iwn.c? If the panic no longer happens the issue is > > somewhere in the conditions before that call. > > Hm, this is with bwn(4), not iwn(4). :) For what it's worth, I've seen the same panic on occasion with a rum(4) adapter. Currently running r225223 + some minor local changes. Console log: wlan0: link state changed to DOWN panic: wrong state 1 cpuid = 0 KDB: stack backtrace: db_trace_self_wrapper(c0f2d577,4,c0f2b58b,8cd,0,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0f78b11,0,c0f48baf,c5611be4,0,...) at kdb_backtrace+0x2a panic(c0f48baf,1,49e5a776,4ae2b5f2,c0b2e830,...) at panic+0x117 ieee80211_swbmiss(c65f2000,0,c0f2aafa,216,c5611c24,...) at ieee80211_swbmiss+0x28 softclock(c10e5440,c10f2080,4,c0f27640,c598aa38,...) at softclock+0x29b intr_event_execute_handlers(c59bc588,c598aa00,c0f23ac4,55e,c59be5c0,...) at intr_event_execute_handlers+0x125 ithread_loop(c5a027f0,c5611d28,c0f23730,3f9,c59bc588,...) at ithread_loop+0xa9 fork_exit(c09fc930,c5a027f0,c5611d28) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc5611d60, ebp = 0 --- From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 15:15:32 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA7D81065670; Wed, 7 Sep 2011 15:15:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7CEA78FC19; Wed, 7 Sep 2011 15:15:32 +0000 (UTC) Received: by yxk36 with SMTP id 36so562592yxk.13 for ; Wed, 07 Sep 2011 08:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=r5rBM+uRkVuQl44axwi4eLW83akK4UicZzrXz+e3ZaQ=; b=GBlx7kPu1BoVlU97e2n/1rtwvPZROPCtmLrgWt7Nxl9luXusBFubb5wordUiO03Nl0 w5wEVo9kK0kQur7Lm4jFr3mtcXi++37l7bvCM0fvAyA7B9snRXckb+vaEyLV+q5ewfe2 u2fXtsFYj+y7ElejDQ9qYreQkLnIZkkhb32PY= MIME-Version: 1.0 Received: by 10.236.144.193 with SMTP id n41mr11948335yhj.78.1315408531739; Wed, 07 Sep 2011 08:15:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 08:15:31 -0700 (PDT) In-Reply-To: <20110907144509.GA93951@sandvine.com> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> <20110907105325.GQ52426@goofy03.vnode.local> <20110907144509.GA93951@sandvine.com> Date: Wed, 7 Sep 2011 23:15:31 +0800 X-Google-Sender-Auth: b9Z_2Kx9CwQMQ7qFKbGnO8G8Nvk Message-ID: From: Adrian Chadd To: Ed Maste Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Bernhard Schmidt , freebsd-wireless@freebsd.org, Joel Dahl Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 15:15:33 -0000 On 7 September 2011 22:45, Ed Maste wrote: >> Hm, this is with bwn(4), not iwn(4). :) > > For what it's worth, I've seen the same panic on occasion with a rum(4) > adapter. =A0Currently running r225223 + some minor local changes. Hm. > Console log: > > wlan0: link state changed to DOWN > panic: wrong state 1 > cpuid =3D 0 > KDB: stack backtrace: > db_trace_self_wrapper(c0f2d577,4,c0f2b58b,8cd,0,...) at db_trace_self_wra= pper+0x26 > kdb_backtrace(c0f78b11,0,c0f48baf,c5611be4,0,...) at kdb_backtrace+0x2a > panic(c0f48baf,1,49e5a776,4ae2b5f2,c0b2e830,...) at panic+0x117 > ieee80211_swbmiss(c65f2000,0,c0f2aafa,216,c5611c24,...) at ieee80211_swbm= iss+0x28 > softclock(c10e5440,c10f2080,4,c0f27640,c598aa38,...) at softclock+0x29b > intr_event_execute_handlers(c59bc588,c598aa00,c0f23ac4,55e,c59be5c0,...) = at intr_event_execute_handlers+0x125 > ithread_loop(c5a027f0,c5611d28,c0f23730,3f9,c59bc588,...) at ithread_loop= +0xa9 > fork_exit(c09fc930,c5a027f0,c5611d28) at fork_exit+0xb8 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip =3D 0, esp =3D 0xc5611d60, ebp =3D 0 --- That's the timer firing. The reason this doesn't appear on if_ath is likely because IEEE80211_FEXT_SWBMISS isn't set, but it is for bwn and run. Perhaps the callout should be reset/disabled on the state change away from = RUN? Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 15:37:52 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 573DB106566B for ; Wed, 7 Sep 2011 15:37:52 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id ECCB98FC18 for ; Wed, 7 Sep 2011 15:37:51 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 48CCB4AC58 for ; Wed, 7 Sep 2011 19:37:50 +0400 (MSD) Date: Wed, 7 Sep 2011 19:37:47 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <663133681.20110907193747@serebryakov.spb.ru> To: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 15:37:52 -0000 Hello, Freebsd-wireless. I return to experiments with my AP (FreeBSD based) again. I don't attach new (802.11n-capable) card yet, as I cannot buy U.FL->RP-SMA pigtails locally, but now I have two notebooks -- old Vayo and "new" MacBook with KisMAC installed. I've checked theory (by Bernhard Schmidt), that my AP is TOO powerful: set Vaio to run "iperf" forever, and monitor situation with MacBook (KisMAC). iperf output (each 2 seconds) looks like this: [ 3] 70.0-72.0 sec 1.00 MBytes 4.19 Mbits/sec [ 3] 72.0-74.0 sec 1.12 MBytes 4.72 Mbits/sec [ 3] 74.0-76.0 sec 1.25 MBytes 5.24 Mbits/sec [ 3] 76.0-78.0 sec 1.00 MBytes 4.19 Mbits/sec [ 3] 78.0-80.0 sec 1.12 MBytes 4.72 Mbits/sec ifconfig wlan0 list sta looks like ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG 00:18:de:08:e8:1d 2 9 11M 17.0 0 64411 15648 EPS AQE RSN W= ME 00:18:de:08:e8:1d 2 9 11M 18.0 0 64844 19088 EPS AQE RSN W= ME 00:18:de:08:e8:1d 2 9 11M 17.0 0 65283 22560 EPS AQE RSN W= ME 00:18:de:08:e8:1d 2 9 11M 17.5 0 169 25904 EPS AQE RSN W= ME 00:18:de:08:e8:1d 2 9 11M 16.5 0 668 29856 EPS AQE RSN W= ME 00:18:de:08:e8:1d 2 9 11M 17.0 0 1120 33440 EPS AQE RSN W= ME KisMAC (with Macbook placed near to Vaio) shows oscillation of signal powe= r from 40 no 0 back and forth, more "0" than "40" with average about 37. I don't know, is these zeroes meaningful, or it is result of channel hopping. I've tried to set "txpower" from 1 to 30 (1, 5, 10, 15, 30) and wait for 1 minute between settings. NOTHING CHANGES AT ALL. It seems, that txpower doesn't work on my hardware :( My next experiment is to boot 9.0-BETA1 on my AP. Hardware is: Senao EMP 8602 Plus-S Mini-PCI WiFi card. It is Atheros 5413 based 600mW card: ath0: mem 0xa0060000-0xa006ffff irq 15 at device 17.0 on pci0 ath0: [ITHREAD] ath0: AR5413 mac 10.4 RF5413 phy 6.1 10dBi omni antenna. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 16:04:09 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38B2B106566C for ; Wed, 7 Sep 2011 16:04:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id EF0E98FC0A for ; Wed, 7 Sep 2011 16:04:08 +0000 (UTC) Received: by yxk36 with SMTP id 36so614875yxk.13 for ; Wed, 07 Sep 2011 09:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1LttYzNAJ1+yysMp31JFBlqfUYvyMOmPl9Wm14NQhcg=; b=RQ+CXRuex31yPzek0QvuasX8Kv+WVFySnwRSok0hXB4QwUqKvRIsEyn9z2ynuxlJPj DG93ydNAwLSc/I5ZpuzYqyq9Pjwlv6r5ao5iKOV6qDlq1YmJf+jKgUd2hAG9jW/k8gwT HH9CdXSfHKt78d7vGccpbq5SrACn0fktbn8A4= MIME-Version: 1.0 Received: by 10.236.191.101 with SMTP id f65mr33594723yhn.61.1315411448447; Wed, 07 Sep 2011 09:04:08 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 09:03:57 -0700 (PDT) In-Reply-To: <663133681.20110907193747@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 00:03:57 +0800 X-Google-Sender-Auth: 35jAaCXjUYSRnpNXy7PW2fPf-bE Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:04:09 -0000 Hi, Well. Let's begin by looking at the code (in sys/dev/ath/ath_hal/ar5212) and see what TX power parameters are programmed in. The function is ar5212_xmit.c:ar5212SetTransmitPower(). The registers you need to care about are the ones set in there. You can use athpeek to find out what's going on: cynthia:ar5212 adrian$ fgrep AR_PHY_POWER *h ar5212phy.h:#define AR_PHY_POWER_TX_RATE1 0x9934 ar5212phy.h:#define AR_PHY_POWER_TX_RATE2 0x9938 ar5212phy.h:#define AR_PHY_POWER_TX_RATE_MAX 0x993c ar5212phy.h:#define AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE 0x00000040 ar5212phy.h:#define AR_PHY_POWER_TX_RATE3 0xA234 ar5212phy.h:#define AR_PHY_POWER_TX_RATE4 0xA238 then: athpeek 0x9934 athpeek 0x9938 athpeek 0x993c athpeek 0xa234 athpeek 0xa238 The RATE1 to RATE4 registers should change as you change the interface TX power. If they don't, we've got a problem. Each register is broken up into 4 8 bit fields, each containing a 6 bit tx power value in 0.5 dBm. (ie a value of 10 == 5 dBm.) There's some code in the AR5212 HAL to handle EEPROM TX power offsets; it's possible that it's causing some issues here. Also, make sure you don't have TPC enabled. (sysctl dev.ath.0.tpc). I'd love to sit down and try to get TPC working, but I lack all the test kit required. Good luck! Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 16:04:17 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45B9D106564A for ; Wed, 7 Sep 2011 16:04:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 079168FC14 for ; Wed, 7 Sep 2011 16:04:16 +0000 (UTC) Received: by mail-yx0-f182.google.com with SMTP id 36so614875yxk.13 for ; Wed, 07 Sep 2011 09:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1LttYzNAJ1+yysMp31JFBlqfUYvyMOmPl9Wm14NQhcg=; b=RQ+CXRuex31yPzek0QvuasX8Kv+WVFySnwRSok0hXB4QwUqKvRIsEyn9z2ynuxlJPj DG93ydNAwLSc/I5ZpuzYqyq9Pjwlv6r5ao5iKOV6qDlq1YmJf+jKgUd2hAG9jW/k8gwT HH9CdXSfHKt78d7vGccpbq5SrACn0fktbn8A4= MIME-Version: 1.0 Received: by 10.236.144.193 with SMTP id n41mr12312488yhj.78.1315411437457; Wed, 07 Sep 2011 09:03:57 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 09:03:57 -0700 (PDT) In-Reply-To: <663133681.20110907193747@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 00:03:57 +0800 X-Google-Sender-Auth: 35jAaCXjUYSRnpNXy7PW2fPf-bE Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:04:17 -0000 Hi, Well. Let's begin by looking at the code (in sys/dev/ath/ath_hal/ar5212) and see what TX power parameters are programmed in. The function is ar5212_xmit.c:ar5212SetTransmitPower(). The registers you need to care about are the ones set in there. You can use athpeek to find out what's going on: cynthia:ar5212 adrian$ fgrep AR_PHY_POWER *h ar5212phy.h:#define AR_PHY_POWER_TX_RATE1 0x9934 ar5212phy.h:#define AR_PHY_POWER_TX_RATE2 0x9938 ar5212phy.h:#define AR_PHY_POWER_TX_RATE_MAX 0x993c ar5212phy.h:#define AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE 0x00000040 ar5212phy.h:#define AR_PHY_POWER_TX_RATE3 0xA234 ar5212phy.h:#define AR_PHY_POWER_TX_RATE4 0xA238 then: athpeek 0x9934 athpeek 0x9938 athpeek 0x993c athpeek 0xa234 athpeek 0xa238 The RATE1 to RATE4 registers should change as you change the interface TX power. If they don't, we've got a problem. Each register is broken up into 4 8 bit fields, each containing a 6 bit tx power value in 0.5 dBm. (ie a value of 10 == 5 dBm.) There's some code in the AR5212 HAL to handle EEPROM TX power offsets; it's possible that it's causing some issues here. Also, make sure you don't have TPC enabled. (sysctl dev.ath.0.tpc). I'd love to sit down and try to get TPC working, but I lack all the test kit required. Good luck! Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 16:07:56 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDDE4106564A for ; Wed, 7 Sep 2011 16:07:56 +0000 (UTC) (envelope-from jpaetzel@freebsd.org) Received: from mail.iXsystems.com (newknight.ixsystems.com [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id 9A1D28FC08 for ; Wed, 7 Sep 2011 16:07:56 +0000 (UTC) Received: from mail.ixsystems.com (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id 2FD05A66407; Wed, 7 Sep 2011 09:07:56 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by mail.ixsystems.com (mail.ixsystems.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 52555-04; Wed, 7 Sep 2011 09:07:56 -0700 (PDT) Received: from roadrash.tccbug.org (kruse-147.3.ixsystems.com [10.2.3.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTPSA id 0AF8AA66400; Wed, 7 Sep 2011 09:07:56 -0700 (PDT) From: Josh Paetzel Organization: FreeBSD To: Bernhard Schmidt Date: Wed, 7 Sep 2011 09:07:50 -0700 User-Agent: KMail/1.13.7 (FreeBSD/9.0-BETA1; KDE/4.6.5; amd64; ; ) References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> In-Reply-To: <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1694395.c15QBRdODB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201109070907.55652.jpaetzel@freebsd.org> Cc: "freebsd-wireless@freebsd.org" Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:07:56 -0000 --nextPart1694395.c15QBRdODB Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Wednesday 07 September 2011 07:27:05 Josh Paetzel wrote: > ifconfig wlan0 -ampdutx I've been associated to the wireless at work for about 30 minutes using thi= s=20 parameter with no drops. I'd say this has fixed it, as the drops I was=20 getting yesterday were every minutes or so and basically made it unusable. =2D-=20 Thanks, Josh Paetzel =46reeBSD -- The power to serve --nextPart1694395.c15QBRdODB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAABAgAGBQJOZ5bbAAoJEKFq1/n1feG2lGgH/0oXsPFnJURRKuKGMGc2fGZm Rr2bOEPGWroEQnaSzIj6v6OC07IixisPAMZyomlQlPYkNTOy0uvpizk6HB/flSoz xacH9A3xKYK7tPnm1AWMZJcWqSsbHUj/ED44fqaqTBOHIKSLBTEDrl72xUpmo6ER RceDQtEjzuozMnaCcwGLw8IzEYzQotGIgk22kb0+HRAOWj/Ic/3l7TdAycwsceN6 SMT6IiarqssWwTWXWIQaipR+y7DrPvHmK40BcKPwvgYbITphNkDjaMO83NGEtQp+ IEodqJDslm12FwZ3HXXHHlC2fIXuNIBz3ZNuJrbdwqXWyMA33oZuXbUaHTXiaXY= =8+xi -----END PGP SIGNATURE----- --nextPart1694395.c15QBRdODB-- From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 16:10:16 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76D19106566B; Wed, 7 Sep 2011 16:10:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 11C308FC0C; Wed, 7 Sep 2011 16:10:15 +0000 (UTC) Received: by yib19 with SMTP id 19so6007183yib.13 for ; Wed, 07 Sep 2011 09:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=t6+reiJJTl7zuweK5mKZkXpx5rioFJ5sYPVw792ShIc=; b=PwYaiupM8hcNZB2fjLz57+fyoLJf5ttxtSJ1azlQ982R42CnSif0P4Fb/XtKGBhKb5 VYwLg3XO91ec4GOUKL6lBpf7XjbKxoozkc3GeVmUPgyIEScix2TdDFHHOR86YqRjquEL gjE3uvYVFW5qvo+PPApmdn3RTe18vusofyHNI= MIME-Version: 1.0 Received: by 10.236.200.137 with SMTP id z9mr33231278yhn.27.1315411815283; Wed, 07 Sep 2011 09:10:15 -0700 (PDT) Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 09:10:15 -0700 (PDT) In-Reply-To: <201109070907.55652.jpaetzel@freebsd.org> References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> Date: Thu, 8 Sep 2011 00:10:15 +0800 Message-ID: From: Adrian Chadd To: Josh Paetzel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" , Bernhard Schmidt Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:10:16 -0000 On 8 September 2011 00:07, Josh Paetzel wrote: > On Wednesday 07 September 2011 07:27:05 Josh Paetzel wrote: >> ifconfig wlan0 -ampdutx > > I've been associated to the wireless at work for about 30 minutes using t= his > parameter with no drops. =A0I'd say this has fixed it, as the drops I was > getting yesterday were every minutes or so and basically made it unusable= . Cool. Bernhard, didn't you mention the ampdu TX bitmap stuff needed some surgery in if_iwn? Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 16:25:47 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A91D11065673; Wed, 7 Sep 2011 16:25:47 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6F0898FC15; Wed, 7 Sep 2011 16:25:47 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 2DB1F4AC58; Wed, 7 Sep 2011 20:25:46 +0400 (MSD) Date: Wed, 7 Sep 2011 20:25:43 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <51710011.20110907202543@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:25:47 -0000 Hello, Adrian. You wrote 7 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 20:03:57: > then: > athpeek 0x9934 > athpeek 0x9938 > athpeek 0x993c > athpeek 0xa234 > athpeek 0xa238 Do you mean athpoke or athregs? I don't see `athpeek' in src/toosl/tools/ath And both these tools complain like this: gateway# ./athpoke -i ath0 0x9934 athpoke: ath0: Invalid argument gateway# > Also, make sure you don't have TPC enabled. (sysctl dev.ath.0.tpc). > I'd love to sit down and try to get TPC working, but I lack all the > test kit required. gateway# sysctl dev.ath.0.tpc dev.ath.0.tpc: 0 gateway# --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 16:32:37 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BACE1065672 for ; Wed, 7 Sep 2011 16:32:37 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id CF5538FC0C for ; Wed, 7 Sep 2011 16:32:36 +0000 (UTC) Received: by ywa17 with SMTP id 17so412719ywa.13 for ; Wed, 07 Sep 2011 09:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3XdAGiKf9ISifT2Sm0Q+Vb+piGY2lIfGDpCbLgkTMBI=; b=HGj/pxZ/kX6ZGRfI6O0BwUfwJg7n51uS49r5W3kB6sec3PxIy8+PNfQxIQyW0ovN7k QeXGYP7KQ0TywjErLKxJOYSJNuglIujLcBPr1G05iAsg2Kq5W85fgEP61qHsjQIWf3fD O8ZJW9/9WA/zvQ0uLQjADLu9myBZVkgv3ZPwU= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr33589521yhl.112.1315413156284; Wed, 07 Sep 2011 09:32:36 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 09:32:36 -0700 (PDT) In-Reply-To: <51710011.20110907202543@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <51710011.20110907202543@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 00:32:36 +0800 X-Google-Sender-Auth: 4jz8_YJMVXyNewE4HwclbcYtqw4 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:32:37 -0000 2011/9/8 Lev Serebryakov : > Hello, Adrian. > You wrote 7 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 20:03:57: > >> then: >> athpeek 0x9934 >> athpeek 0x9938 >> athpeek 0x993c >> athpeek 0xa234 >> athpeek 0xa238 > =9ADo you mean athpoke or athregs? I don't see `athpeek' in > src/toosl/tools/ath athpoke =3D=3D athpeek. Just make/make install ;it'll create a symlink. > > =9AAnd both these tools complain like this: > > gateway# ./athpoke -i ath0 0x9934 > athpoke: ath0: Invalid argument You need to add: options ATH_DIAGAPI (and you should add ATH_DEBUG and AH_DEBUG.) Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 17:48:07 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CA74106564A; Wed, 7 Sep 2011 17:48:07 +0000 (UTC) (envelope-from joel@vnode.se) Received: from mail.vnode.se (mail.vnode.se [62.119.52.80]) by mx1.freebsd.org (Postfix) with ESMTP id DCD888FC0A; Wed, 7 Sep 2011 17:48:06 +0000 (UTC) Received: from mail.vnode.se (localhost [127.0.0.1]) by mail.vnode.se (Postfix) with ESMTP id 7009AE3F07A; Wed, 7 Sep 2011 19:48:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at vnode.se Received: from mail.vnode.se ([127.0.0.1]) by mail.vnode.se (mail.vnode.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O-egj--DaODJ; Wed, 7 Sep 2011 19:47:58 +0200 (CEST) Received: from goofy03.vnode.local (wg.benders.se [212.247.52.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.vnode.se (Postfix) with ESMTPSA id 9D2AEE3F079; Wed, 7 Sep 2011 19:47:57 +0200 (CEST) Date: Wed, 7 Sep 2011 19:47:55 +0200 From: Joel Dahl To: Bernhard Schmidt Message-ID: <20110907174755.GR52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> <20110907105325.GQ52426@goofy03.vnode.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-wireless@freebsd.org, weongyo@freebsd.org Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 17:48:07 -0000 On 07-09-2011 12:59, Bernhard Schmidt wrote: > On Wed, Sep 7, 2011 at 12:53, Joel Dahl wrote: > > > > Hm, this is with bwn(4), not iwn(4). :) > > Uhm.. right, I'm sorry, missed that > > Still.. two options, remove IEEE80211_FEXT_SWBMISS or try with > ifconfig wlan0 -bgscan I commented out IEEE80211_FEXT_SWBMISS (line 1075) from if_bwn.c and rebuilt the kernel and now the machine has been running for 2 hours without any panics. Without this patch it usually panics within a few minutes or even seconds after I boot and log in. However, something weird is definitely going on. I've seen these messages about "RF switch changed to ON/OFF" before but I just ignored them. Now they seem to have become more frequent and the wireless actually stops working now and then when it switches to OFF, but not always... -- Joel From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 17:54:24 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D922106564A; Wed, 7 Sep 2011 17:54:24 +0000 (UTC) (envelope-from geoff@apro.com.au) Received: from mail.ricksure.com.au (mail.ricksure.com.au [203.98.89.150]) by mx1.freebsd.org (Postfix) with ESMTP id BD5848FC15; Wed, 7 Sep 2011 17:54:23 +0000 (UTC) Received: from 171.78.233.220.static.exetel.com.au [220.233.78.171] by mail.ricksure.com.au with SMTP; Thu, 8 Sep 2011 03:54:08 +1000 From: Geoff Roberts Organization: Australian Projects To: Adrian Chadd Date: Thu, 8 Sep 2011 03:54:10 +1000 User-Agent: KMail/1.13.5 (Linux/2.6.32-33-generic; KDE/4.4.5; x86_64; ; ) References: <201108290134.50561.geoff@apro.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201109080354.10765.geoff@apro.com.au> X-Declude-Sender: geoff@apro.com.au [220.233.78.171] X-Declude-Spoolname: 40813086.eml X-Declude-RefID: X-Declude-Note: Scanned by Declude 4.6.35 "http://www.declude.com/x-note.htm" X-Declude-Scan: Outgoing Score [0] at 03:54:10 on 08 Sep 2011 X-Declude-Tests: Whitelisted X-Country-Chain: X-Declude-Code: 0 X-Declude-Recipcount: 2 Organization: Declude, Inc. X-Helo: ubuntutest-01.localnet X-RevDNS: Cc: freebsd-wireless@freebsd.org Subject: Re: SPAM-LOW: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: geoff@apro.com.au List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 17:54:24 -0000 Hi Adria, On Mon, 5 Sep 2011 08:27:19 am Adrian Chadd wrote: > Hi, have you had a chance to try your system with < 4G ram? I found a 2GB memory stick. Unfortunately it did not make a difference - all of the following CD bootab= le=20 systems froze at the ath initialisation: a) 8.0 R i386 b) 8.1 R i386 c) 8.2 R i386 d) 9.0 Beta 2 amd64 I also tried with AHCI disable and the same result. Kind regards, Geoff =2D-=20 ___________________________________ =46rom the desk of Geoff Roberts Chief Technology Officer AUSTRALIAN PROJECTS PTY LIMITED S A F E K N O W L E D G E IT Security - Data Protection Email: support@apro.com.au NATIONAL HELP DESK SUPPORT Sydney 02 4231 4222 Melbourne 03 9017 8222 Adelaide 08 6461 6222 Perth 08 8463 1222 Brisbane 07 3137 1555 Hobart 03 6281 2555 Canberra 02 6112 8855 ___________________________________ From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 19:52:53 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C280A1065679; Wed, 7 Sep 2011 19:52:53 +0000 (UTC) (envelope-from lev@freebsd.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 619738FC0C; Wed, 7 Sep 2011 19:52:53 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 9A50B4AC31; Wed, 7 Sep 2011 23:52:51 +0400 (MSD) Date: Wed, 7 Sep 2011 23:52:48 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <437702009.20110907235248@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 19:52:53 -0000 Hello, Adrian. You wrote 7 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 20:03:57: > athpeek 0x9934 > athpeek 0x9938 > athpeek 0x993c > athpeek 0xa234 > athpeek 0xa238 Ok, I have proper kernel now. 8.2-STABLE about two hours long. Here is result: gateway# ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ...[] privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs gateway# ./athpoke 0x9934 0x9938 0x993c 0xa234 0xa238 0x9934 =3D 24242424 0x9938 =3D 1c1e2024 0x993c =3D 0000003f 0xa234 =3D 26262426 0xa238 =3D 26262626 gateway# ifconfig wlan0 txpower 15 gateway# ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ...[] privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 15 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs gateway# ./athpoke 0x9934 0x9938 0x993c 0xa234 0xa238 0x9934 =3D 1e1e1e1e 0x9938 =3D 1c1e1e1e 0x993c =3D 0000003f 0xa234 =3D 1e1e1e1e 0xa238 =3D 1e1e1e1e gateway# ifconfig wlan0 txpower 1 gateway# ./athpoke 0x9934 0x9938 0x993c 0xa234 0xa238 0x9934 =3D 02020202 0x9938 =3D 02020202 0x993c =3D 0000003f 0xa234 =3D 02020202 0xa238 =3D 02020202 gateway# ifconfig wlan0 txpower 30 gateway# ./athpoke 0x9934 0x9938 0x993c 0xa234 0xa238 0x9934 =3D 24242424 0x9938 =3D 1c1e2024 0x993c =3D 0000003f 0xa234 =3D 26262426 0xa238 =3D 26262626 It seems, registers are Ok. But clients don't see any difference! Maybe, it is because my Senao card is "powerful" one, with additional schematic (and power supply) to boost signal? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 01:24:22 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD5FF106564A for ; Thu, 8 Sep 2011 01:24:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f179.google.com (mail-gx0-f179.google.com [209.85.161.179]) by mx1.freebsd.org (Postfix) with ESMTP id 6A03B8FC16 for ; Thu, 8 Sep 2011 01:24:22 +0000 (UTC) Received: by gxk1 with SMTP id 1so552438gxk.10 for ; Wed, 07 Sep 2011 18:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=nEFwSD5NFeBbiLrHN9wURDZUQXxGEt7+T2qKYA6DOGg=; b=xePQjDVrT27kcXpM6j0yiKnPwU282FMj5KO4+K03AwP4q5OiQVqLlO/C2hwxXabNTi Bj3KVKX459/oMYFG4XLFcONnfCzqVWJYpXH5fvP0SIJulrxwLbd/eE2p5faaBxonUfWg kr/4+t0Y/hVRI7615hZTiDvnTk8aFAiVQAYZQ= MIME-Version: 1.0 Received: by 10.236.191.101 with SMTP id f65mr427221yhn.61.1315445061813; Wed, 07 Sep 2011 18:24:21 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 18:24:21 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Sep 2011 09:24:21 +0800 X-Google-Sender-Auth: pfRLGeBzYk5_u1FNy4kcTmDYrxs Message-ID: From: Adrian Chadd To: Yin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] Fix TBTT, TSF handling for TDMA on AR5416 and later chips X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 01:24:22 -0000 On 7 September 2011 12:48, Yin wrote: > My apologize. My last build does not pick up ath_hal code. Your patch > is working fine. Please commit it. -Yin Hi Yin! That's been committed in r225444. Would you mind verifying what's going on? I'll see about acquiring some more LS-SR71 boards and AR9160 NICs to throw on them. Then I can properly test mesh/TDMA on the 11n NICs. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 04:02:29 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F6BE106564A; Thu, 8 Sep 2011 04:02:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 3968C8FC08; Thu, 8 Sep 2011 04:02:28 +0000 (UTC) Received: by gwb1 with SMTP id 1so487356gwb.36 for ; Wed, 07 Sep 2011 21:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QeAI4rosuSo198uOtEQwxu6H/X7gXLQBGgGvCtZfJs4=; b=gPNZMWy8wQsQ9haSagnXJM2tuxWBq/e4Ls1hFr8eHGBd796fx47Wee9epYKpiMUPd+ /qkgcxnd7WIv36XlNaSnVGzKYOrQmUTztIk1qmH4APYI3cTkqEUcK/ZRcrXyrbukqWW1 K9Uu1cWLPjBD+yyMJDw1k6IVpr+Jm94nX0sdw= MIME-Version: 1.0 Received: by 10.236.191.101 with SMTP id f65mr1036650yhn.61.1315454548507; Wed, 07 Sep 2011 21:02:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 21:02:28 -0700 (PDT) In-Reply-To: <437702009.20110907235248@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 12:02:28 +0800 X-Google-Sender-Auth: MykhVgpoTwnWy0rsnn1eM9Hv2Hc Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 04:02:29 -0000 2011/9/8 Lev Serebryakov : > gateway# ./athpoke 0x9934 0x9938 0x993c 0xa234 0xa238 > 0x9934 =3D 1e1e1e1e > 0x9938 =3D 1c1e1e1e > 0x993c =3D 0000003f > 0xa234 =3D 1e1e1e1e > 0xa238 =3D 1e1e1e1e > gateway# ifconfig wlan0 txpower 1 > gateway# ./athpoke 0x9934 0x9938 0x993c 0xa234 0xa238 > 0x9934 =3D 02020202 > 0x9938 =3D 02020202 > 0x993c =3D 0000003f > 0xa234 =3D 02020202 > 0xa238 =3D 02020202 > gateway# ifconfig wlan0 txpower 30 > gateway# ./athpoke 0x9934 0x9938 0x993c 0xa234 0xa238 > 0x9934 =3D 24242424 > 0x9938 =3D 1c1e2024 > 0x993c =3D 0000003f > 0xa234 =3D 26262426 > 0xa238 =3D 26262626 These look fine, but I don't have as much experience with the ar5212 series stuff as I do with the AR5416+ series stuff. > =A0It seems, registers are Ok. But clients don't see any difference! > Maybe, it is because my Senao card is "powerful" one, with additional > schematic (and power supply) to boost signal? Hm. Well, how far away are they? You can do a bit of math to see what changes the TX power on the sender side would have on the receiver signal level. Have you ever looked at doing up a free space loss model to predict what the signal level(s) should be? Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 04:09:18 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01231106566B for ; Thu, 8 Sep 2011 04:09:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id B34A78FC08 for ; Thu, 8 Sep 2011 04:09:17 +0000 (UTC) Received: by gwb1 with SMTP id 1so492863gwb.36 for ; Wed, 07 Sep 2011 21:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=8agYsukxhoLgWYCFHo4/9TKQ/BvDAm2eLU2AEMaD4BM=; b=oy4qBzfIk/Bee/RBMaAhp1EgMj4V6hYn87LV4d6+qIj8Twii4OD6vs9g0DCWpRwaIT 4h9UAuXJSh+Qyqqpz2wSvl1DlUHDQ8KDpcMBTqhCZsG7iOUi3V3ucjcZPZ1MDa+hEXHU wmsNAEZwWnf5rx443kp6AsjOGeMp4wVlwDWNM= MIME-Version: 1.0 Received: by 10.236.37.230 with SMTP id y66mr1182279yha.10.1315454956988; Wed, 07 Sep 2011 21:09:16 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 21:09:16 -0700 (PDT) In-Reply-To: <201109080354.10765.geoff@apro.com.au> References: <201108290134.50561.geoff@apro.com.au> <201109080354.10765.geoff@apro.com.au> Date: Thu, 8 Sep 2011 12:09:16 +0800 X-Google-Sender-Auth: Pqpac4CdjkxWr3xWdsbFEuPpEkc Message-ID: From: Adrian Chadd To: geoff@apro.com.au Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: SPAM-LOW: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 04:09:18 -0000 On 8 September 2011 01:54, Geoff Roberts wrote: > Hi Adria, > > On Mon, 5 Sep 2011 08:27:19 am Adrian Chadd wrote: >> Hi, have you had a chance to try your system with < 4G ram? > > I found a 2GB memory stick. > > Unfortunately it did not make a difference - all of the following CD bootable > systems froze at the ath initialisation: > > a) 8.0 R i386 > b) 8.1 R i386 > c) 8.2 R i386 > d) 9.0 Beta 2 amd64 > > I also tried with AHCI disable and the same result. Hm, ok. Let's try this. Put this into /boot/loader.conf: hw.ath.hal.debug=0xffffffff dev.ath.0.debug=0xffffffff Let's see if we can get some idea of where it actually does hang. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 04:35:47 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACE44106566B; Thu, 8 Sep 2011 04:35:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 3F2AD8FC14; Thu, 8 Sep 2011 04:35:47 +0000 (UTC) Received: by gwb1 with SMTP id 1so514112gwb.36 for ; Wed, 07 Sep 2011 21:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=VmiIuJZr7+sSCR7ACzmdOJuEvYfBfhTBwMvySnTvA8Q=; b=uUZ5FHM5Qgi/MT1awrZUcKwUvoEoJKFolJtAwHDLY0cpD5OOLpq0n0Zxy0ElN1+Rck VudxH9pYGR5Id6Csk3pp1EehnbiqL0xJ4RzBDTtZ9GyCROypIOpWtWda5HOX2C0rBJlk RGN3Gzi9BexrlcFMs9fWdc2rzirIdwuM2c5dI= MIME-Version: 1.0 Received: by 10.236.22.9 with SMTP id s9mr1013156yhs.129.1315456546646; Wed, 07 Sep 2011 21:35:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Wed, 7 Sep 2011 21:35:46 -0700 (PDT) In-Reply-To: <20110907174755.GR52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> <20110907105325.GQ52426@goofy03.vnode.local> <20110907174755.GR52426@goofy03.vnode.local> Date: Thu, 8 Sep 2011 12:35:46 +0800 X-Google-Sender-Auth: QQ4qvVkTkWkUjvwvVt51ZRq33-Y Message-ID: From: Adrian Chadd To: Joel Dahl Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, weongyo@freebsd.org, Bernhard Schmidt Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 04:35:47 -0000 Hi, Please try this patch. I bet what's happening is: * transition is going from RUN -> ! RUN; * the state is changed before the swbmiss timer is cancelled; * the callout gets called in another process context; * bang! This patch: * changes the order of things so the callout is cancelled -before- the state is changed; * grabs the ic lock in the swbmiss task just to make sure nothing else is fiddling with it. Thanks, cynthia:head adrian$ svn diff sys/net80211/ Index: sys/net80211/ieee80211_sta.c =================================================================== --- sys/net80211/ieee80211_sta.c (revision 225421) +++ sys/net80211/ieee80211_sta.c (working copy) @@ -217,13 +217,14 @@ IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, "%s: %s -> %s (%d)\n", __func__, ieee80211_state_name[ostate], ieee80211_state_name[nstate], arg); + /* Disable callout before changing state */ + if (vap->iv_flags_ext & IEEE80211_FEXT_SWBMISS) + callout_stop(&vap->iv_swbmiss); vap->iv_state = nstate; /* state transition */ callout_stop(&vap->iv_mgtsend); /* XXX callout_drain */ if (ostate != IEEE80211_S_SCAN) ieee80211_cancel_scan(vap); /* background scan */ ni = vap->iv_bss; /* NB: no reference held */ - if (vap->iv_flags_ext & IEEE80211_FEXT_SWBMISS) - callout_stop(&vap->iv_swbmiss); switch (nstate) { case IEEE80211_S_INIT: switch (ostate) { Index: sys/net80211/ieee80211_proto.c =================================================================== --- sys/net80211/ieee80211_proto.c (revision 225421) +++ sys/net80211/ieee80211_proto.c (working copy) @@ -1440,6 +1440,12 @@ struct ieee80211vap *vap = arg; struct ieee80211com *ic = vap->iv_ic; + /* + * Grab comlock; a state transition may be occuring + * in another context. + */ + IEEE80211_LOCK(ic); + /* XXX sleep state? */ KASSERT(vap->iv_state == IEEE80211_S_RUN, ("wrong state %d", vap->iv_state)); @@ -1463,6 +1469,8 @@ vap->iv_swbmiss_count = 0; callout_reset(&vap->iv_swbmiss, vap->iv_swbmiss_period, ieee80211_swbmiss, vap); + + IEEE80211_UNLOCK(ic); } From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 07:00:20 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA3391065677; Thu, 8 Sep 2011 07:00:20 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2073A8FC0A; Thu, 8 Sep 2011 07:00:19 +0000 (UTC) Received: by fxe4 with SMTP id 4so1684730fxe.13 for ; Thu, 08 Sep 2011 00:00:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.24.21 with SMTP id t21mr629101fab.24.1315465218778; Thu, 08 Sep 2011 00:00:18 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.223.73.202 with HTTP; Thu, 8 Sep 2011 00:00:18 -0700 (PDT) X-Originating-IP: [91.46.213.195] In-Reply-To: References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> Date: Thu, 8 Sep 2011 09:00:18 +0200 X-Google-Sender-Auth: aVZyrBSmQ-AMTBb3wNxVnzoLmrE Message-ID: From: Bernhard Schmidt To: Josh Paetzel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 07:00:20 -0000 On Wed, Sep 7, 2011 at 18:10, Adrian Chadd wrote: > On 8 September 2011 00:07, Josh Paetzel wrote: >> On Wednesday 07 September 2011 07:27:05 Josh Paetzel wrote: >>> ifconfig wlan0 -ampdutx >> >> I've been associated to the wireless at work for about 30 minutes using = this >> parameter with no drops. =A0I'd say this has fixed it, as the drops I wa= s >> getting yesterday were every minutes or so and basically made it unusabl= e. Ok, thanks, so it indeed looks like a TX aggregation issue. Can I talk you into getting more debug info? wlandebug 0xffffffff sysctl dev.iwn.0.debug=3D0xffffffff That is indeed quite spammy, but I'm not yet sure what I'm looking for exac= tly.. TX aggregation is only started if there is certain amount of traffic, if you say it is within one minute, what kind of traffic was that? Just some web serving, email, or..? Also, I would be great if you have another device available to capture a dump of what's going on. The dump shouldn't get too large if it's only a minute. :) > Cool. Bernhard, didn't you mention the ampdu TX bitmap stuff needed > some surgery in if_iwn? Yeah, for reporting stats to the ratectl algo, which itself needs some bigger surgery obviously :) But I'm not convinced that this is related. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 08:59:14 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1353B106566C; Thu, 8 Sep 2011 08:59:14 +0000 (UTC) (envelope-from lev@freebsd.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id A44138FC16; Thu, 8 Sep 2011 08:59:13 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 09AA04AC58; Thu, 8 Sep 2011 12:59:10 +0400 (MSD) Date: Thu, 8 Sep 2011 12:59:07 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <426917282.20110908125907@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 08:59:14 -0000 Hello, Adrian. You wrote 8 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 8:02:28: > These look fine, but I don't have as much experience with the ar5212 > series stuff as I do with the AR5416+ series stuff. >> =A0It seems, registers are Ok. But clients don't see any difference! >> Maybe, it is because my Senao card is "powerful" one, with additional >> schematic (and power supply) to boost signal? > Hm. Well, how far away are they? You can do a bit of math to see what About 7 meters and 2 concrete (internal) walls :) I've repeated experiment when client and server were within 3 meters without walls -- txpower seems to work. 30 gives about -55dB (accroding to InSSIDer -- I'm not sure, that this numbers could be used as absolute ones),txpower 15 gives about -65 and txpower 1 about -75. But in any case iperf throughput is about 10-11Mbit/s with pikes up to 18= Mbit/s. It looks pessimistic: 18Mbit/s in 2m direct sight. I know, that 54Mbit/s is half-duplex, but 18Mbit/s is less than 27Mbit/s and "ifconfig wlan0 list sta" shows data like this: 00:18:de:08:e8:1d 1 9 36M 21.5 0 28696 48048 EPS AQE RSN = WME Why 36M in almost-ideal conditions!? Why -70dB in room next to my AP, when neighborhood AP (simple d-link, according to all data) is -65, and this room is furthest from other apartments)!? Also, graph of signal strength is much smoother on small distances and didn't look like mountain range. Another observation: when distance is about 5 meters txpower 30, 15 and 10 are almost indistinguishable (and grpahs are smooth, -75dB for 10, -70dB for 15, -67dB for 30), but txpower 1 gives crazy graph: it osscilate between -80 and -10 (!!!). Sometimes it gold on -77, but after 10-15 seconds raise to the sky, then drop down again, etc. > changes the TX power on the sender side would have on the receiver > signal level. > Have you ever looked at doing up a free space loss model to predict > what the signal level(s) should be? It is too complex for me :-) And I'm not sure, that I have tool to measure real signal to compare with calculations. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 09:14:40 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 384841065670 for ; Thu, 8 Sep 2011 09:14:40 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D3E4A8FC1A for ; Thu, 8 Sep 2011 09:14:39 +0000 (UTC) Received: by yxk36 with SMTP id 36so548762yxk.13 for ; Thu, 08 Sep 2011 02:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FHYNzXYh4KlcIgoIy+dAdbqaQYNGaNcMqc9uxW7cswE=; b=CfYtnGrpae1RbVYScF8Z7vBMaVaUxbOI40c/9cOod63o6OkaFe+wQhVebabus6uFvN MdLaukyfQJ3oNmNy+OL6q0F78uF3bd92zYC5KSXdnVhesAg2R2h5cPnn55KmkttgpW5Q ylEU5VksCUkwsDpquR5BPJcp27n/eegrrYNhA= MIME-Version: 1.0 Received: by 10.68.25.104 with SMTP id b8mr720645pbg.139.1315473278574; Thu, 08 Sep 2011 02:14:38 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Thu, 8 Sep 2011 02:14:38 -0700 (PDT) In-Reply-To: <426917282.20110908125907@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 11:14:38 +0200 Message-ID: From: Berislav Purgar To: Lev Serebryakov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 09:14:40 -0000 2011/9/8 Lev Serebryakov > Hello, Adrian. > You wrote 8 =D1=81=D0=B5=D0=BD=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2011 =D0=B3.= , 8:02:28: > > > These look fine, but I don't have as much experience with the ar5212 > > series stuff as I do with the AR5416+ series stuff. > >> It seems, registers are Ok. But clients don't see any difference! > >> Maybe, it is because my Senao card is "powerful" one, with additional > >> schematic (and power supply) to boost signal? > > > Hm. Well, how far away are they? You can do a bit of math to see what > About 7 meters and 2 concrete (internal) walls :) > > I've repeated experiment when client and server were within 3 meters > without walls -- txpower seems to work. 30 gives about -55dB > (accroding to InSSIDer -- I'm not sure, that this numbers could be > used as absolute ones),txpower 15 gives about -65 and txpower 1 about > -75. > > But in any case iperf throughput is about 10-11Mbit/s with pikes up to > 18Mbit/s. > > It looks pessimistic: 18Mbit/s in 2m direct sight. I know, that > 54Mbit/s is half-duplex, but 18Mbit/s is less than 27Mbit/s and > "ifconfig wlan0 list sta" shows data like this: > > 00:18:de:08:e8:1d 1 9 36M 21.5 0 28696 48048 EPS AQE RS= N > WME > > Why 36M in almost-ideal conditions!? Why -70dB in room next to my AP, > when neighborhood AP (simple d-link, according to all data) is -65, > and this room is furthest from other apartments)!? > > Also, graph of signal strength is much smoother on small distances and > didn't look like mountain range. > > Another observation: when distance is about 5 meters txpower 30, 15 and > 10 are almost indistinguishable (and grpahs are smooth, -75dB for 10, > -70dB for 15, -67dB for 30), but txpower 1 gives crazy graph: it > osscilate between -80 and -10 (!!!). Sometimes it gold on -77, but > after 10-15 seconds raise to the sky, then drop down again, etc. > > > changes the TX power on the sender side would have on the receiver > > signal level. > > Have you ever looked at doing up a free space loss model to predict > > what the signal level(s) should be? > It is too complex for me :-) And I'm not sure, that I have tool to > measure real signal to compare with calculations. > > -- > // Black Lion AKA Lev Serebryakov > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g > " > Hi maybe you device have interference with other devices in room. try to lowe= r .. turn off other devices if u have in room . what show ifconfig wlan0 scan ?? how much is noise level ?? i have AR5212 and it work great over 6m inside house (2 walls). transfer rate i get is 2.4~3.2MB/s Beri From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 11:41:36 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 257A6106566B for ; Thu, 8 Sep 2011 11:41:36 +0000 (UTC) (envelope-from lev@freebsd.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id B40728FC08 for ; Thu, 8 Sep 2011 11:41:35 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id DE0DE4AC58; Thu, 8 Sep 2011 15:41:33 +0400 (MSD) Date: Thu, 8 Sep 2011 15:41:30 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <4610390305.20110908154130@serebryakov.spb.ru> To: Berislav Purgar In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 11:41:36 -0000 Hello, Berislav. You wrote 8 =D1=81=D0=B5=D0=BD=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2011 =D0=B3., = 13:14:38: > maybe you device=D1=99 have interference with other devices in room. try No other 2.4Ghz devices -- only PCs without any wireless devices, no Blue= Tooth devices, nothing. Microwave oven at kitchen, but of course, it is not= used at all when I try to debug wireless network :) > to lower .. turn off other devices if u have in room . what show > ifconfig wlan0 scan ?? how much is noise level ??=20 ``ifconfig wlan0 scan'' shows nothing, as wlan0 in hostap mode, and I hav= e only MacOS X and Windows XP clients. I've added wlan1: gateway# ifconfig wlan1 create wlandev ath0 wlanmode monitor gateway# ifconfig wlan1 scan And this kills my WiFi AP, makes signal level (from client side of view) = jumps up and down, and results on AP is looks like: gateway# ifconfig wlan1 scan SSID/MESH ID BSSID CHAN RATE S:N INT CAPS House 54:e6:fc:c2:08:ca 1 54M -71:-96 100 EPS RSN WPA WME = HTCAP ATH WPS gooodini 00:26:5a:ff:ee:e5 2 54M -87:-96 100 EPS RSN WPA WME = HTCAP ATH default 00:1f:c6:3c:24:7a 6 54M -80:-96 100 E 00:1e:58:2d:ea:67 3 54M -94:-96 100 EP RSN ATH ZXL 00:19:cb:0a:71:bc 10 54M -96:-96 100 EP WPA asus 20:cf:30:88:b5:90 1 54M -91:-96 100 EP WPA Vlad 00:19:5b:e1:f1:aa 6 54M -89:-96 100 EPS interzet@2 00:26:18:c6:81:98 1 54M -94:-96 100 EP HTCAP WPS WP= A WME knyagna 00:18:e7:ec:1d:eb 3 54M -144:-96 100 EPS RSN WPA WME= HTCAP ATH WPS I notice one thing: in periods, when client was kicked from AP, it shows m= uch stronger signal (sbout -45 dB when -65 is average with associated clien= t). > i have AR5212 and it work great over 6m inside house (2 walls). > transfer rate i get is 2.4~3.2MB/s My previous card (500mW some strange Australian brand name, buyed on eBay= , AR5212 based) gives me comparable results, yes. But I've fried it at hot = summer AND change apartment at almost same time AND upgrade FreeBSD from 7 = to 8 on router (I didn't have much time to watch HD movies after relocation= , and didn't notice when situation becomes worse -- there was period of tim= e when WiFi bandwidth didn't bother me at all). So, I'm not sure now, is it= new card is crap or new apartment has "shielded" inner walls or FreeBSD8 h= as other power management. I've tried to build old FreeBSD 7 image for rout= er, but failed somehow -- kernel hangs on boot. I'll try more in near futur= e. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 11:56:53 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 975D9106566C; Thu, 8 Sep 2011 11:56:53 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 599C08FC08; Thu, 8 Sep 2011 11:56:53 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 7BD984AC31; Thu, 8 Sep 2011 15:56:52 +0400 (MSD) Date: Thu, 8 Sep 2011 15:56:48 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1866438446.20110908155648@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 11:56:53 -0000 Hello, Adrian. You wrote 8 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 8:02:28: >> =A0It seems, registers are Ok. But clients don't see any difference! >> Maybe, it is because my Senao card is "powerful" one, with additional >> schematic (and power supply) to boost signal? I've tried 9-BETA2 at last, and it gives identical results. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 13:38:32 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A2671065670; Thu, 8 Sep 2011 13:38:32 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id A42268FC14; Thu, 8 Sep 2011 13:38:31 +0000 (UTC) Received: by ywa17 with SMTP id 17so766871ywa.13 for ; Thu, 08 Sep 2011 06:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NJPX3Xpq+jgA/5FNupYsxLwyoeG/lyMsKj7e/PclymQ=; b=jqHLLnYJap8SyoLGddcsVlqG7/AJJeXLVaqvmxXz0HN8MhRcfp0b1xjHQkekEiaBZK 7QwAqtUPGX7tVM6jBEMYEUAh6KSdC/6mMwHXd2BJ6ok1CDGmp/ByXemcGEaceL1umBwt zTk+21pS50WUE8YKeQhWkczSTN2p2XcRMG+6A= MIME-Version: 1.0 Received: by 10.68.36.227 with SMTP id t3mr1112415pbj.273.1315489110249; Thu, 08 Sep 2011 06:38:30 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Thu, 8 Sep 2011 06:38:30 -0700 (PDT) In-Reply-To: <4610390305.20110908154130@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 15:38:30 +0200 Message-ID: From: Berislav Purgar To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 13:38:32 -0000 On Thu, Sep 8, 2011 at 1:41 PM, Lev Serebryakov wrote: > Hello, Berislav. > You wrote 8 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 13:14:38: > > > gateway# ifconfig wlan1 scan > SSID/MESH ID BSSID CHAN RATE S:N INT CAPS > House 54:e6:fc:c2:08:ca 1 54M -71:-96 100 EPS RSN WPA WM= E > HTCAP ATH WPS > gooodini 00:26:5a:ff:ee:e5 2 54M -87:-96 100 EPS RSN WPA WM= E > HTCAP ATH > default 00:1f:c6:3c:24:7a 6 54M -80:-96 100 E > 00:1e:58:2d:ea:67 3 54M -94:-96 100 EP RSN ATH > ZXL 00:19:cb:0a:71:bc 10 54M -96:-96 100 EP WPA > asus 20:cf:30:88:b5:90 1 54M -91:-96 100 EP WPA > Vlad 00:19:5b:e1:f1:aa 6 54M -89:-96 100 EPS > interzet@2 00:26:18:c6:81:98 1 54M -94:-96 100 EP HTCAP WPS > WPA WME > knyagna 00:18:e7:ec:1d:eb 3 54M -144:-96 100 EPS RSN WPA W= ME > HTCAP ATH WPS > > I notice one thing: in periods, when client was kicked from AP, it shows > much stronger signal (sbout -45 dB when -65 is average with associated > client). > > > i have AR5212 and it work great over 6m inside house (2 walls). > > transfer rate i get is 2.4~3.2MB/s > My previous card (500mW some strange Australian brand name, buyed on > eBay, AR5212 based) gives me comparable results, yes. But I've fried it = at > hot summer AND change apartment at almost same time AND upgrade FreeBSD f= rom > 7 to 8 on router (I didn't have much time to watch HD movies after > relocation, and didn't notice when situation becomes worse -- there was > period of time when WiFi bandwidth didn't bother me at all). So, I'm not > sure now, is it new card is crap or new apartment has "shielded" inner wa= lls > or FreeBSD8 has other power management. I've tried to build old FreeBSD 7 > image for router, but failed somehow -- kernel hangs on boot. I'll try mo= re > in near future. > > -- > // Black Lion AKA Lev Serebryakov > > i think that you have problem with interference from 802.11N based AP (i see 5 ht ap from scan). you can try changing channels (13,14 channel) and txpower (txpower 0-10) and see what happens. Beri From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 13:51:57 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89623106564A; Thu, 8 Sep 2011 13:51:57 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9678FC1B; Thu, 8 Sep 2011 13:51:57 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 745AE2A004; Thu, 8 Sep 2011 09:51:56 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Thu, 08 Sep 2011 09:51:56 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:from :subject:date:to; s=smtpout; bh=LdMNPBjtgqirfGUS7Pikjy+jiH0=; b= HPvj6hntv3STG1dzBr/FMR2mAWIR7hRsg9UHFZ0FaszQqjLRl4ClH3p3DbplLVf9 H0cmqsvL45Yje0X6ooK1eC+Z6cN2HnHrBvDDAwjQ01bDq0EzIEpYzg9hvllwY/Dd xVhoFCqyErcPfHKHzxs0Gi8lOdfoGnrrvZzbJH/WbBw= X-Sasl-enc: 7+S75P9gLkujIZcqIyr/z1yg8eAvAWpitHP/fb+PD3Dn 1315489916 Received: from [10.10.1.128] (unknown [216.139.7.151]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2614D78049B; Thu, 8 Sep 2011 09:51:56 -0400 (EDT) References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8K2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> X-Mailer: iPhone Mail (8K2) From: Josh Paetzel Date: Thu, 8 Sep 2011 06:51:50 -0700 To: Bernhard Schmidt Cc: Josh Paetzel , "freebsd-wireless@freebsd.org" Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 13:51:57 -0000 On Sep 8, 2011, at 12:00 AM, Bernhard Schmidt wrote: > On Wed, Sep 7, 2011 at 18:10, Adrian Chadd wrote:= >> On 8 September 2011 00:07, Josh Paetzel wrote: >>> On Wednesday 07 September 2011 07:27:05 Josh Paetzel wrote: >>>> ifconfig wlan0 -ampdutx >>>=20 >>> I've been associated to the wireless at work for about 30 minutes using t= his >>> parameter with no drops. I'd say this has fixed it, as the drops I was >>> getting yesterday were every minutes or so and basically made it unusabl= e. >=20 > Ok, thanks, so it indeed looks like a TX aggregation issue. Can I talk > you into getting more debug info? > wlandebug 0xffffffff > sysctl dev.iwn.0.debug=3D0xffffffff > That is indeed quite spammy, but I'm not yet sure what I'm looking for exa= ctly.. >=20 Sure. I can do that.=20 > TX aggregation is only started if there is certain amount of traffic, > if you say it is within one minute, what kind of traffic was that? > Just some web serving, email, or..? >=20 It's my desktop. Checking email, connected to an IRC server or three. SSH to= a few places. An NFS mount. Windows in vbox running vsphere client connecti= ng to an ESXi box and a web browser running.=20 > Also, I would be great if you have another device available to capture > a dump of what's going on. The dump shouldn't get too large if it's > only a minute. :) >=20 I can set that up. The WAP is in bridged mode. I can mirror the switch port i= t's on and plug another system in to that port and get a dump.=20 I'll set this all up in a couple hours.=20 >> Cool. Bernhard, didn't you mention the ampdu TX bitmap stuff needed >> some surgery in if_iwn? >=20 > Yeah, for reporting stats to the ratectl algo, which itself needs some > bigger surgery obviously :) But I'm not convinced that this is > related. >=20 > -- > Bernhard Thanks, Josh= From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 13:54:16 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B1D310656D7; Thu, 8 Sep 2011 13:54:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id F17C38FC19; Thu, 8 Sep 2011 13:54:15 +0000 (UTC) Received: by yib19 with SMTP id 19so790855yib.13 for ; Thu, 08 Sep 2011 06:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=piP/bgjQzbVJrXP6axdUqPAR4MU49SbsdUJjPKD3B+Q=; b=I/+rSnpzwozZ2fQprDIEgbA2D/IEsoh/A7GPHow4FBeJhyspJiGtI7NvnZreyxdt8k z+rP+BASvn2/pNyPZ4Feku5jyfQlFXg1SRmaiLHLu7FPL9nZdJ2/hKLPv7GLagG4A0gZ QH0jGrwgIEzJqWqqRjwNyc1rlyIERQcSFmTrA= MIME-Version: 1.0 Received: by 10.236.187.2 with SMTP id x2mr4351099yhm.95.1315490055240; Thu, 08 Sep 2011 06:54:15 -0700 (PDT) Received: by 10.236.103.6 with HTTP; Thu, 8 Sep 2011 06:54:15 -0700 (PDT) In-Reply-To: <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> Date: Thu, 8 Sep 2011 21:54:15 +0800 Message-ID: From: Adrian Chadd To: Josh Paetzel Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , Bernhard Schmidt Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 13:54:16 -0000 He meant getting something doing a wifi dump. Eg an atheros nic: ifconfig wlan0 create wlandev ath0 wlanmode monitor ifconfig wlan0 channel X:ht/40 (as appropriate) ifconfig wlan0 up tcpdump -ni wlan0 -y IEEE802_11_MONITOR -s0 -l -w pcap.out adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:08:56 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D53B4106564A; Thu, 8 Sep 2011 14:08:56 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6D43B8FC14; Thu, 8 Sep 2011 14:08:56 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id A3D664AC58; Thu, 8 Sep 2011 18:08:54 +0400 (MSD) Date: Thu, 8 Sep 2011 18:08:50 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1705262661.20110908180850@serebryakov.spb.ru> To: Berislav Purgar In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:08:56 -0000 Hello, Berislav. You wrote 8 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 17:38:30: > i think that=C2 you have problem with interference from 802.11N > based AP (i see 5 ht ap from scan). you can try changing channels > (13,14 channel) and txpower (txpower 0-10) and see what happens.=C2 =20 Channels 13 and 14 are not available to me :( ateway# ifconfig wlan0 list channels Channel 1 : 2412 MHz 11g Channel 9 : 2452 MHz 11g Channel 2 : 2417 MHz 11g Channel 10 : 2457 MHz 11g Channel 3 : 2422 MHz 11g Channel 11 : 2462 MHz 11g Channel 4 : 2427 MHz 11g Channel 149 : 5745* MHz 11a Channel 5 : 2432 MHz 11g Channel 153 : 5765* MHz 11a Channel 6 : 2437 MHz 11g Channel 157 : 5785* MHz 11a Channel 7 : 2442 MHz 11g Channel 161 : 5805* MHz 11a Channel 8 : 2447 MHz 11g txpower 10 on current channel drops signal on client without visible chan= ges on bandwidth =20 --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:15:02 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24015106564A for ; Thu, 8 Sep 2011 14:15:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id CA4988FC08 for ; Thu, 8 Sep 2011 14:15:01 +0000 (UTC) Received: by yxk36 with SMTP id 36so814294yxk.13 for ; Thu, 08 Sep 2011 07:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DzzLiAZ95raeQRMu99woN4f84mJiWSw/6M1bcucXFLg=; b=ASjZu+z4ZxKIWrkRmLCe0ze2zxe7tT5aD21YdVmlRjxeavXUPj44j5Y85fgB2TD0vQ NDf0ah2L59YvTNYMtatLxU3/d/zofCpr02F16NtTHASzXwfmMFKfZnmaZ3dhGKESmBGE cW4I50eZK60QNJD63Cp8AQjEIYDqads9TQYPs= MIME-Version: 1.0 Received: by 10.236.200.137 with SMTP id z9mr4647130yhn.27.1315491301042; Thu, 08 Sep 2011 07:15:01 -0700 (PDT) Received: by 10.236.103.6 with HTTP; Thu, 8 Sep 2011 07:15:00 -0700 (PDT) In-Reply-To: <1705262661.20110908180850@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 22:15:00 +0800 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:15:02 -0000 What about trying the 5ghz channels? adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:18:59 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D53FE1065670 for ; Thu, 8 Sep 2011 14:18:59 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 92B238FC17 for ; Thu, 8 Sep 2011 14:18:59 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 550D34AC31; Thu, 8 Sep 2011 18:18:58 +0400 (MSD) Date: Thu, 8 Sep 2011 18:18:54 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1812855645.20110908181854@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:18:59 -0000 Hello, Adrian. You wrote 8 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 18:15:00: > What about trying the 5ghz channels? Main client is 2.4Ghz only :( I've thought about it, but no luck. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:20:02 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36CD3106566C; Thu, 8 Sep 2011 14:20:02 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id 8A0608FC1C; Thu, 8 Sep 2011 14:20:01 +0000 (UTC) Received: by eye4 with SMTP id 4so522039eye.31 for ; Thu, 08 Sep 2011 07:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Tm2Wxky+6ce+0BVk7RShiBuzbzOcCEJRQPVrrkebKng=; b=PJ4vfszz8jmA/wM+rlZELCKW0O/9WN8ryYWSaBrNyoRjvSmHOpJqoBCh4NfbM8bcFF Xu2L1KYj/d4CyyrotJ/IFbSltayLS+2jz6F/uC0mFE97Io440BIBzjgJlc6csfDP1ZPx GjF+WrJh+Ydng39i9JRlwm2wpRHsF+AN2Xv5I= MIME-Version: 1.0 Received: by 10.68.36.227 with SMTP id t3mr1170494pbj.273.1315491598866; Thu, 08 Sep 2011 07:19:58 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Thu, 8 Sep 2011 07:19:58 -0700 (PDT) In-Reply-To: <1705262661.20110908180850@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 16:19:58 +0200 Message-ID: From: Berislav Purgar To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:20:02 -0000 2011/9/8 Lev Serebryakov > Hello, Berislav. > You wrote 8 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 17:38:30: > > > i think that=C2 you have problem with interference from 802.11N > > based AP (i see 5 ht ap from scan). you can try changing channels > > (13,14 channel) and txpower (txpower 0-10) and see what happens.=C2 > Channels 13 and 14 are not available to me :( > > ateway# ifconfig wlan0 list channels > Channel 1 : 2412 MHz 11g Channel 9 : 2452 MHz 11g > Channel 2 : 2417 MHz 11g Channel 10 : 2457 MHz 11g > Channel 3 : 2422 MHz 11g Channel 11 : 2462 MHz 11g > Channel 4 : 2427 MHz 11g Channel 149 : 5745* MHz 11a > Channel 5 : 2432 MHz 11g Channel 153 : 5765* MHz 11a > Channel 6 : 2437 MHz 11g Channel 157 : 5785* MHz 11a > Channel 7 : 2442 MHz 11g Channel 161 : 5805* MHz 11a > Channel 8 : 2447 MHz 11g > > txpower 10 on current channel drops signal on client without visible > changes on bandwidth > > -- > // Black Lion AKA Lev Serebryakov > > Hell Lev ifconfig wlan0 down ifconfig wlan0 country DE (or you can try JP) ifconfig wlan0 up Beri From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:22:40 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 046081065670 for ; Thu, 8 Sep 2011 14:22:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id AE7878FC0A for ; Thu, 8 Sep 2011 14:22:39 +0000 (UTC) Received: by yib19 with SMTP id 19so822490yib.13 for ; Thu, 08 Sep 2011 07:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=bwo9rI+GYobxHwKa574oE0oWJrs+vWE5xLOJGizgcQU=; b=BJcW9/vTZjGp+ejkfuWQacytW6ghGsh3s+e+4MnX0Zi/warjxwqNaN8hc39K7/D9qF N6HazSqzVoBBkCnkvsdLPcDj2ojNZXNUoZ6etWAU6jPbqFfVBUqT/K7VRdZEbUuJodea ODzsOOkDR9i/OkAcHGss8ZvTJnjwzNkuixcTM= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr4622702yhl.112.1315491759003; Thu, 08 Sep 2011 07:22:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Thu, 8 Sep 2011 07:22:38 -0700 (PDT) In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 22:22:38 +0800 X-Google-Sender-Auth: F1xg4zgWrwc4HYBzEEO3qrUJlM8 Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Lev Serebryakov Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:22:40 -0000 Oi, he shouldn't be breaking regulatory requirements! :) adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:29:15 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 381CF1065674; Thu, 8 Sep 2011 14:29:15 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id CE7408FC12; Thu, 8 Sep 2011 14:29:14 +0000 (UTC) Received: by gyf2 with SMTP id 2so830374gyf.13 for ; Thu, 08 Sep 2011 07:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qKL+kgcJVAnPjObTyXYxeZonNQwBPW75zQ50MRYWZec=; b=nAKR8hFvXvqI6xD+x8/50WslSN9/2mWuLkv8b50xtOofZ1/zGkK0qAtqWStnGTEXrx ypYuDOd7fDabY7RdVuPvzduPYHwaii0ntTGBEhHMkwrjquLMrt6NynWa4l8s7GvRb2zX 4nIb7chUm2lnqEyLwnqDejdzx5E1Lsb3d/5k8= MIME-Version: 1.0 Received: by 10.68.33.137 with SMTP id r9mr71476pbi.206.1315492153554; Thu, 08 Sep 2011 07:29:13 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Thu, 8 Sep 2011 07:29:13 -0700 (PDT) In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 16:29:13 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:29:15 -0000 On Thu, Sep 8, 2011 at 4:22 PM, Adrian Chadd wrote: > Oi, he shouldn't be breaking regulatory requirements! :) > > > > adrian > yes but he can try only for testing purposes.!:) Beri From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:37:01 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9850D1065670; Thu, 8 Sep 2011 14:37:01 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 544608FC16; Thu, 8 Sep 2011 14:37:01 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 1D89E4AC31; Thu, 8 Sep 2011 18:37:00 +0400 (MSD) Date: Thu, 8 Sep 2011 18:36:56 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <458771414.20110908183656@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:37:01 -0000 Hello, Adrian. You wrote 8 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 18:22:38: > Oi, he shouldn't be breaking regulatory requirements! :) I afraid, that 600mW card + 10dB antenna ALREADY out of regulatory requirements, as it more than non-licensable 100mW :) --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:38:37 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E603106566C for ; Thu, 8 Sep 2011 14:38:37 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id B7C8B8FC0A for ; Thu, 8 Sep 2011 14:38:36 +0000 (UTC) Received: by gyf2 with SMTP id 2so840941gyf.13 for ; Thu, 08 Sep 2011 07:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dPZGWBSCoBXrRmKHk3ZOkUwf/nGA4xCOwSPa9BcSpRA=; b=BWEfgI6HzRUDnA4kQ+gtGT/sEDYg/ErwtJT/JgYSVZn6WQRpD1dyvYhWs0tYsy91b5 Hrb9b+4lER3UOWi9T4UJ4L/HY6tNQH6dOh2Hos+cFFtwWAZERpTbYc3R1Evr9GI6zMo2 mZbCO3JzkLpdzN8pBBm549uB+DDdzAnc584eU= MIME-Version: 1.0 Received: by 10.236.37.230 with SMTP id y66mr5022261yha.10.1315492716224; Thu, 08 Sep 2011 07:38:36 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Thu, 8 Sep 2011 07:38:36 -0700 (PDT) In-Reply-To: <458771414.20110908183656@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 22:38:36 +0800 X-Google-Sender-Auth: k5q9X-U2675_oPHy5LjoDKqsHUk Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:38:37 -0000 2011/9/8 Lev Serebryakov : > Hello, Adrian. > You wrote 8 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 18:22:38: > >> Oi, he shouldn't be breaking regulatory requirements! :) > =9AI afraid, that 600mW card + 10dB antenna ALREADY out of regulatory > requirements, as it more than non-licensable 100mW :) You'd be very surprised how sensitive wireless NICs are. If this is just for a home access point then it's very unlikely you need a 600mW card. I get 130mbit from all places in my apartment .. with a non-high power 11n NIC. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 14:52:19 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A7EF106566B; Thu, 8 Sep 2011 14:52:19 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id B83F18FC08; Thu, 8 Sep 2011 14:52:18 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 655754AC31; Thu, 8 Sep 2011 18:52:17 +0400 (MSD) Date: Thu, 8 Sep 2011 18:52:13 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <4910491962.20110908185213@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 14:52:19 -0000 Hello, Adrian. You wrote 8 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 18:38:36: >>> Oi, he shouldn't be breaking regulatory requirements! :) >> =9AI afraid, that 600mW card + 10dB antenna ALREADY out of regulatory >> requirements, as it more than non-licensable 100mW :) > You'd be very surprised how sensitive wireless NICs are. > If this is just for a home access point then it's very unlikely you > need a 600mW card. > I get 130mbit from all places in my apartment .. with a non-high power > 11n NIC. :) And I want to have at least 54Mbit with powerful card :) No luck :( 10Mbit TCP (21Mbit WiFi, I think) is upper limit everywhere but in direct sight of AP antenna. Yes, I have 802.11n 2x2 card on my table ("conventional" one), but I don't have pigtails for it! And nearest pigtails are in Honk-Kong. I've ordered them two days ago, but delivery will be about 30 days :( And some more results: (a) 13 channel is not seen by client, 11 channel is last what it could see, and it is worse than my 9 ch. (b) FreeBSD 9-BETA2 is more aggressive in selecting transfer rate: signal strength is the same, but "ifconfig wlan0 list sta" shows "54M" almost everytime, FreeBSD 8-STABLE shows from "11M" to "48M" from run to run. (c) Real throughput (iperf tcp or udp) is the same with FreeBSD 9 as with FreeBSD 8. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 15:07:38 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0F7B1065673 for ; Thu, 8 Sep 2011 15:07:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 63CC28FC13 for ; Thu, 8 Sep 2011 15:07:38 +0000 (UTC) Received: by gwb1 with SMTP id 1so56377gwb.36 for ; Thu, 08 Sep 2011 08:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=dI+YPAwyD5DNDPKwPKwsRWDNP7CStTm3BYa1B3fduLA=; b=gvMcLqK+SOnU2PnWBkXl/83Vef+ucqUAmGObTpSZP4WC6c26ApdRDaO19La8k2J31I U18fPq6a5LE3s526LOoCobPPnoXPpv6fO6Xktqa/hOmmbc90oOC4h+83M/nWUhqPU8nE 5GjSZDht30/j1bpKmavMmdNYPMF8Hd1uG21Rg= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr4972132yhl.112.1315494457727; Thu, 08 Sep 2011 08:07:37 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Thu, 8 Sep 2011 08:07:37 -0700 (PDT) In-Reply-To: <4910491962.20110908185213@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> Date: Thu, 8 Sep 2011 23:07:37 +0800 X-Google-Sender-Auth: ct0xoNTsOK_ry2vooYxFWiVaE-Q Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 15:07:38 -0000 Right, but please keep in mind that stronger TX power doesn't make the signal "magically" more reliable and higher throughput. Sure it can help, but if your problem is interference, you're not going to win by just buying a more powerful NIC. Have you compiled up athstats and have it available on your AP? What's it say when you run it? Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 15:13:09 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A97D1065672; Thu, 8 Sep 2011 15:13:09 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 02A9C8FC14; Thu, 8 Sep 2011 15:13:09 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id A5B1A4AC31; Thu, 8 Sep 2011 19:13:07 +0400 (MSD) Date: Thu, 8 Sep 2011 19:13:03 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1273865639.20110908191303@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 15:13:09 -0000 Hello, Adrian. You wrote 8 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 19:07:37: > Right, but please keep in mind that stronger TX power doesn't make the > signal "magically" more reliable and higher throughput. Sure it can > help, but if your problem is interference, you're not going to win by > just buying a more powerful NIC. I understand that... But interference over all range... It will be very sad :( > Have you compiled up athstats and have it available on your AP? What's > it say when you run it? Yep, it is available (9-BETA2 now, iperf is running for about half a hour, second antenna is not attached, as I didn't plan to use 5Ghz): 4936697 data frames received 9101605 data frames transmit 99995 tx frames with an alternate rate 1393550 long on-chip tx retries 12917 tx failed 'cuz too many retries 54M current transmit rate 19218 tx stopped 'cuz no xmit buffer 5 tx failed 'cuz dma buffer allocation failed 387 tx frames with no ack marked 9085818 tx frames with short preamble 29941 rx failed 'cuz of bad CRC 56 rx failed 'cuz of PHY err 56 CCK restart 119985 beacons transmitted 411 periodic calibrations -0/+0 TDMA slot adjust (usecs, smoothed) 37 rssi of last ack 30 avg recv rssi -96 rx noise floor 15402 tx frames through raw api 5 raw tx failed 'cuz interface/hw down 41 cabq frames transmitted 26 cabq xmit overflowed beacon interval 37 switched default/rx antenna 4 noise immunity level 2 spur immunity level 80 listen time 31 ANI increased noise immunity 3 ANI decrease noise immunity 1930 ANI increased spur immunity 1916 ANI decrease spur immunity 13 ANI enabled OFDM weak signal detect 13 ANI disabled CCK weak signal threshold 39809373 cumulative OFDM phy error count 561387 cumulative CCK phy error count 254 ANI forced listen time to zero 1393023 missing ACK's 41881 bad FCS 13 average rssi (beacons only) Antenna profile: [1] tx 8543738 rx 4922481 [2] tx 544837 rx 14216 --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 15:48:07 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA1CD106564A; Thu, 8 Sep 2011 15:48:07 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id AAB4F8FC18; Thu, 8 Sep 2011 15:48:07 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D6BA42B23E; Thu, 8 Sep 2011 11:48:06 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 08 Sep 2011 11:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:from :subject:date:to; s=smtpout; bh=7kziZBVxql7OXDGk/QOMVz1Fwh4=; b= e6sL8wzSRe111I0mo1YcuZwaLCdlndqvEM8SdviPNMeKA8ZRWbYKFoFfjBRUVvcu isqL6InQxRAEdgqKFg7t76iKMmxcZdWo3tlf+iBl8VUdTIBwFcv2hAWQEUqnfOSq CWUu7QHYCdhmjj7K/sZcg0Wo4bqaEpYd+y6D4rwp5pw= X-Sasl-enc: 4dFpoW+vcs8314ZYXXJO6igea1gZzfCaatQLN155Bz8d 1315496886 Received: from [10.76.113.168] (mobile-166-205-138-107.mycingular.net [166.205.138.107]) by mail.messagingengine.com (Postfix) with ESMTPSA id 7A48E780614; Thu, 8 Sep 2011 11:48:06 -0400 (EDT) References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8K2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8K2) From: Josh Paetzel Date: Thu, 8 Sep 2011 08:47:59 -0700 To: Adrian Chadd Cc: Josh Paetzel , "freebsd-wireless@freebsd.org" , Bernhard Schmidt Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 15:48:08 -0000 Oh. That will be tougher. I think all the other wireless hosts are macs. I'= ll see what I can scrounge up.=20 Thanks, Josh Paetzel On Sep 8, 2011, at 6:54 AM, Adrian Chadd wrote: > He meant getting something doing a wifi dump. >=20 > Eg an atheros nic: >=20 > ifconfig wlan0 create wlandev ath0 wlanmode monitor > ifconfig wlan0 channel X:ht/40 (as appropriate) > ifconfig wlan0 up > tcpdump -ni wlan0 -y IEEE802_11_MONITOR -s0 -l -w pcap.out >=20 >=20 >=20 > adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 21:19:02 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82778106566C; Thu, 8 Sep 2011 21:19:02 +0000 (UTC) (envelope-from joel@vnode.se) Received: from mail.vnode.se (mail.vnode.se [62.119.52.80]) by mx1.freebsd.org (Postfix) with ESMTP id 30F4E8FC08; Thu, 8 Sep 2011 21:19:02 +0000 (UTC) Received: from mail.vnode.se (localhost [127.0.0.1]) by mail.vnode.se (Postfix) with ESMTP id 22474E3F07A; Thu, 8 Sep 2011 23:19:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at vnode.se Received: from mail.vnode.se ([127.0.0.1]) by mail.vnode.se (mail.vnode.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X9IXA1kSnDvm; Thu, 8 Sep 2011 23:18:57 +0200 (CEST) Received: from goofy03.vnode.local (wg.benders.se [212.247.52.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.vnode.se (Postfix) with ESMTPSA id 57279E3F079; Thu, 8 Sep 2011 23:18:57 +0200 (CEST) Date: Thu, 8 Sep 2011 23:18:55 +0200 From: Joel Dahl To: Adrian Chadd Message-ID: <20110908211855.GS52426@goofy03.vnode.local> References: <09C13664-4FC0-41F3-8849-CE875B3A6CC0@vnode.se> <20110905062453.GM52426@goofy03.vnode.local> <20110906204242.GP52426@goofy03.vnode.local> <20110907105325.GQ52426@goofy03.vnode.local> <20110907174755.GR52426@goofy03.vnode.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-wireless@freebsd.org, weongyo@freebsd.org, Bernhard Schmidt Subject: Re: BETA2 panic X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 21:19:02 -0000 On 08-09-2011 12:35, Adrian Chadd wrote: > Hi, > > Please try this patch. > > I bet what's happening is: > > * transition is going from RUN -> ! RUN; > * the state is changed before the swbmiss timer is cancelled; > * the callout gets called in another process context; > * bang! > > This patch: > > * changes the order of things so the callout is cancelled -before- the > state is changed; > * grabs the ic lock in the swbmiss task just to make sure nothing else > is fiddling with it. I've been using this patch for 9 hours and I haven't seen any panics so far. Do you still want me to try without the ieee80211_swbmiss locks (as discussed on irc)? -- Joel From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 23:39:24 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F625106564A for ; Thu, 8 Sep 2011 23:39:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 14CDA8FC16 for ; Thu, 8 Sep 2011 23:39:23 +0000 (UTC) Received: by gwb1 with SMTP id 1so635301gwb.36 for ; Thu, 08 Sep 2011 16:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=idSyKJ2k63N/ZHnecpAfeoHtQQW+HV04doCBpmBebnE=; b=dxS5Y2ULlENM2af454OoOX+iHj/+J9Q6BvOvldO6qOGk8wFhLYDIWCrlS17JimrtQ2 JFapDHV/UAkpKpeifyN4T+2d4F+XV9i6jPkjveOaNmzc681+5Ue8aZ6SmqNxb33V5PNg p7hrPKMCrBIZIlUeQDBehO3aiXhDyZM1/6MQk= MIME-Version: 1.0 Received: by 10.236.37.230 with SMTP id y66mr8692044yha.10.1315525163377; Thu, 08 Sep 2011 16:39:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Thu, 8 Sep 2011 16:39:23 -0700 (PDT) In-Reply-To: <1273865639.20110908191303@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> Date: Fri, 9 Sep 2011 07:39:23 +0800 X-Google-Sender-Auth: jUSDnnPOyAcBT10jbjh6g6PmWkY Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 23:39:24 -0000 Do you have two antennas connected, or just one? adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 8 23:40:40 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7284D1065676; Thu, 8 Sep 2011 23:40:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 041E88FC1D; Thu, 8 Sep 2011 23:40:39 +0000 (UTC) Received: by ywa17 with SMTP id 17so1350735ywa.13 for ; Thu, 08 Sep 2011 16:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qE/ZXwMWHHWRgFBoRwr/WaAD/M1yF17lQL3VtL31BdI=; b=qBdSKq4Zk0jgcdmGzPxewBRepgxSVBzL7PG22U+adgb+AAiatmO8E1LJPSSmx7AnmX Ewd8oPNglaeEq5fCN+cFZo1vex5z/zZbt8twtDkV71DSo6vDi6RQv1QPjSPhUc3cgCeo r1zXFyYC+HuJcCZIxWugC4x0ClEMX3rEsCxZ8= MIME-Version: 1.0 Received: by 10.236.187.2 with SMTP id x2mr8281947yhm.95.1315525239248; Thu, 08 Sep 2011 16:40:39 -0700 (PDT) Received: by 10.236.103.6 with HTTP; Thu, 8 Sep 2011 16:40:39 -0700 (PDT) In-Reply-To: References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> Date: Fri, 9 Sep 2011 07:40:39 +0800 Message-ID: From: Adrian Chadd To: Josh Paetzel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" , Bernhard Schmidt Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 23:40:40 -0000 On 8 September 2011 23:47, Josh Paetzel wrote: > Oh. =A0That will be tougher. I think all the other wireless hosts are mac= s. I'll see what I can scrounge up. That's fine: tcpdump -ni en1 -I -s0 -l -w dump.pcap that's capital-i ("please put into monitor mode on my mac") and lowercase-l ("please line buffer/individual packet buffer".) Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 00:35:44 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D39591065670; Fri, 9 Sep 2011 00:35:44 +0000 (UTC) (envelope-from geoff@apro.com.au) Received: from mail.ricksure.com.au (mail.ricksure.com.au [203.98.89.150]) by mx1.freebsd.org (Postfix) with ESMTP id F09F88FC0A; Fri, 9 Sep 2011 00:35:41 +0000 (UTC) Received: from 171.78.233.220.static.exetel.com.au [220.233.78.171] by mail.ricksure.com.au with SMTP; Fri, 9 Sep 2011 10:35:24 +1000 From: Geoff Roberts Organization: Australian Projects To: Adrian Chadd Date: Fri, 9 Sep 2011 10:35:09 +1000 User-Agent: KMail/1.13.5 (Linux/2.6.32-33-generic; KDE/4.4.5; x86_64; ; ) References: <201108290134.50561.geoff@apro.com.au> <201109080354.10765.geoff@apro.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_98VaOblYnBkpr9l" Message-Id: <201109091035.09294.geoff@apro.com.au> X-Declude-Sender: geoff@apro.com.au [220.233.78.171] X-Declude-Spoolname: 40817100.eml X-Declude-RefID: X-Declude-Note: Scanned by Declude 4.6.35 "http://www.declude.com/x-note.htm" X-Declude-Scan: Outgoing Score [0] at 10:35:26 on 09 Sep 2011 X-Declude-Tests: Whitelisted X-Country-Chain: X-Declude-Code: 0 X-Declude-Recipcount: 2 Organization: Declude, Inc. X-Helo: ubuntutest-01.localnet X-RevDNS: Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros 5212 based card causing system freeze - suggested replacement? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: geoff@apro.com.au List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 00:35:44 -0000 --Boundary-00=_98VaOblYnBkpr9l Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Adrian, On Thu, 8 Sep 2011 02:09:16 pm you wrote: > Hm, ok. Let's try this. Put this into /boot/loader.conf: >=20 > hw.ath.hal.debug=3D0xffffffff > dev.ath.0.debug=3D0xffffffff Unfortunately I have those values already configured in /boot/loader.conf. = All=20 I get with these values is the output sent originally: > ath0: mem 0xfbce0000-0xfbceffff irq 19 at device 0.0 on p= ci4 > ath0: [ITHREAD] > ar5212Attach - sc 0xffffff0002447000 st 0x1 sh 0xffffff00fbce0000 > ar5212SetPowerMode: AWAKE -> AWAKE (set chip ) > ar5212SetPowerModeAwake: Bogus SCR 0xffffffff, PCICFG 0xffffffff If I don't have these values the boot error message is: > ath0: mem 0xfbce0000-0xfbceffff irq 19 at device 0.0 on p= ci4 > ath0: [ITHREAD] and then the freeze. I am cvsup'ed to RELENG_8, so if you would like me to run a patch or add an= y=20 extra debugging output that can be done. I've attached pciconf output (pciconf -lbcv) just in case there are any=20 conflicts or abnormalities you can see there. Kind regards, Geoff =2D-=20 ___________________________________ =46rom the desk of Geoff Roberts Chief Technology Officer AUSTRALIAN PROJECTS PTY LIMITED S A F E K N O W L E D G E IT Security - Data Protection Email: support@apro.com.au NATIONAL HELP DESK SUPPORT Sydney 02 4231 4222 Melbourne 03 9017 8222 Adelaide 08 6461 6222 Perth 08 8463 1222 Brisbane 07 3137 1555 Hobart 03 6281 2555 Canberra 02 6112 8855 ___________________________________ --Boundary-00=_98VaOblYnBkpr9l Content-Type: text/plain; charset="UTF-8"; name="pciconf.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="pciconf.txt" hostb0@pci0:0:0:0: class=0x060000 card=0x00000000 chip=0x01008086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' class = bridge subclass = HOST-PCI cap 09[e0] = vendor (length 12) Intel cap 0 version 1 pcib1@pci0:0:1:0: class=0x060400 card=0x50001458 chip=0x01018086 rev=0x09 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI cap 0d[88] = PCI Bridge card=0x50001458 cap 01[80] = powerspec 3 supports D0 D3 current D0 cap 05[90] = MSI supports 1 message cap 10[a0] = PCI-Express 2 root port max data 128(128) link x16(x16) ecap 0002[100] = VC 1 max VC0 ecap 0005[140] = unknown 1 vgapci1@pci0:0:2:0: class=0x038000 card=0xd0001458 chip=0x01028086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' class = display bar [10] = type Memory, range 64, base 0xfb400000, size 4194304, enabled bar [18] = type Prefetchable Memory, range 64, base 0xe0000000, size 268435456, enabled bar [20] = type I/O Port, range 32, base 0xff00, size 64, enabled cap 05[90] = MSI supports 1 message cap 01[d0] = powerspec 2 supports D0 D3 current D0 cap 13[a4] = PCI Advanced Features: FLR TP none0@pci0:0:22:0: class=0x078000 card=0x1c3a1458 chip=0x1c3a8086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' class = simple comms bar [10] = type Memory, range 64, base 0xfbfff000, size 16, enabled cap 01[50] = powerspec 3 supports D0 D3 current D0 cap 05[8c] = MSI supports 1 message, 64 bit ehci0@pci0:0:26:0: class=0x0c0320 card=0x50061458 chip=0x1c2d8086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' class = serial bus subclass = USB bar [10] = type Memory, range 32, base 0xfbffe000, size 1024, enabled cap 01[50] = powerspec 2 supports D0 D3 current D0 cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14 cap 13[98] = PCI Advanced Features: FLR TP hdac1@pci0:0:27:0: class=0x040300 card=0xa1021458 chip=0x1c208086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' class = multimedia subclass = HDA bar [10] = type Memory, range 64, base 0xfbff4000, size 16384, enabled cap 01[50] = powerspec 2 supports D0 D3 current D0 cap 05[60] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[70] = PCI-Express 1 root endpoint max data 128(128) link x0(x0) ecap 0002[100] = VC 1 max VC1 ecap 0005[130] = unknown 1 pcib2@pci0:0:28:0: class=0x060400 card=0x50011458 chip=0x1c108086 rev=0xb5 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x0(x1) cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x50011458 cap 01[a0] = powerspec 2 supports D0 D3 current D0 pcib3@pci0:0:28:3: class=0x060401 card=0x50011458 chip=0x244e8086 rev=0xb5 hdr=0x01 vendor = 'Intel Corporation' device = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x50011458 cap 01[a0] = powerspec 2 supports D0 D3 current D0 pcib5@pci0:0:28:4: class=0x060400 card=0x50011458 chip=0x1c188086 rev=0xb5 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x50011458 cap 01[a0] = powerspec 2 supports D0 D3 current D0 pcib6@pci0:0:28:5: class=0x060400 card=0x50011458 chip=0x1c1a8086 rev=0xb5 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x50011458 cap 01[a0] = powerspec 2 supports D0 D3 current D0 pcib7@pci0:0:28:6: class=0x060400 card=0x50011458 chip=0x1c1c8086 rev=0xb5 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x50011458 cap 01[a0] = powerspec 2 supports D0 D3 current D0 pcib8@pci0:0:28:7: class=0x060400 card=0x50011458 chip=0x1c1e8086 rev=0xb5 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x50011458 cap 01[a0] = powerspec 2 supports D0 D3 current D0 ehci1@pci0:0:29:0: class=0x0c0320 card=0x50061458 chip=0x1c268086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' class = serial bus subclass = USB bar [10] = type Memory, range 32, base 0xfbffd000, size 1024, enabled cap 01[50] = powerspec 2 supports D0 D3 current D0 cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14 cap 13[98] = PCI Advanced Features: FLR TP isab0@pci0:0:31:0: class=0x060100 card=0x50011458 chip=0x1c448086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' class = bridge subclass = PCI-ISA cap 09[e0] = vendor (length 12) Intel cap 1 version 0 features: AMT, 4 PCI-e x1 slots ahci1@pci0:0:31:2: class=0x010601 card=0xb0051458 chip=0x1c028086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' class = mass storage subclass = SATA bar [10] = type I/O Port, range 32, base 0xfe00, size 8, enabled bar [14] = type I/O Port, range 32, base 0xfd00, size 4, enabled bar [18] = type I/O Port, range 32, base 0xfc00, size 8, enabled bar [1c] = type I/O Port, range 32, base 0xfb00, size 4, enabled bar [20] = type I/O Port, range 32, base 0xfa00, size 32, enabled bar [24] = type Memory, range 32, base 0xfbffc000, size 2048, enabled cap 05[80] = MSI supports 1 message enabled with 1 message cap 01[70] = powerspec 3 supports D0 D3 current D0 cap 12[a8] = SATA Index-Data Pair cap 13[b0] = PCI Advanced Features: FLR TP ichsmb0@pci0:0:31:3: class=0x0c0500 card=0x50011458 chip=0x1c228086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' class = serial bus subclass = SMBus bar [10] = type Memory, range 64, base 0xfbffb000, size 256, enabled bar [20] = type I/O Port, range 32, base 0x500, size 32, enabled vgapci0@pci0:1:0:0: class=0x030000 card=0x34d51458 chip=0x0a6510de rev=0xa2 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'Nvidia 200 Series (GeForce 210)' class = display subclass = VGA bar [10] = type Memory, range 32, base 0xf9000000, size 16777216, enabled bar [14] = type Prefetchable Memory, range 64, base 0xc0000000, size 268435456, enabled bar [1c] = type Prefetchable Memory, range 64, base 0xde000000, size 33554432, enabled bar [24] = type I/O Port, range 32, base 0xcf00, size 128, enabled cap 01[60] = powerspec 3 supports D0 D3 current D0 cap 05[68] = MSI supports 1 message, 64 bit cap 10[78] = PCI-Express 2 endpoint max data 128(128) link x16(x16) cap 09[b4] = vendor (length 20) ecap 0002[100] = VC 1 max VC0 ecap 0004[128] = unknown 1 ecap 000b[600] = unknown 1 hdac0@pci0:1:0:1: class=0x040300 card=0x34d51458 chip=0x0be310de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' class = multimedia subclass = HDA bar [10] = type Memory, range 32, base 0xfaffc000, size 16384, enabled cap 01[60] = powerspec 3 supports D0 D3 current D0 cap 05[68] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[78] = PCI-Express 2 endpoint max data 128(128) link x16(x16) pcib4@pci0:3:0:0: class=0x060401 card=0x50001458 chip=0x88921283 rev=0x10 hdr=0x01 vendor = 'Integrated Technology Express (ITE) Inc' class = bridge subclass = PCI-PCI cap 01[90] = powerspec 2 supports D0 D1 D2 D3 current D0 cap 0d[a0] = PCI Bridge card=0x50001458 none1@pci0:4:0:0: class=0x020000 card=0x4d001385 chip=0x0013168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = '802.11a/b/g Wireless Adapter (AR2312)' class = network subclass = ethernet bar [10] = type Memory, range 32, base 0xfbce0000, size 65536, enabled cap 01[44] = powerspec 2 supports D0 D3 current D0 fxp0@pci0:4:1:0: class=0x020000 card=0x00408086 chip=0x12298086 rev=0x0c hdr=0x00 vendor = 'Intel Corporation' device = '82550/1/7/8/9 EtherExpress PRO/100(B) Ethernet Adapter' class = network subclass = ethernet bar [10] = type Memory, range 32, base 0xfbcff000, size 4096, enabled bar [14] = type I/O Port, range 32, base 0xbf00, size 64, enabled bar [18] = type Memory, range 32, base 0xfbca0000, size 131072, enabled cap 01[dc] = powerspec 2 supports D0 D1 D2 D3 current D0 fwohci0@pci0:4:2:0: class=0x0c0010 card=0x10001458 chip=0x30441106 rev=0xc0 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'VT6306 VIA Fire II IEEE-1394 OHCI Link Layer Controller' class = serial bus subclass = FireWire bar [10] = type Memory, range 32, base 0xfbcfe000, size 2048, enabled bar [14] = type I/O Port, range 32, base 0xbe00, size 128, enabled cap 01[50] = powerspec 2 supports D0 D2 D3 current D0 xhci0@pci0:5:0:0: class=0x0c0330 card=0x50071458 chip=0x70231b6f rev=0x01 hdr=0x00 class = serial bus subclass = USB bar [10] = type Memory, range 64, base 0xfbbf8000, size 32768, enabled cap 01[50] = powerspec 3 supports D0 D1 D2 D3 current D0 cap 05[70] = MSI supports 4 messages, 64 bit, vector masks cap 10[a0] = PCI-Express 2 endpoint max data 128(1024) link x1(x1) ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected ecap 0003[190] = Serial 1 0101010101010101 xhci1@pci0:6:0:0: class=0x0c0330 card=0x50071458 chip=0x70231b6f rev=0x01 hdr=0x00 class = serial bus subclass = USB bar [10] = type Memory, range 64, base 0xfbaf8000, size 32768, enabled cap 01[50] = powerspec 3 supports D0 D1 D2 D3 current D0 cap 05[70] = MSI supports 4 messages, 64 bit, vector masks cap 10[a0] = PCI-Express 2 endpoint max data 128(1024) link x1(x1) ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected ecap 0003[190] = Serial 1 0101010101010101 re0@pci0:7:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x06 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)' class = network subclass = ethernet bar [10] = type I/O Port, range 32, base 0xee00, size 256, enabled bar [18] = type Prefetchable Memory, range 64, base 0xfbeff000, size 4096, enabled bar [20] = type Prefetchable Memory, range 64, base 0xfbef8000, size 16384, enabled cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 cap 05[50] = MSI supports 1 message, 64 bit cap 10[70] = PCI-Express 2 endpoint IRQ 2 max data 128(128) link x1(x1) cap 11[b0] = MSI-X supports 4 messages in map 0x20 enabled cap 03[d0] = VPD ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected ecap 0002[140] = VC 1 max VC0 ecap 0003[160] = Serial 1 01000000684ce000 ahci0@pci0:8:0:0: class=0x010601 card=0xb0001458 chip=0x91721b4b rev=0x11 hdr=0x00 class = mass storage subclass = SATA bar [10] = type I/O Port, range 32, base 0xdf00, size 8, enabled bar [14] = type I/O Port, range 32, base 0xde00, size 4, enabled bar [18] = type I/O Port, range 32, base 0xdd00, size 8, enabled bar [1c] = type I/O Port, range 32, base 0xdc00, size 4, enabled bar [20] = type I/O Port, range 32, base 0xdb00, size 16, enabled bar [24] = type Memory, range 32, base 0xfbdff000, size 512, enabled cap 01[40] = powerspec 3 supports D0 D3 current D0 cap 05[50] = MSI supports 1 message enabled with 1 message cap 10[70] = PCI-Express 2 legacy endpoint max data 128(512) link x1(x1) ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected --Boundary-00=_98VaOblYnBkpr9l-- From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 07:38:31 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E20A4106566C; Fri, 9 Sep 2011 07:38:31 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 740498FC0C; Fri, 9 Sep 2011 07:38:31 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id D0F9F4AC31; Fri, 9 Sep 2011 11:38:28 +0400 (MSD) Date: Fri, 9 Sep 2011 11:38:24 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1607911768.20110909113824@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 07:38:32 -0000 Hello, Adrian. You wrote 9 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 3:39:23: > Do you have two antennas connected, or just one? Only one, as second port is marked as "5ghz" and I don't use it. But I have second pigtail and antenna, I'll connect it today and repeat experiments. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 08:02:47 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCF991065670 for ; Fri, 9 Sep 2011 08:02:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7D5AD8FC15 for ; Fri, 9 Sep 2011 08:02:47 +0000 (UTC) Received: by gyf2 with SMTP id 2so1650091gyf.13 for ; Fri, 09 Sep 2011 01:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5KAGxeZJjnxJ71gTj2flT3VjBTShO6rnkKeU3a4iMyE=; b=RJ08Rf5p9/ZrNWaZemmsu5i7Qx2eAYRErx7q1llELX0LM+AhIDPEHJF+/9BEuUhN3T sFTn73ArS2+mH/uQfyGp+FyxevKJjJG0p12pgmv7h47zAsgxYTdK71SysTxx94aF1DZ5 JK0iGygENPNj2fQp1k/uyh4s7FWd/5iDLvE0Y= MIME-Version: 1.0 Received: by 10.236.200.137 with SMTP id z9mr10073769yhn.27.1315555366845; Fri, 09 Sep 2011 01:02:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Fri, 9 Sep 2011 01:02:46 -0700 (PDT) In-Reply-To: <1607911768.20110909113824@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> Date: Fri, 9 Sep 2011 16:02:46 +0800 X-Google-Sender-Auth: hpQtRxVL6QkODCYQV9TJshLOjRs Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 08:02:47 -0000 2011/9/9 Lev Serebryakov : > Hello, Adrian. > You wrote 9 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 3:39:23: > >> Do you have two antennas connected, or just one? > =9AOnly one, as second port is marked as "5ghz" and I don't use it. But > =9AI have second pigtail and antenna, I'll connect it today and repeat > =9Aexperiments. Try forcing the TX/RX antenna then. Look at the output of athstats - see how rx antenna isn't balanced? I bet half your problem is that half your packets are going in/out of a disconnected antenna. Antenna profile: [1] tx 8543738 rx 4922481 [2] tx 544837 rx 14216 See? :) Try sysctl dev.ath.0.diversity=3D0 sysctl dev.ath.0.txantenna=3D1 sysctl dev.ath.0.rxantenna=3D1 See if that improves things. If not, try antennas =3D 2. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 10:53:45 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 174FD1065674; Fri, 9 Sep 2011 10:53:45 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id BADDE8FC14; Fri, 9 Sep 2011 10:53:44 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 1832E4AC31; Fri, 9 Sep 2011 14:53:43 +0400 (MSD) Date: Fri, 9 Sep 2011 14:53:38 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1853154884.20110909145338@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 10:53:45 -0000 Hello, Adrian. You wrote 9 =D3=C5=CE=D4=D1=C2=D2=D1 2011 =C7., 12:02:46: > Try forcing the TX/RX antenna then. Look at the output of athstats - > see how rx antenna isn't balanced? > I bet half your problem is that half your packets are going in/out of > a disconnected antenna. > Antenna profile: > [1] tx 8543738 rx 4922481 > [2] tx 544837 rx 14216 > See? :) > Try sysctl dev.ath.0.diversity=3D0 > sysctl dev.ath.0.txantenna=3D1 > sysctl dev.ath.0.rxantenna=3D1 > See if that improves things. If not, try antennas =3D 2. No luck. I've attached second antenna (exactly the same long rubberduck 9-10dB model, I have two of them at hands). Result is the same: "formal" speed is 54M often, but speed is only 4-5Mbit today (yesterday it was 10Mbit!), I've tried both antennas by one (diversity=3D0, [tx|rx]antennas=3D[1|2]), results are exactly the same. Yes, athstats shows, that these sysctls works (counters for disabled antenna stop), but bandwidth is the same. Here is output of athstats after almost hour of "iperf", mostly with both antennas turned on (before experiments with diversity it was only 2400 rx frames on second antenna and about 200K vs 1M tx frames 1st vs 2nd antennas). gateway# ./athstats9 958888 data frames received 1583913 data frames transmit 55853 tx frames with an alternate rate 988328 long on-chip tx retries 20281 tx failed 'cuz too many retries 24M current transmit rate 151 tx frames with no ack marked 1556918 tx frames with short preamble 18443 rx failed 'cuz of bad CRC 100 rx failed 'cuz of PHY err 4 OFDM restart 96 CCK restart 32683 beacons transmitted 112 periodic calibrations -0/+0 TDMA slot adjust (usecs, smoothed) 41 rssi of last ack 36 avg recv rssi -95 rx noise floor 26844 tx frames through raw api 12 cabq frames transmitted 2 cabq xmit overflowed beacon interval 41 switched default/rx antenna 4 noise immunity level 2 spur immunity level 8 ANI increased noise immunity 6 ANI increased spur immunity 2 ANI decrease spur immunity 4 ANI enabled OFDM weak signal detect 4 ANI disabled CCK weak signal threshold 28509691 cumulative OFDM phy error count 291680 cumulative CCK phy error count 68 ANI forced listen time to zero 988311 missing ACK's 24474 bad FCS 11 average rssi (beacons only) Antenna profile: [1] tx 1188167 rx 942337 [2] tx 375448 rx 16551 --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 11:06:04 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 696A5106564A for ; Fri, 9 Sep 2011 11:06:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1A1208FC12 for ; Fri, 9 Sep 2011 11:06:03 +0000 (UTC) Received: by yxk36 with SMTP id 36so1766442yxk.13 for ; Fri, 09 Sep 2011 04:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=cxO7r1L1HvSR+cIMuLzjUL4lyHGV8Db1t/gAs4+9JOw=; b=tWnJKoXrg1u+prr4c2ilzCcfxel63u1c9n42HXOoPmgnICACfAZ20W1VHDVZbttfB7 wSCjRtjSdUMN0OH7WIVSBCtXOYSjwBE767qbtY0rSdcSoXinW9DbKBghZFPEAeKKrZ8g j97cWS1/j2JIokXeoTXpKFFuKwOZ1vxqBuAeE= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr10943004yhl.112.1315566363172; Fri, 09 Sep 2011 04:06:03 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Fri, 9 Sep 2011 04:06:03 -0700 (PDT) In-Reply-To: <1853154884.20110909145338@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <1853154884.20110909145338@serebryakov.spb.ru> Date: Fri, 9 Sep 2011 19:06:03 +0800 X-Google-Sender-Auth: CuG6UtaH_4wM8-4wXTSMZPvCLjQ Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 11:06:04 -0000 Right, but this is where you now do some more digging. :) (This is how I started hacking on atheros/net80211 stuff about 18 months ago. I was in the same situation you were, only with the Ubiquiti 11n and SR-2 NICs.) I'd suggest looking at the output of athstats whilst you're doing traffic: $ athstats 1 And look at the output of the sample rate control algorithm: # sysctl dev.ath.0.sample_stats=1 (then check dmesg) Let's split it into two halves: TX and RX. For TX errors, you'll see things like ackbad, long/short retries. For RX errors, you'll see lots of CRC errors. You'll also see OFDM/CCK errors if your environment is noisy (and you've got ANI enabled.) Forcing the tx/rx antenna will likely fix the stability of the ACKs seen. As for the throughput, look at the output of TX/RX, look at the per-rate retry and error rates being seen, and start to figure out what's going on. You can use iperf UDP tests in each direction to test out one-way traffic - TCP stresses both directions; UDP stresses data in one and 802.11 ACKs in the other. Finally, I bet yes - running the NIC at half its rated TX power is likely going to make things easier to deal with. It won't be using the full TX power at higher rates anyway- ie, although the NIC is rated at 600mW, that'll be at the lowest TX rates (1MBit), I bet at 54MBit it's only transmitting at 100mW. Since you want to get higher throughput, why run the NIC at a higher TX power than what the 54mbit rate will TX at? :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 11:29:50 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8B1D1065679 for ; Fri, 9 Sep 2011 11:29:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id 9D3998FC1B for ; Fri, 9 Sep 2011 11:29:50 +0000 (UTC) Received: by mail-gw0-f49.google.com with SMTP id 1so1264280gwb.36 for ; Fri, 09 Sep 2011 04:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=lK9GaDZE5ZDJheCqEdsXbitwdN5b8U3Wja0ZE5mOaek=; b=EFrBn2O39uu1H1FrXkR7wj/dobp//EVa6mZUasVXfos+lUD+HKGpxceqQ7J20jjkZC aX/76RVNZu+24pjB32K43vjZnNZuQSG38zjIARDvveuAesiSgnDbjpT7BXt6wA10YnlK qf2FB8dYVwqhBrQW/e7AaR/GJ9QVpNeCV0Jog= MIME-Version: 1.0 Received: by 10.236.144.193 with SMTP id n41mr10975348yhj.78.1315567790417; Fri, 09 Sep 2011 04:29:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Fri, 9 Sep 2011 04:29:50 -0700 (PDT) Date: Fri, 9 Sep 2011 19:29:50 +0800 X-Google-Sender-Auth: vW5iaV5SsaWRgaUzIGY3vUWF2Ng Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Ath 11n TX update X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 11:29:50 -0000 Hi, I've fixed a bunch of TX related bugs which has made TX quite a bit more stable. There's still one bug which is causing TX timeouts. I've added some further debugging to the TX code. I'd appreciate it if people would be willing to update and test this code. I think it's almost ready to be used in station mode. The lack of filtered frames handling is going to make hostap support of power-saving stations perform quite badly. The only real problems right now: * The lack of BAR frame sending means that there will be traffic pauses in certain situations. What I may do is flip on the printfs again so you'll at least see -when- the BAR frames would be TXed. * The rate control code is still suboptimal and looks to be the primary reason why TCP TX throughput doesn't remain very stable. It's still usable though! Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 11:57:30 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4222C106564A; Fri, 9 Sep 2011 11:57:30 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-gx0-f179.google.com (mail-gx0-f179.google.com [209.85.161.179]) by mx1.freebsd.org (Postfix) with ESMTP id E55488FC1A; Fri, 9 Sep 2011 11:57:29 +0000 (UTC) Received: by gxk1 with SMTP id 1so1140819gxk.10 for ; Fri, 09 Sep 2011 04:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nyWWF6ODUFJ9NWP/swTsY96ZcbMDQqPSetnaUe6jGos=; b=lWLDWR6qLtneZggGpxfD75mVQu1+n4M0OybFhU9zpCezPungwzCtU1pXH/uHCG/heP u5ixlMtZWIXY1YrZ8CoP197Layz33tclOuX60VFve37iBwUfZnJ72T5/NR/olCLoANQt jtsEIgw9Vsdd2bIhIYxPFatjQMjP80oXqrijs= MIME-Version: 1.0 Received: by 10.68.16.202 with SMTP id i10mr113412pbd.5.1315569448483; Fri, 09 Sep 2011 04:57:28 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Fri, 9 Sep 2011 04:57:28 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Sep 2011 13:57:28 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Ath 11n TX update X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 11:57:30 -0000 On Fri, Sep 9, 2011 at 1:29 PM, Adrian Chadd wrote: > Hi, > > I've fixed a bunch of TX related bugs which has made TX quite a bit more > stable. > > There's still one bug which is causing TX timeouts. I've added some > further debugging to the TX code. > > I'd appreciate it if people would be willing to update and test this > code. I think it's almost ready to be used in station mode. > The lack of filtered frames handling is going to make hostap support > of power-saving stations perform quite badly. > > The only real problems right now: > > * The lack of BAR frame sending means that there will be traffic > pauses in certain situations. > What I may do is flip on the printfs again so you'll at least see > -when- the BAR frames would be TXed. > > * The rate control code is still suboptimal and looks to be the > primary reason why TCP TX throughput doesn't remain very stable. It's > still usable though! > > Thanks, > > > Adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " > Hello Adrian latest svn update (225460) has errror in if_ath_tx.c -c /root/ath/head/sys/modules/ath/../../dev/ath/if_ath_tx.c cc1: warnings being treated as errors /root/ath/head/sys/modules/ath/../../dev/ath/if_ath_tx.c: In function 'ath_tx_addto_baw': /root/ath/head/sys/modules/ath/../../dev/ath/if_ath_tx.c:1825: warning: 'tap' is used uninitialized in this function *** Error code 1 Stop in /root/ath/head/sys/modules/ath. Beri From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 12:00:25 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DC7510656A6 for ; Fri, 9 Sep 2011 12:00:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 75D608FC0A for ; Fri, 9 Sep 2011 12:00:05 +0000 (UTC) Received: by gyf2 with SMTP id 2so1813548gyf.13 for ; Fri, 09 Sep 2011 05:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=pwQedxcZYnvoejMqIQKiTkePqKQrFUz1N3c0XmMN8XU=; b=llVf1NzByF28fHTIy0PIi1W7VSMJEIr5+uvXKzKVUaJkbR8WSof1gsowQljHKiZIVE XFfGTXQmldAIXSTDAZTjwF9vtZa//LUiImYdS08yr4Hlu4WXyyo7ekQlayas+KHy6Jw7 iF7tGtGveQRDk2leGbcfNacWgy7bVrLqmMa2c= MIME-Version: 1.0 Received: by 10.236.37.230 with SMTP id y66mr11601764yha.10.1315569605049; Fri, 09 Sep 2011 05:00:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Fri, 9 Sep 2011 05:00:04 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Sep 2011 20:00:04 +0800 X-Google-Sender-Auth: gKF8Fa-aSvhYGs4G9OZX6u2PiGE Message-ID: From: Adrian Chadd To: Berislav Purgar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Ath 11n TX update X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 12:00:25 -0000 I've just committed a fix to this. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 12:03:30 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 246D610656E2; Fri, 9 Sep 2011 12:03:30 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 640F28FC16; Fri, 9 Sep 2011 12:03:28 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 6DD2A4AC31; Fri, 9 Sep 2011 15:46:19 +0400 (MSD) Date: Fri, 9 Sep 2011 15:46:14 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <140679489.20110909154614@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <1853154884.20110909145338@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 12:03:30 -0000 Hello, Adrian. You wrote 9 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 15:06:03: > I'd suggest looking at the output of athstats whilst you're doing traffic: > $ athstats 1 Ok. It looks not so bad. AP sends UDP to client, 54Mbit limit (real rtate is about 4-5Mbit): input output altrate short long xretry crcerr crypt phyerr rssi = rate 1190628 1985635 73453 0 1305995 27990 22934 0 215 36 = 54M 18 477 21 0 380 8 0 0 0 34 = 24M 19 578 25 0 414 8 1 0 0 37 = 54M 18 549 21 0 394 8 0 0 0 37 = 54M 19 611 19 0 420 9 0 0 0 37 = 54M 16 570 37 0 483 8 0 0 0 37 = 54M 21 319 34 0 472 11 0 0 1 37 = 24M 19 479 18 0 371 8 0 0 0 36 = 54M 25 406 19 0 355 8 1 0 0 36 = 24M 10 487 28 0 347 5 0 0 0 37 = 54M 20 467 22 0 368 8 0 0 0 38 = 54M 18 708 18 0 389 8 0 0 0 38 = 54M 24 575 20 0 377 9 0 0 0 38 = 54M 21 449 20 0 360 7 2 0 0 37 = 24M 19 478 40 0 482 8 0 0 0 43 = 24M 15 563 10 0 306 6 1 0 0 43 = 54M 22 480 32 0 434 7 0 0 0 43 = 54M 19 608 19 0 364 5 0 0 0 45 = 24M 17 730 14 0 373 8 0 0 0 44 = 24M 22 573 15 0 351 9 0 0 0 45 = 54M 18 425 8 0 279 6 0 0 0 44 = 54M It looks like xretry is about 2%. It doesn't look bad. And almost 50% of time it should be 54M and it doesn't drop under 24M. > And look at the output of the sample rate control algorithm: > # sysctl dev.ath.0.sample_stats=3D1 > (then check dmesg) [00:18:de:08:e8:1d] refcnt 565 static_rix -1 ratemask 0xfcf [ 250] cur rix 7 (18 Mb ) since switch: packets 9 ticks 5035977 [ 250] last sample 8 cur sample -1 packets sent 53 [ 250] packets since sample 9 sample tt 492 [1600] cur rix 11 (54 Mb ) since switch: packets 365 ticks 5412324 [1600] last sample 10 cur sample -1 packets sent 550587 [1600] packets since sample 8 sample tt 6572 [ 1 Mb : 250] 8:8 (100%) T 12 F 0 avg 5788 last 577= 382 [ 1 Mb :1600] 11064:2392 ( 21%) T 29614 F 8 avg 27007 last 41 [ 2 Mb :1600] 662:365 ( 55%) T 3538 F 1 avg 54480 last 5381 [ 5 Mb :1600] 2771:2313 ( 83%) T 8758 F 0 avg 25327 last 2637 [11 Mb :1600] 30750:29636 ( 96%) T 46928 F 0 avg 13938 last 809 [12 Mb : 250] 3:3 (100%) T 4 F 0 avg 862 last 667= 362 [12 Mb :1600] 15715:11224 ( 71%) T 53044 F 1 avg 16555 last 35 [18 Mb : 250] 13:13 (100%) T 15 F 0 avg 644 last 377= 066 [18 Mb :1600] 26291:20704 ( 78%) T 92818 F 0 avg 12800 last 31 [24 Mb : 250] 23:23 (100%) T 28 F 0 avg 773 last 557= 829 [24 Mb :1600] 254064:240957 ( 94%) T 451739 F 0 avg 1811 last 1 [36 Mb : 250] 4:4 (100%) T 6 F 0 avg 978 last 187= 3005 [36 Mb :1600] 66351:58850 ( 88%) T 149091 F 0 avg 13597 last 208 [48 Mb : 250] 10:10 (100%) T 15 F 0 avg 805 last 562= 244 [48 Mb :1600] 33675:28151 ( 83%) T 114032 F 0 avg 11914 last 2 [54 Mb : 250] 1:0 ( 0%) T 5 F 1 avg 5407 last 227= 9726 [54 Mb :1600] 170731:158102 ( 92%) T 316993 F 0 avg 1016 last 4 > Let's split it into two halves: TX and RX. For TX errors, you'll see > things like ackbad, long/short retries. For RX errors, you'll see lots > of CRC errors. Other way round, client sends UDP: input output altrate short long xretry crcerr crypt phyerr rssi = rate 1276120 2183304 79113 0 1427069 30743 28858 0 234 38 = 54M 1128 107 14 0 202 7 106 0 0 39 = 54M 1085 104 18 0 209 6 55 0 0 35 = 54M 1248 109 1 0 103 6 149 0 0 39 = 24M 1067 104 2 0 96 3 144 0 0 39 = 24M 1027 108 2 0 100 5 43 0 0 39 = 24M 1201 103 4 0 105 4 101 0 0 39 = 24M 1172 109 2 0 109 5 83 0 0 37 = 24M 1109 110 1 0 70 4 48 0 0 36 = 24M 1251 107 2 0 62 2 33 0 0 38 = 24M 1115 110 2 0 98 4 79 0 0 40 = 24M 1055 108 1 0 89 4 71 0 0 40 = 24M 1189 108 1 0 102 6 35 0 0 39 = 24M 1204 105 3 0 109 5 105 0 0 38 = 24M 1321 104 1 0 80 5 122 0 0 37 = 24M 994 108 3 0 98 5 61 0 0 38 = 24M 904 108 5 0 143 6 96 0 0 38 = 24M 968 107 3 0 110 4 73 0 1 36 = 24M 1169 103 0 0 80 4 39 0 0 39 = 11M 1155 108 3 0 96 4 94 0 0 38 = 18M 1284 108 1 0 63 4 125 0 0 38 = 24M CRC errors is about 10%. Not good... And sample rate output: [00:18:de:08:e8:1d] refcnt 3 static_rix -1 ratemask 0xfcf [ 250] cur rix 8 (24 Mb ) since switch: packets 2 ticks 5768421 [ 250] last sample 7 cur sample -1 packets sent 79 [ 250] packets since sample 2 sample tt 1317 [1600] cur rix 8 (24 Mb ) since switch: packets 57 ticks 5771528 [1600] last sample 6 cur sample -1 packets sent 670528 [1600] packets since sample 69 sample tt 37745 [ 1 Mb : 250] 10:10 (100%) T 15 F 0 avg 5656 last 405= 48 [ 1 Mb :1600] 13208:2737 ( 20%) T 35551 F 0 avg 28160 last 869 [ 2 Mb :1600] 780:395 ( 50%) T 4264 F 1 avg 59404 last 232= 32 [ 5 Mb :1600] 3088:2541 ( 82%) T 10072 F 0 avg 23252 last 878 [11 Mb : 250] 1:1 (100%) T 6 F 0 avg 18948 last 406= 17 [11 Mb :1600] 35830:34548 ( 96%) T 54574 F 0 avg 5453 last 885 [12 Mb : 250] 5:5 (100%) T 14 F 0 avg 4996 last 406= 47 [12 Mb :1600] 16751:11586 ( 69%) T 58615 F 0 avg 29124 last 855 [18 Mb : 250] 28:27 ( 96%) T 44 F 0 avg 1840 last 273= 30 [18 Mb :1600] 27823:21543 ( 77%) T 101709 F 0 avg 27987 last 879 [24 Mb : 250] 31:30 ( 96%) T 40 F 0 avg 886 last 2506 [24 Mb :1600] 292880:278615 ( 95%) T 512732 F 0 avg 1224 last 82 [36 Mb : 250] 6:6 (100%) T 10 F 0 avg 1149 last 386= 19 [36 Mb :1600] 69311:60752 ( 87%) T 161093 F 0 avg 9474 last 1130 [48 Mb : 250] 12:11 ( 91%) T 23 F 0 avg 1332 last 386= 19 [48 Mb :1600] 37809:31186 ( 82%) T 135498 F 0 avg 11207 last 1054 [54 Mb : 250] 1:0 ( 0%) T 5 F 1 avg 5407 last 263= 8461 [54 Mb :1600] 245282:229102 ( 93%) T 437345 F 4 avg 9288 last 399= 72 > Finally, I bet yes - running the NIC at half its rated TX power is > likely going to make things easier to deal with. It won't be using the > full TX power at higher rates anyway- ie, although the NIC is rated at > 600mW, that'll be at the lowest TX rates (1MBit), I bet at 54MBit it's > only transmitting at 100mW. Since you want to get higher throughput, > why run the NIC at a higher TX power than what the 54mbit rate will TX > at? :) :) Slightly more -- 23dBm, where 20dBm is 100mW :) But I limited card to 20 (100mW) with exactly the same result. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 12:05:06 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CBAA1065670; Fri, 9 Sep 2011 12:05:06 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id E20808FC0A; Fri, 9 Sep 2011 12:05:05 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 440284AC31; Fri, 9 Sep 2011 16:04:34 +0400 (MSD) Date: Fri, 9 Sep 2011 16:04:29 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1903660247.20110909160429@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <1853154884.20110909145338@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 12:05:06 -0000 Hello, Adrian. You wrote 9 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 15:06:03: > Right, but this is where you now do some more digging. :) Ok, I have friend of mine with his not-so-old notebook here. It could do 802.11a, channels 36-64 and 149-165. It works worse than 802.11g. Signal strength is lower when two notebooks are side-by-side and bandwidth is almost the same or lower. This firend's notebook shows exactly the same performance for 802.11g as mine, so, I think, they have comparable cards and antennas inside. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 12:08:43 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0075F106566B for ; Fri, 9 Sep 2011 12:08:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f179.google.com (mail-gx0-f179.google.com [209.85.161.179]) by mx1.freebsd.org (Postfix) with ESMTP id A568F8FC12 for ; Fri, 9 Sep 2011 12:08:42 +0000 (UTC) Received: by gxk1 with SMTP id 1so1152231gxk.10 for ; Fri, 09 Sep 2011 05:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=i6rTWsJJPilraw/v2jpGIaWfvvEHVtbCdPF3Qh2v3K4=; b=pJJ1QjSu2Mr1h6LdnEoF6wxz7lpyXbVS6/sq0h2BydBRKmhHCg4vM8sYBEz5/Q7/HW mpYD3rXF44s9h1ejhsGcJKdhVG27WsBspsIuZT5jEgAvBdy36oEOVMl8mJ1FSLgnD/Ch UlusAS2b26XVNC7viKXTyqwzV0X9N4GvCzmDQ= MIME-Version: 1.0 Received: by 10.236.37.230 with SMTP id y66mr11653797yha.10.1315570122017; Fri, 09 Sep 2011 05:08:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Fri, 9 Sep 2011 05:08:41 -0700 (PDT) In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <1853154884.20110909145338@serebryakov.spb.ru> <140679489.20110909154614@serebryakov.spb.ru> Date: Fri, 9 Sep 2011 20:08:41 +0800 X-Google-Sender-Auth: bkMCly-LAYF_QKRIjLn09eRe5I0 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 12:08:43 -0000 .. I forgot to cc- the list. Also to clarify: * short retries are "I sent an RTS but didn't hear a CTS." * long retries are "I sent the frame but didn't hear an ACK." Since the default athstats doesn't spit out the ofdm and cck errors, try this: athstats -o input,output,altrate,short,long,xretry,crcerr,crypt,phyerr,rssi,ofdm,cck,rate 1 Adrian On 9 September 2011 20:06, Adrian Chadd wrote: > Right. > > xretry means "exceeded retries". Ie, all the chip retries failed. > > On the TX side of things - look at how high your long retry count is. > That means the chip TXed the frame and it didn't hear an ACK back. > > Let's focus on RX for now, as TX may just be a little screwy. > > Try a 20mbit UDP test stream from the client -> hostap -> server: > > server: > > iperf -su -i 1 > > iperf -c -ub 20m -t 30 > > Then see what the receive rate is like. > > > > adrian > From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 15:33:33 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E679106566B; Fri, 9 Sep 2011 15:33:33 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8AAD08FC12; Fri, 9 Sep 2011 15:33:32 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id F08594AC58; Fri, 9 Sep 2011 19:33:30 +0400 (MSD) Date: Fri, 9 Sep 2011 19:33:26 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <192542574.20110909193326@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <185315 4884.20110909145338@serebryakov.spb.ru> <140679489.20110909154614@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 15:33:33 -0000 Hello, Adrian. You wrote 9 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 16:08:41: > * short retries are "I sent an RTS but didn't hear a CTS." > * long retries are "I sent the frame but didn't hear an ACK." Thanks for explanation. > Since the default athstats doesn't spit out the ofdm and cck errors, try = this: > athstats -o > input,output,altrate,short,long,xretry,crcerr,crypt,phyerr,rssi,ofdm,cck,= rate > 1 UDP Client -> Server, 20Mbit limited, from server's point of view: [ 3] 63.0-64.0 sec 1.30 MBytes 10.9 Mbits/sec 1.231 ms 0/ 927 (0%) [ 3] 64.0-65.0 sec 917 KBytes 7.51 Mbits/sec 9.829 ms 4/ 643 (0.6= 2%) [ 3] 65.0-66.0 sec 929 KBytes 7.61 Mbits/sec 4.200 ms 4/ 651 (0.6= 1%) [ 3] 66.0-67.0 sec 1.21 MBytes 10.1 Mbits/sec 1.662 ms 4/ 864 (0.4= 6%) [ 3] 67.0-68.0 sec 923 KBytes 7.56 Mbits/sec 1.172 ms 4/ 647 (0.6= 2%) [ 3] 68.0-69.0 sec 1.15 MBytes 9.68 Mbits/sec 1.116 ms 5/ 828 (0.6= %) [ 3] 69.0-70.0 sec 1.15 MBytes 9.65 Mbits/sec 0.889 ms 3/ 824 (0.3= 6%) [ 3] 70.0-71.0 sec 1.14 MBytes 9.58 Mbits/sec 1.073 ms 5/ 820 (0.6= 1%) athstat's point of view: input output altrate short long xretry crcerr crypt phyerr rssi = OFDM CCK rate 2734208 3163110 99418 0 2004400 60564 98493 0 2398 37 = 264025506 2028885 24M 563 7 0 0 1 0 246 0 0 37 = 13622 167 24M 910 10 0 0 13 3 186 0 1 36 = 8170 131 24M 699 9 0 0 8 2 221 0 2 36 = 11723 130 24M 795 9 0 0 6 1 221 0 2 37 = 10411 222 24M 846 9 0 0 8 1 175 0 0 36 = 8884 121 24M 872 11 0 0 12 1 199 0 1 36 = 9784 148 24M 947 8 0 0 0 0 153 0 2 36 = 7855 120 24M 883 8 0 0 6 1 129 0 0 37 = 8994 113 24M 836 9 0 0 8 2 195 0 0 36 = 9243 93 24M 912 5 0 0 6 1 213 0 2 36 = 10616 106 24M 1048 10 0 0 3 0 169 0 2 37 = 9601 93 24M 1047 10 0 0 6 1 148 0 0 37 = 10565 93 24M 685 12 0 0 20 5 233 0 0 36 = 12632 102 24M 719 9 0 0 4 1 255 0 0 36 = 12199 111 24M 854 8 0 0 1 0 183 0 0 36 = 10493 96 24M 907 6 0 0 3 0 198 0 0 36 = 9169 86 24M 848 8 0 0 4 0 190 0 0 36 = 11049 93 24M 444 8 0 0 4 1 189 0 0 37 = 14784 100 24M 604 9 0 0 0 0 156 0 0 35 = 12800 102 24M 1010 9 0 0 6 1 236 0 0 36 = 10268 86 24M --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 15:37:58 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9712C106564A for ; Fri, 9 Sep 2011 15:37:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f173.google.com (mail-vx0-f173.google.com [209.85.220.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4614B8FC17 for ; Fri, 9 Sep 2011 15:37:57 +0000 (UTC) Received: by vxj15 with SMTP id 15so1129304vxj.18 for ; Fri, 09 Sep 2011 08:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=bCpAPilasl6Dj44g0uQAFJTU2qTp2AKc2pX91gG0kNM=; b=DVAE/nFrcjxKYMBxwaMOnIXRnuB3mejD0Z1Wxbg7ppXoRiboAKSyyJeeMWHZVP3MbP A1jhBNZOk6d6hFYbQ0pAQUgKDSObNKDpYBs8r8auYiTwFii6GYmQdMBFtHXHwJYnMoWf gbKNMRBN+5XKR69POVwIG6rPTHnF6/bfdnX8s= MIME-Version: 1.0 Received: by 10.52.20.106 with SMTP id m10mr1208397vde.328.1315582677548; Fri, 09 Sep 2011 08:37:57 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.33.49 with HTTP; Fri, 9 Sep 2011 08:37:57 -0700 (PDT) In-Reply-To: <192542574.20110909193326@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <140679489.20110909154614@serebryakov.spb.ru> <192542574.20110909193326@serebryakov.spb.ru> Date: Fri, 9 Sep 2011 23:37:57 +0800 X-Google-Sender-Auth: XHyJ8VAV8PlXAvpOsIFPC8uO5OM Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 15:37:58 -0000 Look at all of those OFDM errors. That's a big, big part of your problem. It's possible that there's some problem with the driver code and it's somehow setting up the RX side of your NIC incorrectly, causing lots of those OFDM errors. But it's also very likely you've just got a lot of noise in your local environment. You could try disabling ANI (sysctl dev.ath.0.intmit=0) and see if things behave better/worse. You won't get OFDM/CCK error counts though, so don't assume "0" for those counts magically means they went away. I haven't yet tidied up and committed tools which let you tweak the ANI settings manually. This may be of some help/interest to you. Finally, if you/someone sends me one of those NICs, I can try using it here and see how it behaves. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 9 16:12:55 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB187106566C; Fri, 9 Sep 2011 16:12:55 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8E0208FC16; Fri, 9 Sep 2011 16:12:55 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id D54DC4AC31; Fri, 9 Sep 2011 20:12:53 +0400 (MSD) Date: Fri, 9 Sep 2011 20:12:49 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1181080993.20110909201249@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <140679489.20110909154614@serebryakov.spb.ru> <192542574.20110909193326@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 16:12:55 -0000 Hello, Adrian. You wrote 9 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 19:37:57: > Look at all of those OFDM errors. That's a big, big part of your problem. Yep. I've been almost sure, that this is not normal to see such big numbers here. > It's possible that there's some problem with the driver code and it's > somehow setting up the RX side of your NIC incorrectly, causing lots > of those OFDM errors. > But it's also very likely you've just got a lot of noise in your local > environment. Interesting question, is it possible to measure noise without spending $100K on special hardware? And, is it possible, that cause of these errors is that card is broken? Overheated some time ago, for example -- case of my AP is not very well ventilated, unfortunately, it is Soekris net5501 in its standard case and it is very hot sometimes. > You could try disabling ANI (sysctl dev.ath.0.intmit=3D0) and see if > things behave better/worse. You won't get OFDM/CCK error counts > though, so don't assume "0" for those counts magically means they went > away. Stable 36M from athstat and 9-10Mbit UDP from client to server. Changing this sysctl back and forth doesn't affect bandwidth. BTW, it seems, that problems is (partially) with noise in environment -- speed vary from day to day... > Finally, if you/someone sends me one of those NICs, I can try using it > here and see how it behaves. :) It seems, they are discounted :( I could not find any in-stock. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 04:14:32 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BB64106564A; Sat, 10 Sep 2011 04:14:32 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id C576F8FC08; Sat, 10 Sep 2011 04:14:31 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 24A3129A9A; Sat, 10 Sep 2011 00:14:31 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Sat, 10 Sep 2011 00:14:31 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:from :subject:date:to; s=smtpout; bh=2ZDEnw9c4AaVrWcPetAGN2s5awU=; b= qqyiwJTrG2P3rJHsQn1NrO+Qph3/rJLOzCXmrUJ9Zs9P73NXmpUcuJmT9ALeQ31K tWQnl55EfLT0IYp1zO2K1zCqP2E6zbLgRYDLFDTgkSxgVaHhfeYE+5SazDvtiKlY 4BcWJc8rls9ghWCX34pIMLKVAPKKRQ7vFXqA9G/FsE0= X-Sasl-enc: vaoEu7szdR/raj57rJkd5aH6jHOJwtxD+7Sg/ZgEM4/0 1315628070 Received: from [10.50.64.76] (unknown [166.205.139.11]) by mail.messagingengine.com (Postfix) with ESMTPSA id B02DA780C24; Sat, 10 Sep 2011 00:14:30 -0400 (EDT) References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8K2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <9486857B-D177-437A-8894-A57A8AE26409@FreeBSD.org> X-Mailer: iPhone Mail (8K2) From: Josh Paetzel Date: Fri, 9 Sep 2011 21:14:23 -0700 To: Adrian Chadd Cc: Josh Paetzel , "freebsd-wireless@freebsd.org" , Bernhard Schmidt Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 04:14:32 -0000 On Sep 8, 2011, at 4:40 PM, Adrian Chadd wrote: > On 8 September 2011 23:47, Josh Paetzel wrote: >> Oh. That will be tougher. I think all the other wireless hosts are macs.= I'll see what I can scrounge up. >=20 > That's fine: >=20 > tcpdump -ni en1 -I -s0 -l -w dump.pcap >=20 > that's capital-i ("please put into monitor mode on my mac") and > lowercase-l ("please line buffer/individual packet buffer".) >=20 >=20 > Adrian The watched pot never boils. Both times I tried to gather diagnostic info I w= as never disconnected.=20 Thanks, Josh= From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 04:16:14 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C88561065672; Sat, 10 Sep 2011 04:16:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f179.google.com (mail-gx0-f179.google.com [209.85.161.179]) by mx1.freebsd.org (Postfix) with ESMTP id 5AE8D8FC21; Sat, 10 Sep 2011 04:16:13 +0000 (UTC) Received: by gxk1 with SMTP id 1so2097417gxk.10 for ; Fri, 09 Sep 2011 21:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lcajRqMt+hQymQTv4ZLQvrFR7NoS1y5eYu7GTp0eZxU=; b=FWgpKTSM8O0QCsxknwuQabL+UlW9sB/CnhT1ibkx/8pN80Rm8uA2Ak78qLW/hRoeoC mC6JvvGIC4MjYUN0HfSh1mbyNGQ7dBdnUZKr7Y5wckTwIJkWaEuJVqRy3+Kb7MPATd2q 7oXSk+w/fma6myM2gW9hRbOfcGyS+hUwIhJlk= MIME-Version: 1.0 Received: by 10.236.75.194 with SMTP id z42mr3476674yhd.10.1315628173443; Fri, 09 Sep 2011 21:16:13 -0700 (PDT) Received: by 10.236.103.6 with HTTP; Fri, 9 Sep 2011 21:16:13 -0700 (PDT) In-Reply-To: <9486857B-D177-437A-8894-A57A8AE26409@FreeBSD.org> References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> <9486857B-D177-437A-8894-A57A8AE26409@FreeBSD.org> Date: Sat, 10 Sep 2011 12:16:13 +0800 Message-ID: From: Adrian Chadd To: Josh Paetzel Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , Bernhard Schmidt Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 04:16:14 -0000 On 10 September 2011 12:14, Josh Paetzel wrote: > The watched pot never boils. Both times I tried to gather diagnostic info I was never disconnected. You had ampdutx enabled, right? Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 05:02:24 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAAA8106566B; Sat, 10 Sep 2011 05:02:24 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id 8CFF68FC17; Sat, 10 Sep 2011 05:02:24 +0000 (UTC) Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 893CC29723; Sat, 10 Sep 2011 00:46:17 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 10 Sep 2011 00:46:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:from :subject:date:to; s=smtpout; bh=34gdnRITTYaHz0WA9uvvUZ244B8=; b= d5le3B/er8vSto1p5fmEcJ40qv5h+TTFUKkNAfDW6vOoyFXbNmoRFmli0EZPDKXc 3Kt4DY/Z7Ew11QgkvGIvCJ2HnVKnXig526Pz6m50MnSyx+WJfbTVPAqZs4A7XSMw NA0W+36jbpuDygF7nHI6a7F7XxAYe4TmRBdkUABfy6E= X-Sasl-enc: 3x0fJHHrGvH7ySMs80eCYO7OqEcqJ06wEguox4kEKK1T 1315629977 Received: from [10.50.64.76] (unknown [166.205.139.11]) by mail.messagingengine.com (Postfix) with ESMTPSA id 04FF37806CE; Sat, 10 Sep 2011 00:46:17 -0400 (EDT) References: <201109062237.00788.jpaetzel@freebsd.org> <248CA120-66D2-47C4-AFCB-716552D5AB9D@FreeBSD.org> <201109070907.55652.jpaetzel@freebsd.org> <038BB269-7FC5-46B6-A7C0-80D42ACFC087@FreeBSD.org> <9486857B-D177-437A-8894-A57A8AE26409@FreeBSD.org> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8K2) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <92E89690-E818-48E6-817A-9C7004165536@tcbug.org> X-Mailer: iPhone Mail (8K2) From: Josh Paetzel Date: Fri, 9 Sep 2011 21:46:08 -0700 To: Adrian Chadd Cc: Josh Paetzel , "freebsd-wireless@freebsd.org" , Bernhard Schmidt Subject: Re: T510 iwn and 9.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 05:02:24 -0000 On Sep 9, 2011, at 9:16 PM, Adrian Chadd wrote: > On 10 September 2011 12:14, Josh Paetzel wrote: >=20 >> The watched pot never boils. Both times I tried to gather diagnostic info= I was never disconnected. >=20 > You had ampdutx enabled, right? >=20 >=20 > Adrian Yes.=20 Thanks, Josh= From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 11:34:43 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DAE4106564A for ; Sat, 10 Sep 2011 11:34:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4CA0D8FC0A for ; Sat, 10 Sep 2011 11:34:43 +0000 (UTC) Received: by yib19 with SMTP id 19so1803532yib.13 for ; Sat, 10 Sep 2011 04:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=PkDfISx694INdOKaNcBFjfAedPwTPmCIMfQBidp86uc=; b=JxypX5FlfAjGCbusYinLtwCczRqy0i1pV353YCz/Tb5uW8ia9jqwAQUvAxX6Gb5tNO tLVgUTcYHp8gUMGFz5TuRZ4IVxnItgz+WTBgt0qzoyYdrQGmYlOKehIiGfbLoGOvDGPu Cdl8uV8FIcJIzRDWCfWgwf5VfmK7GdxlYMonk= MIME-Version: 1.0 Received: by 10.236.200.137 with SMTP id z9mr17106140yhn.27.1315654482526; Sat, 10 Sep 2011 04:34:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Sat, 10 Sep 2011 04:34:42 -0700 (PDT) In-Reply-To: <1181080993.20110909201249@serebryakov.spb.ru> References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <140679489.20110909154614@serebryakov.spb.ru> <192542574.20110909193326@serebryakov.spb.ru> <1181080993.20110909201249@serebryakov.spb.ru> Date: Sat, 10 Sep 2011 19:34:42 +0800 X-Google-Sender-Auth: gXyIE6HOEy8KbbydCBIdQ661sOw Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 11:34:43 -0000 I've just bought one of these NICs off of ebay. I'll let you know how it goes. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 12:24:29 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92523106566B for ; Sat, 10 Sep 2011 12:24:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 52ECB8FC08 for ; Sat, 10 Sep 2011 12:24:29 +0000 (UTC) Received: by yib19 with SMTP id 19so1822799yib.13 for ; Sat, 10 Sep 2011 05:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=gMIXUgwjW5+dA53BnXh71SCAOLTGqq9Iy+d5yYyQGO4=; b=hq7a10LYwJD4giFqFl8j/hjnD3VNTf7NwafYRTn1GwfEZEhU2yam21J4v2Gjdvo5aU 3ygVjFx7nsA0d4lnFd+akJDAA/BqAzTFWpBAHxKlCU4fxYeTghdy7+Nl0m4qPtTuXNSM dZiZrrZebjDIbfol1iyhtEhNQ0u8UPJlyCBk8= MIME-Version: 1.0 Received: by 10.236.200.137 with SMTP id z9mr17292762yhn.27.1315657468775; Sat, 10 Sep 2011 05:24:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Sat, 10 Sep 2011 05:24:28 -0700 (PDT) Date: Sat, 10 Sep 2011 20:24:28 +0800 X-Google-Sender-Auth: G6jyNEKQLjds7g1Nr6l5JIhpokw Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: multipart/mixed; boundary=20cf30563dc1128eb404ac9560ca Subject: [patch] if_ath_tx: change interrupt scheduling deferral X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 12:24:29 -0000 --20cf30563dc1128eb404ac9560ca Content-Type: text/plain; charset=ISO-8859-1 Hi, This patch changes how the deferred interrupt handling works. It's likely I'll have to change things a bit before I commit it so I won't be (yet) committing this. It brings the interrupt handling in line with how ath9k and the reference driver works. It eliminates a possible race condition: * ath_intr() and ath_hal_getisr() set AH5212(ah)->ah_intrTxqs, which is a bitmap of TXQs which need servicing; * The ath TX processes call txqactive() which check the above bitmap and clear the bit that's been tested. The interrupt handler ath_intr() can be called during the TX completion task, so I think it's possible that the interrupt could occur, setting a TXQ bit, in between txqactive()'s "check bit X" and "clear bit X". My testing was only showing up one queue hang every 20-50 million packets where the TXQ had active packets in it which were completed, but hadn't been processed. I've only just begun testing this. I'll post updates as they're needed. Thanks, Adrian --20cf30563dc1128eb404ac9560ca Content-Type: application/octet-stream; name="ar5416-int-sched.diff" Content-Disposition: attachment; filename="ar5416-int-sched.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gsekhd1l0 SW5kZXg6IGlmX2F0aHZhci5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t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sKIAkJfQotCQlhdGhfaGFsX2lu dHJzZXQoYWgsIHNjLT5zY19pbWFzayk7CiAJfQogCiAJaWYgKChpZnAtPmlmX2Rydl9mbGFncyAm IElGRl9EUlZfT0FDVElWRSkgPT0gMCkgewogI2lmZGVmIElFRUU4MDIxMV9TVVBQT1JUX1NVUEVS RwogCQlpZWVlODAyMTFfZmZfYWdlX2FsbChpYywgMTAwKTsKICNlbmRpZgotCQlpZiAoIUlGUV9J U19FTVBUWSgmaWZwLT5pZl9zbmQpKQotCQkJYXRoX3N0YXJ0KGlmcCk7CiAJfQogI3VuZGVmIFBB MkRFU0MKIH0KQEAgLTQ0NDQsNiArNDQ5Nyw3IEBACiAJcmV0dXJuICh0eHFzICYgKDE8PHFudW0p KTsKIH0KIAorI2lmIDAKIC8qCiAgKiBEZWZlcnJlZCBwcm9jZXNzaW5nIG9mIHRyYW5zbWl0IGlu dGVycnVwdDsgc3BlY2lhbC1jYXNlZAogICogZm9yIGEgc2luZ2xlIGhhcmR3YXJlIHRyYW5zbWl0 IHF1ZXVlIChlLmcuIDUyMTAgYW5kIDUyMTEpLgpAQCAtNDUwNCw2ICs0NTU4LDcgQEAKIAogCWF0 aF9zdGFydChpZnApOwogfQorI2VuZGlmCiAKIC8qCiAgKiBEZWZlcnJlZCBwcm9jZXNzaW5nIG9m IHRyYW5zbWl0IGludGVycnVwdC4K --20cf30563dc1128eb404ac9560ca-- From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 16:48:27 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC99A1065673; Sat, 10 Sep 2011 16:48:27 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 909698FC0A; Sat, 10 Sep 2011 16:48:27 +0000 (UTC) Received: by pzk33 with SMTP id 33so14739407pzk.18 for ; Sat, 10 Sep 2011 09:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vSvuMzVGraO1fYai3SVvmDPxIWdeb88Q2s8zHFziamA=; b=RXLfdqM0UIqVTDp07PFFQiejA9pGKtdUczQEokPjPAD3sZh9z5TmOSzjHype7TDFi0 UyNu1gl7L4hIOKtVIsqUSKgvCjuwNUF6ybjI3vpL64mX5Gx1xacCh8x0Uj4fhmJ4d3/c YKrLUdhmuJDZxTdYQhI8apHc7Sv/VItueGRZA= MIME-Version: 1.0 Received: by 10.68.14.100 with SMTP id o4mr705941pbc.340.1315673306896; Sat, 10 Sep 2011 09:48:26 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Sat, 10 Sep 2011 09:48:26 -0700 (PDT) In-Reply-To: References: Date: Sat, 10 Sep 2011 18:48:26 +0200 Message-ID: From: Berislav Purgar To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] if_ath_tx: change interrupt scheduling deferral X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 16:48:27 -0000 On Sat, Sep 10, 2011 at 2:24 PM, Adrian Chadd wrote: > Hi, > > This patch changes how the deferred interrupt handling works. It's > likely I'll have to change things a bit before I commit it so I won't > be (yet) committing this. > It brings the interrupt handling in line with how ath9k and the > reference driver works. It eliminates a possible race condition: > > * ath_intr() and ath_hal_getisr() set AH5212(ah)->ah_intrTxqs, which > is a bitmap of TXQs which need servicing; > * The ath TX processes call txqactive() which check the above bitmap > and clear the bit that's been tested. > > The interrupt handler ath_intr() can be called during the TX > completion task, so I think it's possible that the interrupt could > occur, setting a TXQ bit, in between txqactive()'s "check bit X" and > "clear bit X". > My testing was only showing up one queue hang every 20-50 million > packets where the TXQ had active packets in it which were completed, > but hadn't been processed. > > I've only just begun testing this. I'll post updates as they're needed. > > Thanks, > > > Adrian > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " > > Hello Adrian i tested new patches and can tell that works ok. i don't see any error messages in logfile for both cards (high trafic load). regarding to anything i tested (HT20/40) iperf shows TCP ~ 9.8MB/s UPD ~ 13MB/s on HT/20 . TCP ~ 13MB/s UDP ~ 19.7MB/s on HT/40 this results are when AR5416 act as iperf server and AR9280 as client, in another case results are worse. AR5416 works in sta and AR9280 in hostap mode. that's all for now :) Beri From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 20:12:53 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 832F8106564A; Sat, 10 Sep 2011 20:12:53 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3760F8FC15; Sat, 10 Sep 2011 20:12:53 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 0C8004AC31; Sun, 11 Sep 2011 00:12:51 +0400 (MSD) Date: Sun, 11 Sep 2011 00:12:46 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <310610058.20110911001246@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <140679 489.20110909154614@serebryakov.spb.ru> <192542574.20110909193326@serebryakov.spb.ru> <1181080993.20110909201249@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 20:12:53 -0000 Hello, Adrian. You wrote 10 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 15:34:42: > I've just bought one of these NICs off of ebay. I'll let you know how it = goes. Cool! Here was two versions -- EMP-8603 and EMP-8603S with Atheros Turbo-G 108Mbit support. Try to connect additional 5V to it :) About donations: could you receive PayPal? It seems to be easiest (and, maybe, cheapest) way to send small amount (small in bank terms ;-)) of money from Russia aboard. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 10 20:50:54 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CB78106564A; Sat, 10 Sep 2011 20:50:54 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id B4DDD8FC19; Sat, 10 Sep 2011 20:50:53 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 84F5A4AC31; Sun, 11 Sep 2011 00:50:52 +0400 (MSD) Date: Sun, 11 Sep 2011 00:50:46 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <545731838.20110911005046@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <663133681.20110907193747@serebryakov.spb.ru> <437702009.20110907235248@serebryakov.spb.ru> <426917282.20110908125907@serebryakov.spb.ru> <4610390305.20110908154130@serebryakov.spb.ru> <1705262661.20110908180850@serebryakov.spb.ru> <458771414.20110908183656@serebryakov.spb.ru> <4910491962.20110908185213@serebryakov.spb.ru> <1273865639.20110908191303@serebryakov.spb.ru> <1607911768.20110909113824@serebryakov.spb.ru> <140679 489.20110909154614@serebryakov.spb.ru> <192542574.20110909193326@serebryakov.spb.ru> <1181080993.20110909201249@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: AP performance (again): txpower regulation X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2011 20:50:54 -0000 Hello, Adrian. You wrote 10 =F1=E5=ED=F2=FF=E1=F0=FF 2011 =E3., 15:34:42: > I've just bought one of these NICs off of ebay. I'll let you know how it = goes. BTW, I've got around 20 ath0: stuck beacon; resetting (bmiss count 4) messages today. I've never seen them before. System is 9.0-BETA2. --=20 // Black Lion AKA Lev Serebryakov