From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 2 05:00:33 2012 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 1BA751065677 for ; Sun, 2 Sep 2012 05:00:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id E4EE88FC0C for ; Sun, 2 Sep 2012 05:00:32 +0000 (UTC) Received: by dadr6 with SMTP id r6so2767496dad.13 for ; Sat, 01 Sep 2012 22:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=LEQ4pS148/+XM/tZenhjJXdDm73KGxy3bTw0d9Gzh5s=; b=onQ0V4lCU2ZTnmIp8GBlu8Mx6xj/Pl9VID8UHKW+VA2iAWiNrG6xzt7jUwwylCKHKY WsoI7G9y4tkddBY+viuPfmYSSrj1qZs1XiDRB+Nqbmd/9HcCFHCeFuJWx0st/+CsfMck UgpqziV4MtXF8GlpHbO1uPHpsrCvpPAzxwERq8cmcZ4n24hYihkuFx5EZe3zYQpHZyRz QHjleTtp+nkN81l/EPX6Rr5a4L5F+DFrT1vllK1qPsPJA144lRDhsZmugNXwBO1JwoNC I1bxaghOr7FWRxut0hMbjTC6fe3cGPqFtwm9Z6bU2rtAcdQLV6DmgaGL/2ewd81SaUF1 fmkQ== MIME-Version: 1.0 Received: by 10.68.204.169 with SMTP id kz9mr820382pbc.39.1346562032626; Sat, 01 Sep 2012 22:00:32 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Sat, 1 Sep 2012 22:00:32 -0700 (PDT) Date: Sat, 1 Sep 2012 22:00:32 -0700 X-Google-Sender-Auth: vHKsq1wenwctiUsZ0esHFbRKG9E Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: AR5212 radar detection (was Fwd: svn commit: r240001 - head/sys/dev/ath/ath_hal/ar5212) 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, 02 Sep 2012 05:00:33 -0000 Hi, I've been doing some testing with this here AR5212 and straight pulse detection (with no tuning for traffic interference or adjacent traffic.) This does fix most of the pulse detection issues I was seeing. Everything except around 10uS pulses detect okay. So next, NF calibration and tuning. Good luck brett! Adrian ---------- Forwarded message ---------- From: Adrian Chadd Date: 1 September 2012 21:56 Subject: svn commit: r240001 - head/sys/dev/ath/ath_hal/ar5212 To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Author: adrian Date: Sun Sep 2 04:56:29 2012 New Revision: 240001 URL: http://svn.freebsd.org/changeset/base/240001 Log: AR5212 radar pulse fixes. Fix the strong signal diversity capability setting - I had totally messed up the indentation. Set the default values to match what's in the .ini for now, rather than what values I had previously gleaned from places. This seems to work quite well for the early AR5212 NICs I have. Of course, later NICs have different PHYs and the radar configuration is very card/board dependent.. Tested: * ath1: AR5212 mac 5.3 RF5111 phy 4.1 ath1: 2GHz radio: 0x0023; 5GHz radio: 0x0017 This detects 1, 5, 25, 50, 75, 100uS pulses reliably (with no interference.) However, 10uS pulses don't detect reliably. That may be around the transition between short and long pulses so some further tuning may improve things. Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c Sun Sep 2 04:39:07 2012 (r240000) +++ head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c Sun Sep 2 04:56:29 2012 (r240001) @@ -960,13 +960,13 @@ ar5212SetCapability(struct ath_hal *ah, case 1: /* setting */ if (ahp->ah_phyPowerOn) { if (capability == HAL_CAP_STRONG_DIV) { - } - v = OS_REG_READ(ah, AR_PHY_CCK_DETECT); - if (setting) - v |= AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV; - else - v &= ~AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV; - OS_REG_WRITE(ah, AR_PHY_CCK_DETECT, v); + v = OS_REG_READ(ah, AR_PHY_CCK_DETECT); + if (setting) + v |= AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV; + else + v &= ~AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV; + OS_REG_WRITE(ah, AR_PHY_CCK_DETECT, v); + } } ahp->ah_diversity = (setting != 0); return AH_TRUE; @@ -1243,11 +1243,11 @@ ar5212EnableDfs(struct ath_hal *ah, HAL_ /* * Parameters for the AR5212 PHY. */ -#define AR5212_DFS_FIRPWR -41 -#define AR5212_DFS_RRSSI 12 -#define AR5212_DFS_HEIGHT 20 -#define AR5212_DFS_PRSSI 22 -#define AR5212_DFS_INBAND 6 +#define AR5212_DFS_FIRPWR -35 +#define AR5212_DFS_RRSSI 20 +#define AR5212_DFS_HEIGHT 14 +#define AR5212_DFS_PRSSI 6 +#define AR5212_DFS_INBAND 4 /* * Default parameters for the AR5413 PHY. @@ -1261,7 +1261,6 @@ ar5212EnableDfs(struct ath_hal *ah, HAL_ #define AR5413_DFS_RELSTEP 31 #define AR5413_DFS_MAXLEN 255 - HAL_BOOL ar5212GetDfsDefaultThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) { From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 2 18:12:22 2012 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 5FA101065767 for ; Sun, 2 Sep 2012 18:12:22 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) by mx1.freebsd.org (Postfix) with ESMTP id 303868FC1A for ; Sun, 2 Sep 2012 18:12:22 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id q82ICGQC061749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 2 Sep 2012 11:12:16 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id q82ICGmA061748 for freebsd-wireless@FreeBSD.org; Sun, 2 Sep 2012 11:12:16 -0700 (PDT) (envelope-from jmg) Date: Sun, 2 Sep 2012 11:12:16 -0700 From: John-Mark Gurney To: freebsd-wireless@FreeBSD.org Message-ID: <20120902181216.GI58312@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Sun, 02 Sep 2012 11:12:16 -0700 (PDT) Cc: Subject: native USB 802.11n adapter w/ external SMA jacks? 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, 02 Sep 2012 18:12:22 -0000 Hello, Please cc me as I'm not subscribed to -wireless. I'm looking for a 802.11n USB adapter that is supported on ARM w/ external SMA jacks. I plan to use this w/ a BeagleBone so clearly ndis drivers will not work. I see plenty of adapters are available, but as usual, they don't list which chipset they are based upon, making the decission hard. I'm looking at 802.11n more for future support, so even just a 802.11bg device would be fine. Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 2 18:15:10 2012 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 7088A106564A for ; Sun, 2 Sep 2012 18:15:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4106B8FC1B for ; Sun, 2 Sep 2012 18:15:09 +0000 (UTC) Received: by dadr6 with SMTP id r6so3002123dad.13 for ; Sun, 02 Sep 2012 11:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Jc87LSkMUCZ9M/w575eVK4ic4I5frfX/9+vInpRv04o=; b=quo64Beyu35nxsZ32BL0EdwNvhA3yxdh9TGBjJLkT3I7xWek4ZFzfUuS+xYIGQf1Rx 2Q3XOTYVGIHTgryirQafGRrI1c0XL5Yl40eXq9VpCLmf+zxeis/Wg7sExxA7D5iEWPiC Nx4211C0PLesQHuhrrFUK0JKAUqjgmhLzrowHiJ37HBZFVHpnu8YtCr5Xk7A6ANt+dFR ruZa6TJZmQ9bql+acwDEd/p9qbfbzV8jsULJBA3BSmLiotLTY56Fl800aGzahX+LTl0C 4KIz+j0KRLBBC2vy5OIcHR/3sf12Dan2qq1H9ChPefZ3a+c5Zirb5tCSZv0KAPQuVGAJ Hn7A== MIME-Version: 1.0 Received: by 10.68.138.169 with SMTP id qr9mr32260160pbb.27.1346609709439; Sun, 02 Sep 2012 11:15:09 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Sun, 2 Sep 2012 11:15:09 -0700 (PDT) In-Reply-To: <20120902181216.GI58312@funkthat.com> References: <20120902181216.GI58312@funkthat.com> Date: Sun, 2 Sep 2012 11:15:09 -0700 X-Google-Sender-Auth: lajZrGvVBUrBV7JmRkFoKxW2odM Message-ID: From: Adrian Chadd To: John-Mark Gurney Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: native USB 802.11n adapter w/ external SMA jacks? 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, 02 Sep 2012 18:15:10 -0000 Hi, On 2 September 2012 11:12, John-Mark Gurney wrote: > Hello, > > Please cc me as I'm not subscribed to -wireless. > > I'm looking for a 802.11n USB adapter that is supported on ARM w/ external > SMA jacks. I plan to use this w/ a BeagleBone so clearly ndis drivers > will not work. > > I see plenty of adapters are available, but as usual, they don't list > which chipset they are based upon, making the decission hard. > > I'm looking at 802.11n more for future support, so even just a 802.11bg > device would be fine. I'm not currently aware of any USB wifi devices that are like that. I'd suggest first canvassing ebay/google/amazon for some candidates? adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Sep 2 18:40:52 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 04FD310656D4; Sun, 2 Sep 2012 18:40:52 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id B0E7E8FC16; Sun, 2 Sep 2012 18:40:51 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id A734D1E00716; Sun, 2 Sep 2012 20:40:50 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id q82IdlQ2088471; Sun, 2 Sep 2012 20:39:47 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id q82IdkuP088470; Sun, 2 Sep 2012 20:39:46 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 2 Sep 2012 20:39:46 +0200 To: Adrian Chadd Message-ID: <20120902183946.GA88282@triton8.kn-bremen.de> References: <20120902181216.GI58312@funkthat.com> 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: John-Mark Gurney , freebsd-wireless@freebsd.org Subject: Re: native USB 802.11n adapter w/ external SMA jacks? 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, 02 Sep 2012 18:40:52 -0000 On Sun, Sep 02, 2012 at 11:15:09AM -0700, Adrian Chadd wrote: > Hi, > > On 2 September 2012 11:12, John-Mark Gurney wrote: > > Hello, > > > > Please cc me as I'm not subscribed to -wireless. > > > > I'm looking for a 802.11n USB adapter that is supported on ARM w/ external > > SMA jacks. I plan to use this w/ a BeagleBone so clearly ndis drivers > > will not work. > > > > I see plenty of adapters are available, but as usual, they don't list > > which chipset they are based upon, making the decission hard. > > > > I'm looking at 802.11n more for future support, so even just a 802.11bg > > device would be fine. > > I'm not currently aware of any USB wifi devices that are like that. > > I'd suggest first canvassing ebay/google/amazon for some candidates? I don't know about arm but I have here "LogiLink WL0054" which is driven by if_run(4) and comes with an external antenna that's screwed on, the connector looks smaller than what I see on https://en.wikipedia.org/wiki/SMA_connector but maybe there are adapters? Even with just that screwed-on antenna the range is definitely better than with other usb wifi dongles that have their antenna built in... And it works in hostap mode too, tho I haven't tried 11n myself yet, only g. HTH, :) Juergen From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 3 06:49:05 2012 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 63C32106566B; Mon, 3 Sep 2012 06:49:05 +0000 (UTC) (envelope-from prvs=586426959=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 0FEF28FC0C; Mon, 3 Sep 2012 06:49:04 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.80,359,1344225600"; d="scan'208";a="67543477" Received: from cipt0174.nam.ci.root ([10.132.108.174]) by cooperlighting-sw.cooperlighting.com with ESMTP; 03 Sep 2012 02:48:58 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.22]) by cipt0174.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Mon, 3 Sep 2012 02:48:58 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 3 Sep 2012 14:40:38 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC131606779A12@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AR5212 radar detection (was Fwd: svn commit: r240001 - head/sys/dev/ath/ath_hal/ar5212) Thread-Index: Ac2Ix+OVR8Itx3l0Qte3IlcSbUNEKQA1dhSA References: From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 03 Sep 2012 06:48:58.0150 (UTC) FILETIME=[317A8C60:01CD89A0] Cc: freebsd-wireless@freebsd.org Subject: RE: AR5212 radar detection (was Fwd: svn commit: r240001 - head/sys/dev/ath/ath_hal/ar5212) 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, 03 Sep 2012 06:49:05 -0000 Fantastic work Adrian! Thanks again. Brett > -----Original Message----- > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > Of Adrian Chadd > Sent: Sunday, 2 September 2012 3:01 PM >=20 > Hi, >=20 > I've been doing some testing with this here AR5212 and straight pulse > detection (with no tuning for traffic interference or adjacent > traffic.) >=20 > This does fix most of the pulse detection issues I was seeing. > Everything except around 10uS pulses detect okay. >=20 > So next, NF calibration and tuning. Good luck brett! >=20 >=20 >=20 > Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 3 07:14:26 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C03421065673; Mon, 3 Sep 2012 07:14:26 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) by mx1.freebsd.org (Postfix) with ESMTP id 97F908FC16; Mon, 3 Sep 2012 07:14:26 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id q837EPoC072971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Sep 2012 00:14:25 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id q837EPeX072970; Mon, 3 Sep 2012 00:14:25 -0700 (PDT) (envelope-from jmg) Date: Mon, 3 Sep 2012 00:14:25 -0700 From: John-Mark Gurney To: Adrian Chadd Message-ID: <20120903071425.GJ58312@funkthat.com> References: <20120902181216.GI58312@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Mon, 03 Sep 2012 00:14:25 -0700 (PDT) Cc: freebsd-wireless@freebsd.org Subject: Re: native USB 802.11n adapter w/ external SMA jacks? 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, 03 Sep 2012 07:14:26 -0000 Adrian Chadd wrote this message on Sun, Sep 02, 2012 at 11:15 -0700: > On 2 September 2012 11:12, John-Mark Gurney wrote: > > Hello, > > > > Please cc me as I'm not subscribed to -wireless. > > > > I'm looking for a 802.11n USB adapter that is supported on ARM w/ external > > SMA jacks. I plan to use this w/ a BeagleBone so clearly ndis drivers > > will not work. > > > > I see plenty of adapters are available, but as usual, they don't list > > which chipset they are based upon, making the decission hard. > > > > I'm looking at 802.11n more for future support, so even just a 802.11bg > > device would be fine. > > I'm not currently aware of any USB wifi devices that are like that. > > I'd suggest first canvassing ebay/google/amazon for some candidates? As I said earlier, I've found a number of devices that do have the connector, but the problem is that trying to figure out which driver they use is a bit difficult... It looks like the Hawking HWUN1 (run) would work, but it's no longer sold.. I also noticed that many of the USB drivers are listed as supporting only one virtual interface at a time, though run doesn't list that limitation... Does run support multiple wlan networks at once? I was thinking of trying the lottery to see if I get a supported device, but with only one USB chipset supporting the features I'd want, I don't like my odds... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 3 10:08:41 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B95031065670 for ; Mon, 3 Sep 2012 10:08:41 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7CFCA8FC0A for ; Mon, 3 Sep 2012 10:08:41 +0000 (UTC) Received: by obbun3 with SMTP id un3so11611427obb.13 for ; Mon, 03 Sep 2012 03:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=N5pZAyRqymcs5ITu/WkYk9fAIfemfV6foQ7vTr+SaDE=; b=a8b9XBSCMeDcl2P9VtiGwkVN0hOCVNaWM0qQIjt7uFSBYyD7WXd1795gs1C7KocEW0 sKAeRB7jxFllJQji+opDSBtTaMoaMQxUroP3NaJNfIWilPI1ykrHLH4bd78ir7xayzO+ hAOHY7g/nlXuidyQnCTh8n/hbFPr/BJw9PTPLRhQVRmj4uwz2dpiaGsWW4YkAr9sufZe nX7W7XlydM6ikt2CuLmvoLc21JmWv2Wj9EI0WRg1YEkvBwlmdEA1QeRkGASiiRPJjPwe mZdKHTpsj0LoDhrzoD/h47HQI3065UtX3ZYyw8bLfv5qH7Quxg9MGZD4eC/db/7+wVU8 jVbA== MIME-Version: 1.0 Received: by 10.182.108.71 with SMTP id hi7mr13942572obb.21.1346666920049; Mon, 03 Sep 2012 03:08:40 -0700 (PDT) Received: by 10.60.164.34 with HTTP; Mon, 3 Sep 2012 03:08:40 -0700 (PDT) Date: Mon, 3 Sep 2012 14:08:40 +0400 Message-ID: From: Andrey Fesenko To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: native USB 802.11n adapter w/ external SMA jacks? 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, 03 Sep 2012 10:08:41 -0000 > I'm not currently aware of any USB wifi devices that are like that. > > I'd suggest first canvassing ebay/google/amazon for some candidates? I'm purchase TP-Link TL-WN821N FCC ID: TE7WN821NV3 FreeBSD detect Unknown USB device: vendor 0x0cf3 product 0x7015 may be help http://wiki.debian.org/ath9k_htc USB: 0CF3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 3 11:10:15 2012 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2599E10656A8 for ; Mon, 3 Sep 2012 11:10:15 +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 92FFB8FC12 for ; Mon, 3 Sep 2012 11:10:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q83BAElq054158 for ; Mon, 3 Sep 2012 11:10:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q83BACbD053745 for freebsd-wireless@FreeBSD.org; Mon, 3 Sep 2012 11:10:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Sep 2012 11:10:12 GMT Message-Id: <201209031110.q83BACbD053745@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, 03 Sep 2012 11:10:15 -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/171235 wireless [ath] ath loses connection, system freezes on netif re o kern/170904 wireless [ath] ath driver: configure related parameters when ra o kern/170889 wireless [ath] ath driver uses some uninitilized memory o kern/170620 wireless [ath] LOR and deadlock when multiple vaps are used o kern/170573 wireless [iwi] Intel 2200BG iwi NIC hangs with need multicast c o kern/170513 wireless [ath] ath logs: ath_tx_aggr_comp_aggr: AR5416 bug: o kern/170433 wireless [ath] TX hang after a stuck beacon message with active o kern/170397 wireless [ath] [patch] Uninitialized variables in ah_eeprom_928 o kern/170302 wireless [ath] 802.11n frames are not being transmitted with mu o kern/170281 wireless [ath] 802.11n locks up on aggregation setup (ampdutx) o kern/170098 wireless [ath] [net80211] VAPs (Virtual access points) with Ath o kern/170066 wireless [ral] ral(4) rt61pci Linksys freezes the machine as so o kern/169432 wireless [ath] BAR TX hang when aggregation session is reset du p kern/169362 wireless [ath] AR5416: radar pulse PHY errors sometimes include o kern/169336 wireless [ath] ANI isn't triggering in a busy/noisy environment o kern/169199 wireless [ath] Cannot set up static ip addresses for wireless w o kern/169084 wireless [ath] suspend/resume doesn't cause a rescan; the assoc o kern/168530 wireless [ath] Broken WEP probably o kern/168393 wireless AR9285: suspend/resume sometimes fails o kern/168170 wireless [net80211] ieee80211_send_bar() doesn't complete corre o kern/167870 wireless [ath] adhoc wifi client does not join an existing IBSS o kern/167834 wireless [ath] kickpcu; 'handled 0 packets' o kern/167828 wireless [iwn] iwn(4) doesn't recover automatically after firmw o kern/167798 wireless ifconfig(8): problem with "ifconfig list scan" command o kern/167491 wireless [ath] TID != hardware queue TID in ath_tx_aggr_comp_ag o kern/167113 wireless [ath] AR5210: "stuck" TX seems to be occuring, without o kern/167080 wireless [ath] channel switch on another VAP break channel setu o kern/166684 wireless [ath] [net80211] mgmtrate/mcastrate isn't updated base p kern/166642 wireless [ieee80211] [patch] in 802.11n mode for FreeBSD AP, ha o kern/166641 wireless [ieee80211] [patch] mbuf/cluster leak in AP mode in 80 p kern/166357 wireless [ath] 802.11n TX stall when the first frame in the BAW o kern/166286 wireless [net80211] [ath] initial switch to HT40 isn't causing p kern/166190 wireless [ath] TX hangs and frames stuck in TX queue o kern/166086 wireless [Patch][ath] Reflect state of rfkill switch in a sysct o kern/165969 wireless [ath] Slower performance in adhoc mode vs Client/AP mo o kern/165966 wireless [ath] ath0: device timeout on SMP machines due to race o kern/165895 wireless [ath] overly busy cabq can tie up all tx buffers o kern/165870 wireless [bwn] bwn driver does not attach on HP Pavilion dv9420 o kern/165866 wireless [ath] TX hangs, requiring a "scan" to properly reset t o kern/165849 wireless [ath] [hang] network ath driver freeze o kern/165595 wireless [ipw] ipw(4): Can't load firmare for ipw2200bg o kern/165543 wireless [ath] ath0 endless scanning of channels without connec o kern/165517 wireless [net80211] bgscan isn't triggered when invalid beacons o kern/165475 wireless [ath] operational mode change doesn't poke the underly o kern/165382 wireless [kernel] taskqueue_unblock doesn't unblock currently q o kern/165306 wireless [ath] race conditions between scanning and beacon time o kern/165220 wireless [ath] "ath_rx_tasklet: sc_inreset_cnt > 0; skipping" m o kern/165214 wireless [ieee80211] Kernel panic in ieee80211_output.c:2505 o kern/165212 wireless [ath] No WiFi on Acer Aspire One 751h (Atheros AR5BHB6 o kern/165149 wireless [ath] [net80211] Ping with data length more than iv_fr o kern/165146 wireless [net80211] Net802.11 Fragment number is assigned 1 (sh o kern/165060 wireless [ath] vap->iv_bss race conditions causing crashes insi o kern/165021 wireless [ath] ath device timeout during scan/attach, if wlan_c o kern/164721 wireless [ath] ath device timeouts o kern/164499 wireless [wi] [patch] if_wi needs fix for big endian architectu o kern/164382 wireless [ath] crash when down/deleting a vap - inside ieee8021 o kern/164365 wireless [iwi] iwi0: UP/DOWN in o bin/164102 wireless hostapd not configured for 802.11n o kern/163759 wireless [ath] ath(4) "stops working" in hostap mode o kern/163724 wireless [mwl] [patch] NULL check before dereference o kern/163719 wireless [ath] ath interface do not receive multicast o kern/163689 wireless [ath] TX timeouts when sending probe/mgmt frames durin o kern/163574 wireless [net80211] overly-frequent HT occupancy changes o kern/163573 wireless [ath] hostap mode TX buffer hang o kern/163559 wireless [ath] kernel panic AH_DEBUG o kern/163318 wireless [ath] ath(4) stops working p kern/163312 wireless [panic] [ath driver] kernel panic: page fault with ath o kern/163237 wireless [ath] AR5416 as HostAP. Delays among clients when a cl o kern/163082 wireless [ath] ar9285 diversity fixes o kern/162648 wireless [ath] AR9227 ADC DC calibration failure o kern/162647 wireless [ath] 11n TX aggregation session / TX hang o kern/161293 wireless [iwn] hang at startup when starting network o kern/161035 wireless [ieee80211] Incorrect number describing 11ng MCS rate 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/153594 wireless [wlan] netif/devd race 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/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/148078 wireless [ath] wireless networking stops functioning o kern/146426 wireless [mwl] 802.11n rates not possible on mwl o kern/146425 wireless [mwl] mwl dropping all packets during and after high u 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 kern/144755 wireless [wlan] netif/devd race o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o conf/143079 wireless hostapd(8) startup missing multi wlan functionality 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 126 problems total. From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 4 11:56:35 2012 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 B72E21065674 for ; Tue, 4 Sep 2012 11:56:35 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm22-vm0.bullet.mail.sp2.yahoo.com (nm22-vm0.bullet.mail.sp2.yahoo.com [98.139.91.222]) by mx1.freebsd.org (Postfix) with SMTP id 888EA8FC12 for ; Tue, 4 Sep 2012 11:56:35 +0000 (UTC) Received: from [98.139.91.66] by nm22.bullet.mail.sp2.yahoo.com with NNFMP; 04 Sep 2012 11:56:29 -0000 Received: from [98.136.185.44] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 04 Sep 2012 11:56:29 -0000 Received: from [127.0.0.1] by smtp105.mail.gq1.yahoo.com with NNFMP; 04 Sep 2012 11:56:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1346759789; bh=XIDnGOtdY+OjQv86pe2HQ0h4XQLJFEZ55V4UuQFcfuc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=SDjV+Duz/a9SQQ1AakfQRH9HrS2VRnrVMqQFAigr7a9qetx41t1OSoyeAsUMrFOgTEOTMjaEgA31LELSmxr9zbBPjiXM7zFMy9T8pnv75QkiDV1zg8zguw5EB+sGhJ2Lk7ivca4+4zchukRoDgVyM4A2PZrZUrv3RMcmGlLLk3E= X-Yahoo-Newman-Id: 308810.66380.bm@smtp105.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: .OvJImsVM1k.TwkuLE5Ufa8z8vRD2gJxw8OuK0psqn_FIlI 9mEerR4SmdJjAYzTeoQjwAsGkQEes5EpVofMP5hLG0v7szx_F0MF4Hmi7hwh 9pQOypieNA.U_UZTmjlQycZm.LyBNeaVqA3O_O02i2U9ifOcnjIuX1ZH.xoS vZdMEvJbsgT9DkNLaRwMlfCA7DGG3LEmmRx_ghoHokKtFobL0xwICvh1PJCk U2I3ylvXPZ9Px8FDAdiEpQtXqhgiRitkDhkmgLWJzS9WhGTFgqHPnVagUTAV AcVMXoYOE9XWfUftZo5ivNbrUat0n3ozwYRRNihwN1UZy48tm_0oK7n0lFhz KvrGw3x.sZUYgXbiA5paS0bwly06t3OMPVlcw3jTYrjTGR3GDbDOgvMitHdD FB886Mmjr9hBCLn4aiFqMV1vTNlK6KohcZ43c1klpZuGZMQlp0a_BnmmHRbY oJIKztWE4rmo- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vb0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp105.mail.gq1.yahoo.com with SMTP; 04 Sep 2012 04:56:28 -0700 PDT Received: by vbmv11 with SMTP id v11so8442130vbm.13 for ; Tue, 04 Sep 2012 04:56:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.79.2 with SMTP id f2mr15859657vex.31.1346759784393; Tue, 04 Sep 2012 04:56:24 -0700 (PDT) Received: by 10.58.114.111 with HTTP; Tue, 4 Sep 2012 04:56:24 -0700 (PDT) Date: Tue, 4 Sep 2012 05:56:24 -0600 Message-ID: From: PseudoCylon To: John-Mark Gurney , Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: native USB 802.11n adapter w/ external SMA jacks? 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, 04 Sep 2012 11:56:35 -0000 > ------------------------------ > > Message: 5 > Date: Mon, 3 Sep 2012 00:14:25 -0700 > From: John-Mark Gurney > Subject: Re: native USB 802.11n adapter w/ external SMA jacks? > To: Adrian Chadd > Cc: freebsd-wireless@freebsd.org > Message-ID: <20120903071425.GJ58312@funkthat.com> > Content-Type: text/plain; charset=us-ascii > > Adrian Chadd wrote this message on Sun, Sep 02, 2012 at 11:15 -0700: >> On 2 September 2012 11:12, John-Mark Gurney wrote: >> > Hello, >> > >> > Please cc me as I'm not subscribed to -wireless. >> > >> > I'm looking for a 802.11n USB adapter that is supported on ARM w/ external >> > SMA jacks. I plan to use this w/ a BeagleBone so clearly ndis drivers >> > will not work. >> > >> > I see plenty of adapters are available, but as usual, they don't list >> > which chipset they are based upon, making the decission hard. >> > >> > I'm looking at 802.11n more for future support, so even just a 802.11bg >> > device would be fine. >> >> I'm not currently aware of any USB wifi devices that are like that. >> >> I'd suggest first canvassing ebay/google/amazon for some candidates? > > As I said earlier, I've found a number of devices that do have the > connector, but the problem is that trying to figure out which driver > they use is a bit difficult... It looks like the Hawking HWUN1 (run) > would work, but it's no longer sold.. > > I also noticed that many of the USB drivers are listed as supporting > only one virtual interface at a time, though run doesn't list that > limitation... Does run support multiple wlan networks at once? Not really/yet. The device could support up to 8 vaps. (I have found there is memory for 8 beacons and 8 shared keys, but I haven't found out how to make h/w use it.) AK From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 4 12:08:52 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD607106567A for ; Tue, 4 Sep 2012 12:08:51 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm23-vm2.bullet.mail.ne1.yahoo.com (nm23-vm2.bullet.mail.ne1.yahoo.com [98.138.91.211]) by mx1.freebsd.org (Postfix) with SMTP id 8E8378FC0A for ; Tue, 4 Sep 2012 12:08:51 +0000 (UTC) Received: from [98.138.90.52] by nm23.bullet.mail.ne1.yahoo.com with NNFMP; 04 Sep 2012 12:08:45 -0000 Received: from [98.138.226.31] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 04 Sep 2012 12:08:45 -0000 Received: from [127.0.0.1] by smtp202.mail.ne1.yahoo.com with NNFMP; 04 Sep 2012 12:08:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1346760525; bh=Km+KvdeK06qxdye3+880ZzHSxQONvl5dkV0OlPEIiXI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=HFnksOPWIu0yK8lATlQbfm4fF+U/YDAEf5iFCLXben7WOjcNC+p94nk3nqPBUkrCq05e6VILLVHbpiMTzCqL/I8LVkxhcLbx9Y1n77dalPITjSRuSUqmXWy9dXG4oAlWQt8XE7pPf0mX2r9ZhYRO3Bq1Bi94JOkugmdQIwiYLeE= X-Yahoo-Newman-Id: 660616.76664.bm@smtp202.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Baz0wDcVM1ndo1dkq.S8mjyCyhxzBYi8nV_7b7mwr88F04C SPeKmXB2CZbBtLEpMiv8wbXw6_6SA.Uv.V_vjCVSPfUSNS5uFBipfIdfZaNu DD_NuDV3wl9jAoCWmSKclu4NWvEEAMsgLJGaT_fc7EkhzmVu6QFPx7g8VNIF DVspDGfDnRG9FGtyg_xw6qKSpIrQ8vHkzXB98JKTGBI8LPmSFCuesNPW.cQF NL63OV98SIp.PO0iG5QvNtwSQspfdmP6VLfJhEAboDPu.4aJgryaxqTqVjrM qJqJZzH6lhfK5nbLGMAGImtIHe2I9kmdQAU2zfCdmRgdpESfea1tNxoAbuOP mTpdxg_1BOufJWUM7tgAMJE23nGaAOKXcDQP845Dvqx3j4VSgwO3tJCH6Jff qwTo_LjhkBhEjWcncBmPqtNBOAhrJA8aKzGY7K11CfRWViuMY4c8Wvs1ZUQ1 fJfaeOIkULVtx0s8zfmvLJAz5PkPWSlOe0hLxYxdpHt.W9FzYSTDp1vCa3RT uQDcrdPOuq8aIsWlMhQpqi6ZPa2H.5UaYbrdMNh6aVcgzOHY8uCHRfkKp23P tYzfliuxBXdHFX2avCdY0n1CBjll4XfglGFvDr3bu X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vb0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp202.mail.ne1.yahoo.com with SMTP; 04 Sep 2012 05:08:45 -0700 PDT Received: by vbmv11 with SMTP id v11so8468113vbm.13 for ; Tue, 04 Sep 2012 05:08:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.75.36 with SMTP id z4mr12040420vdv.52.1346760524540; Tue, 04 Sep 2012 05:08:44 -0700 (PDT) Received: by 10.58.114.111 with HTTP; Tue, 4 Sep 2012 05:08:44 -0700 (PDT) Date: Tue, 4 Sep 2012 06:08:44 -0600 Message-ID: From: PseudoCylon To: Juergen Lock , Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: John-Mark Gurney , freebsd-wireless@freebsd.org Subject: Re: native USB 802.11n adapter w/ external SMA jacks? 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, 04 Sep 2012 12:08:52 -0000 > ------------------------------ > > Message: 3 > Date: Sun, 2 Sep 2012 20:39:46 +0200 > From: Juergen Lock > Subject: Re: native USB 802.11n adapter w/ external SMA jacks? > To: Adrian Chadd > Cc: John-Mark Gurney , freebsd-wireless@freebsd.org > Message-ID: <20120902183946.GA88282@triton8.kn-bremen.de> > Content-Type: text/plain; charset=us-ascii > > On Sun, Sep 02, 2012 at 11:15:09AM -0700, Adrian Chadd wrote: >> Hi, >> >> On 2 September 2012 11:12, John-Mark Gurney wrote: >> > Hello, >> > >> > Please cc me as I'm not subscribed to -wireless. >> > >> > I'm looking for a 802.11n USB adapter that is supported on ARM w/ external >> > SMA jacks. I plan to use this w/ a BeagleBone so clearly ndis drivers >> > will not work. >> > >> > I see plenty of adapters are available, but as usual, they don't list >> > which chipset they are based upon, making the decission hard. >> > >> > I'm looking at 802.11n more for future support, so even just a 802.11bg >> > device would be fine. >> >> I'm not currently aware of any USB wifi devices that are like that. >> >> I'd suggest first canvassing ebay/google/amazon for some candidates? > > I don't know about arm but I have here "LogiLink WL0054" which is > driven by if_run(4) and comes with an external antenna that's screwed > on, the connector looks smaller than what I see on > > https://en.wikipedia.org/wiki/SMA_connector > > but maybe there are adapters? Even with just that screwed-on antenna > the range is definitely better than with other usb wifi dongles that > have their antenna built in... And it works in hostap mode too, > tho I haven't tried 11n myself yet, only g. If you are brave, you can try https://gitorious.org/run/run/trees/11n_rc3 Because of dead locks, it blindly unlocks some locks. I don't know what kind of trouble it may cause. AK From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 4 12:50:29 2012 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 B03B11065676 for ; Tue, 4 Sep 2012 12:50:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 756F88FC24 for ; Tue, 4 Sep 2012 12:50:29 +0000 (UTC) Received: by iebc12 with SMTP id c12so5925966ieb.13 for ; Tue, 04 Sep 2012 05:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=exprYQe+G1skBXQybxFbzWEwNrcskQeqevB3o0pC4m8=; b=a5T9VFKqqBSAiXcLNW9dcNm993XqDuqSC1ZrmaGQKLE+B/geNB+Gr6JKbuRmWmkkqw WlHCcxkfRtB8jpCVvl5IaA+vLqoJsvVSFxUvUbtdoipa25hkuUS9bXqJnDfQiaErJLil 8K5H1XsRyKLD+3MssnEKvP3zCrAqIrE9LXIURdb/AjuL3pntNiBMdGgwkdeHhsoRVmrO xStrwLmizwAk5zRyiXswOktNj9/Y3rvTkeE9EVBD7Lw05Tdq7uXYnKDgf+e2VMCzVOM+ wINEf9JeX2CcR0r1RCeQI1tytgQu+fcHnIRzzD3SeoRmEZCU+WsLgahrGd2uhYVt7qm5 k5vw== MIME-Version: 1.0 Received: by 10.182.0.13 with SMTP id 13mr15912576oba.55.1346763028720; Tue, 04 Sep 2012 05:50:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.8.98 with HTTP; Tue, 4 Sep 2012 05:50:28 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Sep 2012 05:50:28 -0700 X-Google-Sender-Auth: QigsRU7SJQSyW4DHKwXZ8rdoyFQ Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: John-Mark Gurney , freebsd-wireless@freebsd.org, Juergen Lock Subject: Re: native USB 802.11n adapter w/ external SMA jacks? 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, 04 Sep 2012 12:50:29 -0000 On 4 September 2012 05:08, PseudoCylon wrote: > If you are brave, you can try > https://gitorious.org/run/run/trees/11n_rc3 > > Because of dead locks, it blindly unlocks some locks. I don't know > what kind of trouble it may cause. Can you populate the wiki with those deadlocks? I'd like to get as many LOR and deadlock things documented so we can sit back and take a much bigger picture/view of net80211/driver locking. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 4 23:20:11 2012 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 03B12106564A; Tue, 4 Sep 2012 23:20:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id C04EC8FC08; Tue, 4 Sep 2012 23:20:10 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so10283025pbb.13 for ; Tue, 04 Sep 2012 16:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=86UpdenUT2slDXhjLJUNDozokh/L4famIeDj7Z88L1E=; b=xazELmVya3nuNeVKy0AUEPUyvKnsEPYC0emt6k59AYYTM9i+K8ahJ1AQRG/8lfPJYQ 8m15bHkx+hQhQSJluwHxplvXtGN88otOPY//y0TkPmB3/+I2be36R8YGS6gXG9JmIX+x ZPlolkQPXo0JRVg4/rjUIJQdSoo+BsOg4taoF6fHOT7/CfLsTA9rTuDSdlXDVrZcykbF AC3aXN8pKUXOQUeBiQ4goQMzc3bKH87HvozbKHWfF3boYflW7+TwRqDBZlgUotPZxNwq wFhZkoCPTijE9/EMsKOOA7qmtJDdOzgLBAjwd0RX8CVFZ6j8pyh4IUyWsOQ7QmT5obI/ 3o5g== MIME-Version: 1.0 Received: by 10.68.236.102 with SMTP id ut6mr49416068pbc.113.1346800810177; Tue, 04 Sep 2012 16:20:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Tue, 4 Sep 2012 16:20:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Sep 2012 16:20:10 -0700 X-Google-Sender-Auth: mLVlNyCbl87EIsemNNbupCDk2lA Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: Heads up: AR7241 + PCIe and AR9287 on-board stuff works 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, 04 Sep 2012 23:20:11 -0000 On 28 August 2012 21:00, Adrian Chadd wrote: > The default (most things as modules) kernel build is still ~ 3.5mb. > That's rather large for a board with 16MB of RAM. > > Additionally, I can't load the ath device after the system has come up > single user - the driver fails to allocate descriptors/buffer entries. > I'll do some digging about it in a couple of weeks. I'd like some > pointers on how to dump the current state of memory so I can see > exactly what's going on. > > For reference, 'sysctl vm.vmtotal' shows the total free RAM is around > 1 to 1.5MB. I'm guessing some are allocated to buffers but I'd like to > see what else is actually holding onto memory.. It turns out memory fragmentation due to a huge (for embedded) userland are to blame. I'll see if I can get ray@ to help me port phkmalloc to -HEAD again and try to tweak the default allocator parameters to not pre-allocate large pools for each process. Seeing login, sh, etc have an RSS of 1MB is kind of scary. I'll do some more digging with procstat (when I fit it into the current image) and report back. There's also the problem of a 3.5MB "stripped down nothing but what's needed to boot and read the rootfs from SPI flash + FFS" kernel size problem. That seems slightly(!) too big.. Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 6 11:22:21 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01AF9106566B; Thu, 6 Sep 2012 11:22:21 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id B01DB8FC0A; Thu, 6 Sep 2012 11:22:20 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:49ee:4a:4b3c:6f58]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id C9D874AC2D; Thu, 6 Sep 2012 15:22:12 +0400 (MSK) Date: Thu, 6 Sep 2012 15:22:08 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <25326010.20120906152208@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: Heads up: AR7241 + PCIe and AR9287 on-board stuff works 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, 06 Sep 2012 11:22:21 -0000 Hello, Adrian. You wrote 5 =F1=E5=ED=F2=FF=E1=F0=FF 2012 =E3., 3:20:10: AC> There's also the problem of a 3.5MB "stripped down nothing but what's AC> needed to boot and read the rootfs from SPI flash + FFS" kernel size AC> problem. That seems slightly(!) too big.. Maybe, new work by Jonathan Anderson "Call graphs with bsd.obj.mk" could help to understand unused parts of kernel? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Thu Sep 6 22:10:40 2012 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 454FA106564A for ; Thu, 6 Sep 2012 22:10:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 072C18FC12 for ; Thu, 6 Sep 2012 22:10:39 +0000 (UTC) Received: by obbun3 with SMTP id un3so4403610obb.13 for ; Thu, 06 Sep 2012 15:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=0Sp6uHkZ4wm9czShBdDeNZeKJqZxRbQyPWRNqcY+xk8=; b=M43LnrVMO1s/MY2IvJ/bnIDhXjC8joSHHOT6Mna5Fc0qGhFxc02MCVfXM97JRZrJib TMBZE5XPzZxSnU7ZQHSDI1S8pyM+mrf1b5czndNBZCkQdO9vV6LD7kjSpQ0aE8MebdCx TPxek1ex21A/gKpF4GaC6QXnUL8Nc3/VD2IfpmynP6QNbWVzbzDmGSRHabHeo5cXnCUX RItHDp9KTRM7lR+U2GNC6ohB7WTIWFQaVB/yjiCaIUmD85oh/lUkW2gpt8U2pwNYNTC4 MX+OW1U/jReJDG8u37AG0wzjbZ6bpdjIwhtv0rNosj1kFb4m0rsZh/LUDoaZ4OuBYEf/ CYcw== MIME-Version: 1.0 Received: by 10.60.172.135 with SMTP id bc7mr3771312oec.127.1346969439236; Thu, 06 Sep 2012 15:10:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.8.98 with HTTP; Thu, 6 Sep 2012 15:10:39 -0700 (PDT) Date: Thu, 6 Sep 2012 15:10:39 -0700 X-Google-Sender-Auth: xVo4EEuMCPvLD9eD_ZtWdhfo-lk Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: CFT: Fix nframes on retried frames 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, 06 Sep 2012 22:10:40 -0000 Hi all, Kim has some debugging output that leads me to believe I'm not entirely correctly clearing aggregation frame state when a buffer is being retried. I have a patch here which clears some of it: http://people.freebsd.org/~adrian/ath/20120905-bfs-set-nframes.diff I'd appreciate it if people would test this out and let me know if they see any debugging output that has 'nframes' in it. Once I know that this corner case is being triggered and that I've fixed (part of) it, I'll push this into -HEAD> Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 7 00:23:51 2012 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 1B3BE1065672; Fri, 7 Sep 2012 00:23:51 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E13CC8FC12; Fri, 7 Sep 2012 00:23:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q870NovZ086578; Fri, 7 Sep 2012 00:23:50 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q870NovF086561; Fri, 7 Sep 2012 00:23:50 GMT (envelope-from adrian) Date: Fri, 7 Sep 2012 00:23:50 GMT Message-Id: <201209070023.q870NovF086561@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/171394: [ath] ath0: ath_tx_aggr_comp_aggr: num frames seen=1; bf nframes=4 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, 07 Sep 2012 00:23:51 -0000 Synopsis: [ath] ath0: ath_tx_aggr_comp_aggr: num frames seen=1; bf nframes=4 Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Fri Sep 7 00:23:40 UTC 2012 Responsible-Changed-Why: Reassign http://www.freebsd.org/cgi/query-pr.cgi?pr=171394 From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 7 00:30:12 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99BE71065670 for ; Fri, 7 Sep 2012 00:30:12 +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 7E3508FC0C for ; Fri, 7 Sep 2012 00:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q870UCf8021856 for ; Fri, 7 Sep 2012 00:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q870UCop021837; Fri, 7 Sep 2012 00:30:12 GMT (envelope-from gnats) Date: Fri, 7 Sep 2012 00:30:12 GMT Message-Id: <201209070030.q870UCop021837@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/171394: commit references a PR X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service 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, 07 Sep 2012 00:30:12 -0000 The following reply was made to PR kern/171394; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/171394: commit references a PR Date: Fri, 7 Sep 2012 00:24:41 +0000 (UTC) Author: adrian Date: Fri Sep 7 00:24:27 2012 New Revision: 240180 URL: http://svn.freebsd.org/changeset/base/240180 Log: Ensure that single-frame aggregate session frames are retransmitted with the correct configuration. Occasionally an aggregate TX would fail and the first frame would be retransmitted as a non-AMPDU frame. Since bfs_aggr=1 and bfs_nframes > 1 (from the previous AMPDU attempt), the aggr completion function would be called and be very confused about what's going on. Noticed by: Kim PR: kern/171394 Modified: head/sys/dev/ath/if_ath_tx.c Modified: head/sys/dev/ath/if_ath_tx.c ============================================================================== --- head/sys/dev/ath/if_ath_tx.c Fri Sep 7 00:20:46 2012 (r240179) +++ head/sys/dev/ath/if_ath_tx.c Fri Sep 7 00:24:27 2012 (r240180) @@ -2528,6 +2528,25 @@ ath_tx_xmit_aggr(struct ath_softc *sc, s return; } + /* + * This is a temporary check and should be removed once + * all the relevant code paths have been fixed. + * + * During aggregate retries, it's possible that the head + * frame will fail (which has the bfs_aggr and bfs_nframes + * fields set for said aggregate) and will be retried as + * a single frame. In this instance, the values should + * be reset or the completion code will get upset with you. + */ + if (bf->bf_state.bfs_aggr != 0 || bf->bf_state.bfs_nframes > 1) { + device_printf(sc->sc_dev, "%s: bfs_aggr=%d, bfs_nframes=%d\n", + __func__, + bf->bf_state.bfs_aggr, + bf->bf_state.bfs_nframes); + bf->bf_state.bfs_aggr = 0; + bf->bf_state.bfs_nframes = 1; + } + /* Direct dispatch to hardware */ ath_tx_do_ratelookup(sc, bf); ath_tx_calc_duration(sc, bf); @@ -2624,6 +2643,16 @@ ath_tx_swq(struct ath_softc *sc, struct if (txq->axq_depth < sc->sc_hwq_limit) { bf = TAILQ_FIRST(&atid->axq_q); ATH_TXQ_REMOVE(atid, bf, bf_list); + + /* + * Ensure it's definitely treated as a non-AMPDU + * frame - this information may have been left + * over from a previous attempt. + */ + bf->bf_state.bfs_aggr = 0; + bf->bf_state.bfs_nframes = 1; + + /* Queue to the hardware */ ath_tx_xmit_aggr(sc, an, txq, bf); DPRINTF(sc, ATH_DEBUG_SW_TX, "%s: xmit_aggr\n", @@ -4018,7 +4047,23 @@ ath_tx_tid_hw_queue_aggr(struct ath_soft "%s: non-baw packet\n", __func__); ATH_TXQ_REMOVE(tid, bf, bf_list); + + if (bf->bf_state.bfs_nframes > 1) + device_printf(sc->sc_dev, + "%s: aggr=%d, nframes=%d\n", + __func__, + bf->bf_state.bfs_aggr, + bf->bf_state.bfs_nframes); + + /* + * This shouldn't happen - such frames shouldn't + * ever have been queued as an aggregate in the + * first place. However, make sure the fields + * are correctly setup just to be totally sure. + */ bf->bf_state.bfs_aggr = 0; + bf->bf_state.bfs_nframes = 1; + ath_tx_do_ratelookup(sc, bf); ath_tx_calc_duration(sc, bf); ath_tx_calc_protection(sc, bf); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 8 03:10:19 2012 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 690CC106564A for ; Sat, 8 Sep 2012 03:10:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3D0DA8FC12 for ; Sat, 8 Sep 2012 03:10:19 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so492515pbb.13 for ; Fri, 07 Sep 2012 20:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=bRUKfCw3ChtjsRH1xk2PYmZ4D3n+qA7F2qXwpjoluzU=; b=bRhSHc+2k+JtZArM78RsKqG0DfmiVk+FbvkG+ftjm9ccxtcskx3ndN7K+bcefD9XB7 9KKdbeblUpAeaBOIPunV2pgdYiH0nZkGw2EVflHVZW8oyKnp3BjKUteDJP+tKYmPuYOg Mgdnvk2iKRZvRvu9xAhY1tR/u5ZoeYcvnxSximiUtFcapSsrSqiTPenYH3E6r50NgGS/ wr8WifeSKyjwN3b91Fj/+NYuNiMusKIdBp2eK+9MPLIyLbT4+tZ03GlZ3AOPNJ2vGzM2 CgRvtH1E31J99Yfqjne3DWGCHVno9n/6QHr7O31a/bYoUIhDo0IanlrkqXsX719T70W3 /Ibw== MIME-Version: 1.0 Received: by 10.68.129.131 with SMTP id nw3mr13247586pbb.43.1347073818136; Fri, 07 Sep 2012 20:10:18 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Fri, 7 Sep 2012 20:10:18 -0700 (PDT) In-Reply-To: <201209080256.q882u9fY007905@svn.freebsd.org> References: <201209080256.q882u9fY007905@svn.freebsd.org> Date: Fri, 7 Sep 2012 20:10:18 -0700 X-Google-Sender-Auth: x9G7G2_j8Qo8ZDXicYtSw2JiUt0 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Fwd: svn commit: r240226 - head/sys/dev/ath 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, 08 Sep 2012 03:10:19 -0000 Hiya, If you run ath(4) on -HEAD with 11n you will definitely want to update. :-) Adrian ---------- Forwarded message ---------- From: Adrian Chadd Date: 7 September 2012 19:56 Subject: svn commit: r240226 - head/sys/dev/ath To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Author: adrian Date: Sat Sep 8 02:56:09 2012 New Revision: 240226 URL: http://svn.freebsd.org/changeset/base/240226 Log: Correctly mask out the RTS/CTS flags when forming aggregates. This had the side effect of clearing HAL_TXDESC_CLRDMASK for a bunch of frames, meaning they'd end up being potentially filtered if there were an error. This is fine in the previous world as they'd just be software retried but now that I'm working on filtered frames, these descriptors would be endlessly retried until another valid frame would come along that had CLRDMASK set. Modified: head/sys/dev/ath/if_ath_tx_ht.c Modified: head/sys/dev/ath/if_ath_tx_ht.c ============================================================================== --- head/sys/dev/ath/if_ath_tx_ht.c Sat Sep 8 02:41:50 2012 (r240225) +++ head/sys/dev/ath/if_ath_tx_ht.c Sat Sep 8 02:56:09 2012 (r240226) @@ -742,7 +742,7 @@ ath_tx_form_aggr(struct ath_softc *sc, s * subsequent frame with this config. */ bf->bf_state.bfs_txflags &= - (HAL_TXDESC_RTSENA | HAL_TXDESC_CTSENA); + ~ (HAL_TXDESC_RTSENA | HAL_TXDESC_CTSENA); bf->bf_state.bfs_txflags |= bf_first->bf_state.bfs_txflags & (HAL_TXDESC_RTSENA | HAL_TXDESC_CTSENA); From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 8 09:50:08 2012 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 095E6106564A for ; Sat, 8 Sep 2012 09:50:08 +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 D912D8FC08 for ; Sat, 8 Sep 2012 09:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q889o7pl040846 for ; Sat, 8 Sep 2012 09:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q889o7I2040830; Sat, 8 Sep 2012 09:50:07 GMT (envelope-from gnats) Date: Sat, 8 Sep 2012 09:50:07 GMT Message-Id: <201209080950.q889o7I2040830@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Alexander =?iso-8859-1?b?S/xobg==?= Cc: Subject: Re: kern/167491: [ath] TID != hardware queue TID in ath_tx_aggr_comp_aggr() X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander =?iso-8859-1?b?S/xobg==?= 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, 08 Sep 2012 09:50:08 -0000 The following reply was made to PR kern/167491; it has been noted by GNATS. From: Alexander =?iso-8859-1?b?S/xobg==?= To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/167491: [ath] TID != hardware queue TID in ath_tx_aggr_comp_aggr() Date: Sat, 08 Sep 2012 11:42:47 +0200 I see the same on x86 along with: messages.4.bz2:Sep 2 17:04:29 cakebox kernel: ath0: stuck beacon; resetting (bmiss count 4) messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: stuck beacon; resetting (bmiss count 4) messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: ath_start: sc_inreset_cnt > 0; bailing messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: node 0xc47ea000: bf=0xc350fcc0: addbaw=0, dobaw=0, seqno=0, retry=0 messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: node 0xc47ea000: bf=0xc350fcc0: tid txq_depth=1 hwq_depth=0, bar_wait=0 messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: node 0xc47ea000: tid 16: txq_depth=64, txq_aggr_depth=0, sched=0, paused=0, hwq_depth=0, incomp=0, baw_head=0, baw_tail=0 txa_start=-1, ni_txseqs=7 messages.4.bz2:Sep 2 17:06:25 cakebox kernel: ath0: stuck beacon; resetting (bmiss count 4) Unfortunately this causes the transfer rates to drop and occasionally even makes it impossible to associate with the AP. dmesg: Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #0: Wed Aug 29 13:01:13 CEST 2012 root@cakebox.tis:/usr/obj/export/src/sys/net5501 i386 CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x5a2 Family = 5 Model = a Stepping = 2 Features=0x88a93d AMD Features=0xc0400000 real memory = 536870912 (512 MB) avail memory = 515837952 (491 MB) K6-family MTRR support enabled (2 registers) cryptosoft0: on motherboard pcib0 pcibus 0 on motherboard pci0: on pcib0 Geode LX: Soekris net5501 comBIOS ver. 1.33 20070103 Copyright (C) 2000-2007 glxsb0: mem 0xa0000000-0xa0003fff irq 10 at device 1.2 on pci0 vr0: port 0xe100-0xe1ff mem 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0 vr0: Quirks: 0x2 vr0: Revision: 0x96 miibus0: on vr0 ukphy0: PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow vr0: Ethernet address: 00:00:24:cb:a6:80 vr1: port 0xe200-0xe2ff mem 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0 vr1: Quirks: 0x2 vr1: Revision: 0x96 miibus1: on vr1 ukphy1: PHY 1 on miibus1 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow vr1: Ethernet address: 00:00:24:cb:a6:81 vr2: port 0xe300-0xe3ff mem 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0 vr2: Quirks: 0x2 vr2: Revision: 0x96 miibus2: on vr2 ukphy2: PHY 1 on miibus2 ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow vr2: Ethernet address: 00:00:24:cb:a6:82 vr3: port 0xe400-0xe4ff mem 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0 vr3: Quirks: 0x2 vr3: Revision: 0x96 miibus3: on vr3 ukphy3: PHY 1 on miibus3 ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow vr3: Ethernet address: 00:00:24:cb:a6:83 ath0: mem 0xa0010000-0xa001ffff irq 10 at device 14.0 on pci0 ath0: DMA setup: legacy ath0: [HT] enabling HT modes ath0: [HT] RTS aggregates limited to 8 KiB ath0: [HT] 2 RX streams; 2 TX streams ath0: AR5416 mac 13.10 RF2133 phy 8.1 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00d0 isab0: at device 20.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 ohci0: mem 0xa0020000-0xa0020fff irq 15 at device 21.0 on pci0 usbus0 on ohci0 ehci0: mem 0xa0021000-0xa0021fff irq 15 at device 21.1 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 cpu0 on motherboard orm0: at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0 atrtc0: at port 0x70 irq 8 on isa0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: at port 0x40 on isa0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart0: console (19200,n,8,1) uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ad0: 152627MB at ata0-master UDMA100 GEOM_SCHED: Initializing global data. GEOM_SCHED: Loading: mp = 0xc0a9aa20, g_sched_class = 0xc0a9aa20. Timecounter "TSC" frequency 499912531 Hz quality 800 uhub0: 4 ports with 4 removable, self powered Root mount waiting for: usbus1 uhub1: 4 ports with 4 removable, self powered From owner-freebsd-wireless@FreeBSD.ORG Sat Sep 8 16:14:30 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54AF7106564A for ; Sat, 8 Sep 2012 16:14:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 259B18FC15 for ; Sat, 8 Sep 2012 16:14:30 +0000 (UTC) Received: by dadr6 with SMTP id r6so450184dad.13 for ; Sat, 08 Sep 2012 09:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; 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=hOVWCwSPF+rR+3O6Wohu7OMQ7KvXT1mLkUHTsE0nUMM=; b=iuMfXqWCg+QCKqjsWoCY3k1xQbnfI2IPNuUsZVAvp9qjfTxjC8mepwHGOl8+f4HAw6 tKha9uTeFTe+qBUl6P5XIV/2DXRaBAUkuwPaWbw0lkXHs55jm8LYdnkxdLgamEUHXd5x guhLd0dk8IpBk0MMf7j4YvSCfnO480rfrOkUEHDKb5Jm/+hWUDgqCVs2QsHrJUMXmDtR O0m192DJB/cAB1z52mwMhQZsK9cr1vU82RWiy1uxIPVHJMDDwluPM2aChWZfyKGH8jtr vKhIWn0U/db8ECspzIReUGd3vGyMl0stV1Z1GvzEYbNcZS4Ad1E/Hds7MZT6u9Z3jP88 JOsw== MIME-Version: 1.0 Received: by 10.66.78.73 with SMTP id z9mr14479538paw.9.1347120869626; Sat, 08 Sep 2012 09:14:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Sat, 8 Sep 2012 09:14:29 -0700 (PDT) In-Reply-To: <201209080950.q889o7I2040830@freefall.freebsd.org> References: <201209080950.q889o7I2040830@freefall.freebsd.org> Date: Sat, 8 Sep 2012 09:14:29 -0700 X-Google-Sender-Auth: mByx43Rff-umZPKvfZTWcrB53cQ Message-ID: From: Adrian Chadd To: =?ISO-8859-1?Q?Alexander_K=FChn?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: kern/167491: [ath] TID != hardware queue TID in ath_tx_aggr_comp_aggr() 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, 08 Sep 2012 16:14:30 -0000 Hi, COmpile/run athsurvey; paste the results here. src/tools/tools/ath/athsurvey/ Adrian On 8 September 2012 02:50, Alexander K=FChn wr= ote: > The following reply was made to PR kern/167491; it has been noted by GNAT= S. > > From: Alexander =3D?iso-8859-1?b?S/xobg=3D=3D?=3D > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: kern/167491: [ath] TID !=3D hardware queue TID in > ath_tx_aggr_comp_aggr() > Date: Sat, 08 Sep 2012 11:42:47 +0200 > > I see the same on x86 along with: > > messages.4.bz2:Sep 2 17:04:29 cakebox kernel: ath0: stuck beacon; > resetting (bmiss count 4) > messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: stuck beacon; > resetting (bmiss count 4) > messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: ath_start: > sc_inreset_cnt > 0; bailing > messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: > node 0xc47ea000: bf=3D0xc350fcc0: addbaw=3D0, dobaw=3D0, seqno=3D0, retr= y=3D0 > messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: > node 0xc47ea000: bf=3D0xc350fcc0: tid txq_depth=3D1 hwq_depth=3D0, bar_w= ait=3D0 > messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: > node 0xc47ea000: tid 16: txq_depth=3D64, txq_aggr_depth=3D0, sched=3D0, > paused=3D0, hwq_depth=3D0, incomp=3D0, baw_head=3D0, baw_tail=3D0 txa_st= art=3D-1, > ni_txseqs=3D7 > messages.4.bz2:Sep 2 17:06:25 cakebox kernel: ath0: stuck beacon; > resetting (bmiss count 4) > > Unfortunately this causes the transfer rates to drop and occasionally > even makes it impossible to associate with the AP. > > dmesg: > Copyright (c) 1992-2012 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserve= d. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #0: Wed Aug 29 13:01:13 CEST 2012 > root@cakebox.tis:/usr/obj/export/src/sys/net5501 i386 > CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class CPU= ) > Origin =3D "AuthenticAMD" Id =3D 0x5a2 Family =3D 5 Model =3D a S= tepping =3D 2 > Features=3D0x88a93d > AMD Features=3D0xc0400000 > real memory =3D 536870912 (512 MB) > avail memory =3D 515837952 (491 MB) > K6-family MTRR support enabled (2 registers) > cryptosoft0: on motherboard > pcib0 pcibus 0 on motherboard > pci0: on pcib0 > Geode LX: Soekris net5501 comBIOS ver. 1.33 20070103 Copyright (C) 2000-= 2007 > glxsb0: mem > 0xa0000000-0xa0003fff irq 10 at device 1.2 on pci0 > vr0: port 0xe100-0xe1ff mem > 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0 > vr0: Quirks: 0x2 > vr0: Revision: 0x96 > miibus0: on vr0 > ukphy0: PHY 1 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, aut= o-flow > vr0: Ethernet address: 00:00:24:cb:a6:80 > vr1: port 0xe200-0xe2ff mem > 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0 > vr1: Quirks: 0x2 > vr1: Revision: 0x96 > miibus1: on vr1 > ukphy1: PHY 1 on miibus1 > ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, aut= o-flow > vr1: Ethernet address: 00:00:24:cb:a6:81 > vr2: port 0xe300-0xe3ff mem > 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0 > vr2: Quirks: 0x2 > vr2: Revision: 0x96 > miibus2: on vr2 > ukphy2: PHY 1 on miibus2 > ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, aut= o-flow > vr2: Ethernet address: 00:00:24:cb:a6:82 > vr3: port 0xe400-0xe4ff mem > 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0 > vr3: Quirks: 0x2 > vr3: Revision: 0x96 > miibus3: on vr3 > ukphy3: PHY 1 on miibus3 > ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, aut= o-flow > vr3: Ethernet address: 00:00:24:cb:a6:83 > ath0: mem 0xa0010000-0xa001ffff irq 10 at device 14.0 on = pci0 > ath0: DMA setup: legacy > ath0: [HT] enabling HT modes > ath0: [HT] RTS aggregates limited to 8 KiB > ath0: [HT] 2 RX streams; 2 TX streams > ath0: AR5416 mac 13.10 RF2133 phy 8.1 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00d0 > isab0: at device 20.0 on pci0 > isa0: on isab0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0 > ata0: at channel 0 on atapci0 > ata1: at channel 1 on atapci0 > ohci0: mem 0xa0020000-0xa0020fff irq > 15 at device 21.0 on pci0 > usbus0 on ohci0 > ehci0: mem > 0xa0021000-0xa0021fff irq 15 at device 21.1 on pci0 > usbus1: EHCI version 1.0 > usbus1 on ehci0 > cpu0 on motherboard > orm0: at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0 > atrtc0: at port 0x70 irq 8 on isa0 > Event timer "RTC" frequency 32768 Hz quality 0 > attimer0: at port 0x40 on isa0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa= 0 > uart0: console (19200,n,8,1) > uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 > Timecounters tick every 1.000 msec > usbus0: 12Mbps Full Speed USB v1.0 > usbus1: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > ad0: 152627MB at ata0-master UDMA100 > GEOM_SCHED: Initializing global data. > GEOM_SCHED: Loading: mp =3D 0xc0a9aa20, g_sched_class =3D 0xc0a9aa20. > Timecounter "TSC" frequency 499912531 Hz quality 800 > uhub0: 4 ports with 4 removable, self powered > Root mount waiting for: usbus1 > uhub1: 4 ports with 4 removable, self powered > _______________________________________________ > 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 Sat Sep 8 19:29:29 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1F97106564A; Sat, 8 Sep 2012 19:29:29 +0000 (UTC) (envelope-from alexander.kuehn@nagilum.de) Received: from mo6-p00-ob.rzone.de (mo6-p00-ob.rzone.de [IPv6:2a01:238:20a:202:5300::1]) by mx1.freebsd.org (Postfix) with ESMTP id 151BD8FC12; Sat, 8 Sep 2012 19:29:28 +0000 (UTC) X-RZG-AUTH: :O2kGeEG7b/pS1EO4THa/nJdkGexqY2koBVOK1IEPiZ6uSkEMG05qYmSsddWNogGEcA== X-RZG-CLASS-ID: mo00 Received: from cakebox.homeunix.net (164-010-186-093.dialin.vsenet.de [93.186.10.164]) by smtp.strato.de (joses mo11) (RZmta 30.14 DYNA|AUTH) with (DHE-RSA-AES256-SHA encrypted) ESMTPA id 001371o88I0H6m ; Sat, 8 Sep 2012 21:29:28 +0200 (CEST) Received: from cakebox.homeunix.net (localhost [127.0.0.1]) by cakebox.homeunix.net (Postfix) with ESMTP id 9A582682D9; Sat, 8 Sep 2012 21:29:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on cakebox.tis X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.4 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Received: by cakebox.homeunix.net (Postfix, from userid 80) id CEBA2682D8; Sat, 8 Sep 2012 21:29:08 +0200 (CEST) Received: from 10.1.2.12 ([10.1.2.12]) by cakebox.homeunix.net (Horde Framework) with HTTP; Sat, 08 Sep 2012 21:29:08 +0200 Date: Sat, 08 Sep 2012 21:29:07 +0200 Message-ID: <20120908212907.Horde.z-dkLpk8pphQS5yD649BHYA@cakebox.homeunix.net> From: Alexander =?iso-8859-1?b?S/xobg==?= To: Adrian Chadd References: <201209080950.q889o7I2040830@freefall.freebsd.org> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H4 (5.0.23) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: kern/167491: [ath] TID != hardware queue TID in ath_tx_aggr_comp_aggr() 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, 08 Sep 2012 19:29:30 -0000 athsurvey: ath0: Ung?ltiges Argument ..which translates to invalid argument. $ ifconfig ath0 ath0: flags=3D8802 metric 0 mtu 2290 ether b0:48:7a:bc:cb:c3 nd6 options=3D21 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect ) status: no carrier Sorry. Alex. Zitat von Adrian Chadd : > Hi, > > COmpile/run athsurvey; paste the results here. > > src/tools/tools/ath/athsurvey/ > > > > Adrian > > > On 8 September 2012 02:50, Alexander K=FChn = wrote: >> The following reply was made to PR kern/167491; it has been noted by GNA= TS. >> >> From: Alexander =3D?iso-8859-1?b?S/xobg=3D=3D?=3D >> To: bug-followup@FreeBSD.org >> Cc: >> Subject: Re: kern/167491: [ath] TID !=3D hardware queue TID in >> ath_tx_aggr_comp_aggr() >> Date: Sat, 08 Sep 2012 11:42:47 +0200 >> >> I see the same on x86 along with: >> >> messages.4.bz2:Sep 2 17:04:29 cakebox kernel: ath0: stuck beacon; >> resetting (bmiss count 4) >> messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: stuck beacon; >> resetting (bmiss count 4) >> messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: ath_start: >> sc_inreset_cnt > 0; bailing >> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: >> node 0xc47ea000: bf=3D0xc350fcc0: addbaw=3D0, dobaw=3D0, seqno=3D0, ret= ry=3D0 >> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: >> node 0xc47ea000: bf=3D0xc350fcc0: tid txq_depth=3D1 hwq_depth=3D0, bar_= wait=3D0 >> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: >> node 0xc47ea000: tid 16: txq_depth=3D64, txq_aggr_depth=3D0, sched=3D0, >> paused=3D0, hwq_depth=3D0, incomp=3D0, baw_head=3D0, baw_tail=3D0 txa_s= tart=3D-1, >> ni_txseqs=3D7 >> messages.4.bz2:Sep 2 17:06:25 cakebox kernel: ath0: stuck beacon; >> resetting (bmiss count 4) >> >> Unfortunately this causes the transfer rates to drop and occasionally >> even makes it impossible to associate with the AP. >> >> dmesg: >> Copyright (c) 1992-2012 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 199= 4 >> The Regents of the University of California. All rights reserv= ed. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 10.0-CURRENT #0: Wed Aug 29 13:01:13 CEST 2012 >> root@cakebox.tis:/usr/obj/export/src/sys/net5501 i386 >> CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class CP= U) >> Origin =3D "AuthenticAMD" Id =3D 0x5a2 Family =3D 5 Model =3D a = Stepping =3D 2 >> Features=3D0x88a93d >> AMD Features=3D0xc0400000 >> real memory =3D 536870912 (512 MB) >> avail memory =3D 515837952 (491 MB) >> K6-family MTRR support enabled (2 registers) >> cryptosoft0: on motherboard >> pcib0 pcibus 0 on motherboard >> pci0: on pcib0 >> Geode LX: Soekris net5501 comBIOS ver. 1.33 20070103 Copyright (C) >> 2000-2007 >> glxsb0: mem >> 0xa0000000-0xa0003fff irq 10 at device 1.2 on pci0 >> vr0: port 0xe100-0xe1ff mem >> 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0 >> vr0: Quirks: 0x2 >> vr0: Revision: 0x96 >> miibus0: on vr0 >> ukphy0: PHY 1 on miibus0 >> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> auto, auto-flow >> vr0: Ethernet address: 00:00:24:cb:a6:80 >> vr1: port 0xe200-0xe2ff mem >> 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0 >> vr1: Quirks: 0x2 >> vr1: Revision: 0x96 >> miibus1: on vr1 >> ukphy1: PHY 1 on miibus1 >> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> auto, auto-flow >> vr1: Ethernet address: 00:00:24:cb:a6:81 >> vr2: port 0xe300-0xe3ff mem >> 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0 >> vr2: Quirks: 0x2 >> vr2: Revision: 0x96 >> miibus2: on vr2 >> ukphy2: PHY 1 on miibus2 >> ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> auto, auto-flow >> vr2: Ethernet address: 00:00:24:cb:a6:82 >> vr3: port 0xe400-0xe4ff mem >> 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0 >> vr3: Quirks: 0x2 >> vr3: Revision: 0x96 >> miibus3: on vr3 >> ukphy3: PHY 1 on miibus3 >> ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> auto, auto-flow >> vr3: Ethernet address: 00:00:24:cb:a6:83 >> ath0: mem 0xa0010000-0xa001ffff irq 10 at device >> 14.0 on pci0 >> ath0: DMA setup: legacy >> ath0: [HT] enabling HT modes >> ath0: [HT] RTS aggregates limited to 8 KiB >> ath0: [HT] 2 RX streams; 2 TX streams >> ath0: AR5416 mac 13.10 RF2133 phy 8.1 >> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00d0 >> isab0: at device 20.0 on pci0 >> isa0: on isab0 >> atapci0: port >> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci= 0 >> ata0: at channel 0 on atapci0 >> ata1: at channel 1 on atapci0 >> ohci0: mem 0xa0020000-0xa0020fff irq >> 15 at device 21.0 on pci0 >> usbus0 on ohci0 >> ehci0: mem >> 0xa0021000-0xa0021fff irq 15 at device 21.1 on pci0 >> usbus1: EHCI version 1.0 >> usbus1 on ehci0 >> cpu0 on motherboard >> orm0: at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0 >> atrtc0: at port 0x70 irq 8 on isa0 >> Event timer "RTC" frequency 32768 Hz quality 0 >> attimer0: at port 0x40 on isa0 >> Timecounter "i8254" frequency 1193182 Hz quality 0 >> Event timer "i8254" frequency 1193182 Hz quality 100 >> uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on is= a0 >> uart0: console (19200,n,8,1) >> uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 >> Timecounters tick every 1.000 msec >> usbus0: 12Mbps Full Speed USB v1.0 >> usbus1: 480Mbps High Speed USB v2.0 >> ugen0.1: at usbus0 >> uhub0: on usbus0 >> ugen1.1: at usbus1 >> uhub1: on usbus1 >> ad0: 152627MB at ata0-master UDMA100 >> GEOM_SCHED: Initializing global data. >> GEOM_SCHED: Loading: mp =3D 0xc0a9aa20, g_sched_class =3D 0xc0a9aa20. >> Timecounter "TSC" frequency 499912531 Hz quality 800 >> uhub0: 4 ports with 4 removable, self powered >> Root mount waiting for: usbus1 >> uhub1: 4 ports with 4 removable, self powered >> _______________________________________________ >> 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 Sat Sep 8 19:31:13 2012 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 1D6811065672 for ; Sat, 8 Sep 2012 19:31:13 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id DBF3A8FC0A for ; Sat, 8 Sep 2012 19:31:12 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so1170033pbb.13 for ; Sat, 08 Sep 2012 12:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=M9eMz8SKmn1h7z3c6npsbHdsd2XK3UqHQ67Vb36GiPc=; b=rQ4TDrALLsbrMgaLtu38CfQIJTkM3rFSJ29Q14IO0VV0xmJUAOQ48RbW6mrAg4sa7S 9MMmQQ6mKAJ2OZBj67lFbpLBT5QKs/0EIbmGYv25MH7aApVm6ZriBe/i0h3YHWUwe61s kC2fxTdDbmY76rX7/RktfD2Uzw1R4BxAWdtBFRvv8KlWFedOQ5VHGk1lgsiAjvz4IGx/ KRb3/4Qst+ohoyMwF23qFMp2xtWIr5BmRPTUTVCzWo2zIQJ/Svr8pdXsyde/IiNKrbl3 y220d3wMZjA4mxSifQhl2WaLPREED/MPQNC7zK3hiGBYG9YTqGXypwCbw5UO4+GHDTsI QnTg== MIME-Version: 1.0 Received: by 10.68.138.169 with SMTP id qr9mr17127116pbb.27.1347132665705; Sat, 08 Sep 2012 12:31:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Sat, 8 Sep 2012 12:31:05 -0700 (PDT) Received: by 10.68.36.106 with HTTP; Sat, 8 Sep 2012 12:31:05 -0700 (PDT) In-Reply-To: <20120908212907.Horde.z-dkLpk8pphQS5yD649BHYA@cakebox.homeunix.net> References: <201209080950.q889o7I2040830@freefall.freebsd.org> <20120908212907.Horde.z-dkLpk8pphQS5yD649BHYA@cakebox.homeunix.net> Date: Sat, 8 Sep 2012 12:31:05 -0700 X-Google-Sender-Auth: 9yRQUG36a2ihCiO3F4G0odmKLk4 Message-ID: From: Adrian Chadd To: =?ISO-8859-1?Q?Alexander_K=FChn?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: kern/167491: [ath] TID != hardware queue TID in ath_tx_aggr_comp_aggr() 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, 08 Sep 2012 19:31:13 -0000 Hi, you need to add the ath debug and diagapi options. Adrian On Sep 8, 2012 3:29 PM, "Alexander K=FChn" wro= te: > athsurvey: ath0: Ung?ltiges Argument > > ..which translates to invalid argument. > > $ ifconfig ath0 > ath0: flags=3D8802 metric 0 mtu 2290 > ether b0:48:7a:bc:cb:c3 > nd6 options=3D21 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect > ) > status: no carrier > > Sorry. > Alex. > > Zitat von Adrian Chadd : > > Hi, >> >> COmpile/run athsurvey; paste the results here. >> >> src/tools/tools/ath/athsurvey/ >> >> >> >> Adrian >> >> >> On 8 September 2012 02:50, Alexander K=FChn >> wrote: >> >>> The following reply was made to PR kern/167491; it has been noted by >>> GNATS. >>> >>> From: Alexander =3D?iso-8859-1?b?S/xobg=3D=3D?=3D >>> To: bug-followup@FreeBSD.org >>> Cc: >>> Subject: Re: kern/167491: [ath] TID !=3D hardware queue TID in >>> ath_tx_aggr_comp_aggr() >>> Date: Sat, 08 Sep 2012 11:42:47 +0200 >>> >>> I see the same on x86 along with: >>> >>> messages.4.bz2:Sep 2 17:04:29 cakebox kernel: ath0: stuck beacon; >>> resetting (bmiss count 4) >>> messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: stuck beacon; >>> resetting (bmiss count 4) >>> messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: ath_start: >>> sc_inreset_cnt > 0; bailing >>> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: >>> node 0xc47ea000: bf=3D0xc350fcc0: addbaw=3D0, dobaw=3D0, seqno=3D0, re= try=3D0 >>> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: >>> node 0xc47ea000: bf=3D0xc350fcc0: tid txq_depth=3D1 hwq_depth=3D0, bar= _wait=3D0 >>> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain: >>> node 0xc47ea000: tid 16: txq_depth=3D64, txq_aggr_depth=3D0, sched=3D0= , >>> paused=3D0, hwq_depth=3D0, incomp=3D0, baw_head=3D0, baw_tail=3D0 txa_= start=3D-1, >>> ni_txseqs=3D7 >>> messages.4.bz2:Sep 2 17:06:25 cakebox kernel: ath0: stuck beacon; >>> resetting (bmiss count 4) >>> >>> Unfortunately this causes the transfer rates to drop and occasionally >>> even makes it impossible to associate with the AP. >>> >>> dmesg: >>> Copyright (c) 1992-2012 The FreeBSD Project. >>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 19= 94 >>> The Regents of the University of California. All rights >>> reserved. >>> FreeBSD is a registered trademark of The FreeBSD Foundation. >>> FreeBSD 10.0-CURRENT #0: Wed Aug 29 13:01:13 CEST 2012 >>> root@cakebox.tis:/usr/obj/**export/src/sys/net5501 i386 >>> CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class >>> CPU) >>> Origin =3D "AuthenticAMD" Id =3D 0x5a2 Family =3D 5 Model =3D a = Stepping >>> =3D 2 >>> Features=3D0x88a93d>> CLFLUSH,MMX> >>> AMD Features=3D0xc0400000 >>> real memory =3D 536870912 (512 MB) >>> avail memory =3D 515837952 (491 MB) >>> K6-family MTRR support enabled (2 registers) >>> cryptosoft0: on motherboard >>> pcib0 pcibus 0 on motherboard >>> pci0: on pcib0 >>> Geode LX: Soekris net5501 comBIOS ver. 1.33 20070103 Copyright (C) >>> 2000-2007 >>> glxsb0: mem >>> 0xa0000000-0xa0003fff irq 10 at device 1.2 on pci0 >>> vr0: port 0xe100-0xe1ff mem >>> 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0 >>> vr0: Quirks: 0x2 >>> vr0: Revision: 0x96 >>> miibus0: on vr0 >>> ukphy0: PHY 1 on miibus0 >>> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>> auto-flow >>> vr0: Ethernet address: 00:00:24:cb:a6:80 >>> vr1: port 0xe200-0xe2ff mem >>> 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0 >>> vr1: Quirks: 0x2 >>> vr1: Revision: 0x96 >>> miibus1: on vr1 >>> ukphy1: PHY 1 on miibus1 >>> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>> auto-flow >>> vr1: Ethernet address: 00:00:24:cb:a6:81 >>> vr2: port 0xe300-0xe3ff mem >>> 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0 >>> vr2: Quirks: 0x2 >>> vr2: Revision: 0x96 >>> miibus2: on vr2 >>> ukphy2: PHY 1 on miibus2 >>> ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>> auto-flow >>> vr2: Ethernet address: 00:00:24:cb:a6:82 >>> vr3: port 0xe400-0xe4ff mem >>> 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0 >>> vr3: Quirks: 0x2 >>> vr3: Revision: 0x96 >>> miibus3: on vr3 >>> ukphy3: PHY 1 on miibus3 >>> ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>> auto-flow >>> vr3: Ethernet address: 00:00:24:cb:a6:83 >>> ath0: mem 0xa0010000-0xa001ffff irq 10 at device 14.0 o= n >>> pci0 >>> ath0: DMA setup: legacy >>> ath0: [HT] enabling HT modes >>> ath0: [HT] RTS aggregates limited to 8 KiB >>> ath0: [HT] 2 RX streams; 2 TX streams >>> ath0: AR5416 mac 13.10 RF2133 phy 8.1 >>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00d0 >>> isab0: at device 20.0 on pci0 >>> isa0: on isab0 >>> atapci0: port >>> 0x1f0-0x1f7,0x3f6,0x170-0x177,**0x376,0xe000-0xe00f at device 20.2 on >>> pci0 >>> ata0: at channel 0 on atapci0 >>> ata1: at channel 1 on atapci0 >>> ohci0: mem 0xa0020000-0xa0020fff irq >>> 15 at device 21.0 on pci0 >>> usbus0 on ohci0 >>> ehci0: mem >>> 0xa0021000-0xa0021fff irq 15 at device 21.1 on pci0 >>> usbus1: EHCI version 1.0 >>> usbus1 on ehci0 >>> cpu0 on motherboard >>> orm0: at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0 >>> atrtc0: at port 0x70 irq 8 on isa0 >>> Event timer "RTC" frequency 32768 Hz quality 0 >>> attimer0: at port 0x40 on isa0 >>> Timecounter "i8254" frequency 1193182 Hz quality 0 >>> Event timer "i8254" frequency 1193182 Hz quality 100 >>> uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on >>> isa0 >>> uart0: console (19200,n,8,1) >>> uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 >>> Timecounters tick every 1.000 msec >>> usbus0: 12Mbps Full Speed USB v1.0 >>> usbus1: 480Mbps High Speed USB v2.0 >>> ugen0.1: at usbus0 >>> uhub0: on usbus0 >>> ugen1.1: at usbus1 >>> uhub1: on usbus1 >>> ad0: 152627MB at ata0-master UDMA100 >>> GEOM_SCHED: Initializing global data. >>> GEOM_SCHED: Loading: mp =3D 0xc0a9aa20, g_sched_class =3D 0xc0a9aa20. >>> Timecounter "TSC" frequency 499912531 Hz quality 800 >>> uhub0: 4 ports with 4 removable, self powered >>> Root mount waiting for: usbus1 >>> uhub1: 4 ports with 4 removable, self powered >>> ______________________________**_________________ >>> 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 Sat Sep 8 20:15:10 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0A3B8106564A; Sat, 8 Sep 2012 20:15:07 +0000 (UTC) (envelope-from alexander.kuehn@nagilum.de) Received: from mo6-p00-ob.rzone.de (mo6-p00-ob.rzone.de [IPv6:2a01:238:20a:202:5300::1]) by mx1.freebsd.org (Postfix) with ESMTP id 146FA8FC15; Sat, 8 Sep 2012 20:15:06 +0000 (UTC) X-RZG-AUTH: :O2kGeEG7b/pS1EO4THa/nJdkGexqY2koBVOK1IEPiZ6uSkEMG05qYmSsddWNogGEcA== X-RZG-CLASS-ID: mo00 Received: from cakebox.homeunix.net (164-010-186-093.dialin.vsenet.de [93.186.10.164]) by smtp.strato.de (josoe mo45) (RZmta 30.14 DYNA|AUTH) with (DHE-RSA-AES256-SHA encrypted) ESMTPA id 6001abo88Hlmq2 ; Sat, 8 Sep 2012 22:15:06 +0200 (CEST) Received: from cakebox.homeunix.net (localhost [127.0.0.1]) by cakebox.homeunix.net (Postfix) with ESMTP id C0D89686C7; Sat, 8 Sep 2012 22:14:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on cakebox.tis X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.4 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Received: by cakebox.homeunix.net (Postfix, from userid 80) id EFAC0686C5; Sat, 8 Sep 2012 22:14:42 +0200 (CEST) Received: from 10.1.2.12 ([10.1.2.12]) by cakebox.homeunix.net (Horde Framework) with HTTP; Sat, 08 Sep 2012 22:14:42 +0200 Date: Sat, 08 Sep 2012 22:14:42 +0200 Message-ID: <20120908221442.Horde.Ow2aJpk8pphQS6cySU1xHYA@cakebox.homeunix.net> From: Alexander =?iso-8859-1?b?S/xobg==?= To: Adrian Chadd References: <201209080950.q889o7I2040830@freefall.freebsd.org> <20120908212907.Horde.z-dkLpk8pphQS5yD649BHYA@cakebox.homeunix.net> In-Reply-To: User-Agent: Internet Messaging Program (IMP) H4 (5.0.23) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: kern/167491: [ath] TID != hardware queue TID in ath_tx_aggr_comp_aggr() 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, 08 Sep 2012 20:15:10 -0000 Ok, recompiling with options ATH_DEBUG options ATH_DIAGAPI Will take a while, after that I'll report.. Zitat von Adrian Chadd : > Hi, you need to add the ath debug and diagapi options. > > Adrian > On Sep 8, 2012 3:29 PM, "Alexander K=FChn" w= rote: > >> athsurvey: ath0: Ung?ltiges Argument >> >> ..which translates to invalid argument. >> >> $ ifconfig ath0 >> ath0: flags=3D8802 metric 0 mtu 2290 >> ether b0:48:7a:bc:cb:c3 >> nd6 options=3D21 >> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect >> ) >> status: no carrier >> >> Sorry. >> Alex. >> >> Zitat von Adrian Chadd : >> >> Hi, >>> >>> COmpile/run athsurvey; paste the results here. >>> >>> src/tools/tools/ath/athsurvey/ >>> >>> >>> >>> Adrian >>> >>> >>> On 8 September 2012 02:50, Alexander K=FChn >>> wrote: >>> >>>> The following reply was made to PR kern/167491; it has been noted by >>>> GNATS. >>>> >>>> From: Alexander =3D?iso-8859-1?b?S/xobg=3D=3D?=3D >>>> To: bug-followup@FreeBSD.org >>>> Cc: >>>> Subject: Re: kern/167491: [ath] TID !=3D hardware queue TID in >>>> ath_tx_aggr_comp_aggr() >>>> Date: Sat, 08 Sep 2012 11:42:47 +0200 >>>> >>>> I see the same on x86 along with: >>>> >>>> messages.4.bz2:Sep 2 17:04:29 cakebox kernel: ath0: stuck beacon; >>>> resetting (bmiss count 4) >>>> messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: stuck beacon; >>>> resetting (bmiss count 4) >>>> messages.4.bz2:Sep 2 17:04:33 cakebox kernel: ath0: ath_start: >>>> sc_inreset_cnt > 0; bailing >>>> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain= : >>>> node 0xc47ea000: bf=3D0xc350fcc0: addbaw=3D0, dobaw=3D0, seqno=3D0, r= etry=3D0 >>>> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain= : >>>> node 0xc47ea000: bf=3D0xc350fcc0: tid txq_depth=3D1 hwq_depth=3D0, ba= r_wait=3D0 >>>> messages.4.bz2:Sep 2 17:05:12 cakebox kernel: ath0: ath_tx_tid_drain= : >>>> node 0xc47ea000: tid 16: txq_depth=3D64, txq_aggr_depth=3D0, sched=3D= 0, >>>> paused=3D0, hwq_depth=3D0, incomp=3D0, baw_head=3D0, baw_tail=3D0 txa= _start=3D-1, >>>> ni_txseqs=3D7 >>>> messages.4.bz2:Sep 2 17:06:25 cakebox kernel: ath0: stuck beacon; >>>> resetting (bmiss count 4) >>>> >>>> Unfortunately this causes the transfer rates to drop and occasionally >>>> even makes it impossible to associate with the AP. >>>> >>>> dmesg: >>>> Copyright (c) 1992-2012 The FreeBSD Project. >>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1= 994 >>>> The Regents of the University of California. All rights >>>> reserved. >>>> FreeBSD is a registered trademark of The FreeBSD Foundation. >>>> FreeBSD 10.0-CURRENT #0: Wed Aug 29 13:01:13 CEST 2012 >>>> root@cakebox.tis:/usr/obj/**export/src/sys/net5501 i386 >>>> CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class >>>> CPU) >>>> Origin =3D "AuthenticAMD" Id =3D 0x5a2 Family =3D 5 Model =3D a= Stepping >>>> =3D 2 >>>> Features=3D0x88a93d>>> CLFLUSH,MMX> >>>> AMD Features=3D0xc0400000 >>>> real memory =3D 536870912 (512 MB) >>>> avail memory =3D 515837952 (491 MB) >>>> K6-family MTRR support enabled (2 registers) >>>> cryptosoft0: on motherboard >>>> pcib0 pcibus 0 on motherboard >>>> pci0: on pcib0 >>>> Geode LX: Soekris net5501 comBIOS ver. 1.33 20070103 Copyright (C) >>>> 2000-2007 >>>> glxsb0: mem >>>> 0xa0000000-0xa0003fff irq 10 at device 1.2 on pci0 >>>> vr0: port 0xe100-0xe1ff mem >>>> 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0 >>>> vr0: Quirks: 0x2 >>>> vr0: Revision: 0x96 >>>> miibus0: on vr0 >>>> ukphy0: PHY 1 on miibus0 >>>> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>>> auto-flow >>>> vr0: Ethernet address: 00:00:24:cb:a6:80 >>>> vr1: port 0xe200-0xe2ff mem >>>> 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0 >>>> vr1: Quirks: 0x2 >>>> vr1: Revision: 0x96 >>>> miibus1: on vr1 >>>> ukphy1: PHY 1 on miibus1 >>>> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>>> auto-flow >>>> vr1: Ethernet address: 00:00:24:cb:a6:81 >>>> vr2: port 0xe300-0xe3ff mem >>>> 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0 >>>> vr2: Quirks: 0x2 >>>> vr2: Revision: 0x96 >>>> miibus2: on vr2 >>>> ukphy2: PHY 1 on miibus2 >>>> ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>>> auto-flow >>>> vr2: Ethernet address: 00:00:24:cb:a6:82 >>>> vr3: port 0xe400-0xe4ff mem >>>> 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0 >>>> vr3: Quirks: 0x2 >>>> vr3: Revision: 0x96 >>>> miibus3: on vr3 >>>> ukphy3: PHY 1 on miibus3 >>>> ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, >>>> auto-flow >>>> vr3: Ethernet address: 00:00:24:cb:a6:83 >>>> ath0: mem 0xa0010000-0xa001ffff irq 10 at device 14.0 = on >>>> pci0 >>>> ath0: DMA setup: legacy >>>> ath0: [HT] enabling HT modes >>>> ath0: [HT] RTS aggregates limited to 8 KiB >>>> ath0: [HT] 2 RX streams; 2 TX streams >>>> ath0: AR5416 mac 13.10 RF2133 phy 8.1 >>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00d0 >>>> isab0: at device 20.0 on pci0 >>>> isa0: on isab0 >>>> atapci0: port >>>> 0x1f0-0x1f7,0x3f6,0x170-0x177,**0x376,0xe000-0xe00f at device 20.2 on >>>> pci0 >>>> ata0: at channel 0 on atapci0 >>>> ata1: at channel 1 on atapci0 >>>> ohci0: mem 0xa0020000-0xa0020fff irq >>>> 15 at device 21.0 on pci0 >>>> usbus0 on ohci0 >>>> ehci0: mem >>>> 0xa0021000-0xa0021fff irq 15 at device 21.1 on pci0 >>>> usbus1: EHCI version 1.0 >>>> usbus1 on ehci0 >>>> cpu0 on motherboard >>>> orm0: at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0 >>>> atrtc0: at port 0x70 irq 8 on isa0 >>>> Event timer "RTC" frequency 32768 Hz quality 0 >>>> attimer0: at port 0x40 on isa0 >>>> Timecounter "i8254" frequency 1193182 Hz quality 0 >>>> Event timer "i8254" frequency 1193182 Hz quality 100 >>>> uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on >>>> isa0 >>>> uart0: console (19200,n,8,1) >>>> uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 >>>> Timecounters tick every 1.000 msec >>>> usbus0: 12Mbps Full Speed USB v1.0 >>>> usbus1: 480Mbps High Speed USB v2.0 >>>> ugen0.1: at usbus0 >>>> uhub0: on usbus= 0 >>>> ugen1.1: at usbus1 >>>> uhub1: on usbus= 1 >>>> ad0: 152627MB at ata0-master UDMA100 >>>> GEOM_SCHED: Initializing global data. >>>> GEOM_SCHED: Loading: mp =3D 0xc0a9aa20, g_sched_class =3D 0xc0a9aa20. >>>> Timecounter "TSC" frequency 499912531 Hz quality 800 >>>> uhub0: 4 ports with 4 removable, self powered >>>> Root mount waiting for: usbus1 >>>> uhub1: 4 ports with 4 removable, self powered >>>> ______________________________**_________________ >>>> 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 " >>>> >>>