From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 11:07:21 2011 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95A661065673 for ; Mon, 21 Nov 2011 11:07:21 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7AF238FC14 for ; Mon, 21 Nov 2011 11:07:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pALB7LmQ053746 for ; Mon, 21 Nov 2011 11:07:21 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pALB7KPX053744 for freebsd-wireless@FreeBSD.org; Mon, 21 Nov 2011 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Nov 2011 11:07:20 GMT Message-Id: <201111211107.pALB7KPX053744@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, 21 Nov 2011 11:07:21 -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/162648 wireless [ath] AR9227 ADC DC calibration failure o kern/162647 wireless [ath] 11n TX aggregation session / TX hang o kern/162475 wireless [ath] functions with return type HAL_BOOL (might) retu 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/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/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o kern/143868 wireless [ath] [patch] [request] allow Atheros watchdog timeout o conf/143079 wireless hostapd(8) startup missing multi wlan functionality 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 55 problems total. From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 13:17:30 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 067041065673; Mon, 21 Nov 2011 13:17:30 +0000 (UTC) Date: Mon, 21 Nov 2011 13:17:30 +0000 From: Alexander Best To: freebsd-wireless@freebsd.org Message-ID: <20111121131730.GA3599@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 13:17:30 -0000 hi there, after the recent ath commits (r227740, r227651, ...) i'm experiencing issues with my ath0@pci0:5:1:0: class=0x020000 card=0x5a001385 chip=0x0013168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5212/AR5213 Wireless Network Adapter' class = network subclass = ethernet card on amd64. my system will either panic right during boot up or will actually boot, but then after a few minutes lock up my whole system. i'll try reverting my kernel to r227739 to check, if that fixes the issue. if it does, i'll try to gather some more stats to identify the issue more thoroughly. if it does not, i'll try reverting past the other recent ath commits (such as r227651). cheers. alex From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 13:27:52 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F103A106564A; Mon, 21 Nov 2011 13:27:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6155A8FC12; Mon, 21 Nov 2011 13:27:52 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so3812606vbb.13 for ; Mon, 21 Nov 2011 05:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mh5xIdx4y7EujlCkMOagooTpbuEEjKsytl4m3M1qHb4=; b=NGQadHyN9qKbstLZswXBItXEE7jU3oz7dDhSAUXLdrzqZsSWQslsjgaqJB4ltQ1LdW ik/xTtDmlV7bs/aqOn1xlMOZDP59VdupAvvsBl2cayIh5KswXQuB6/gXSwyS0I5csNgk qfVo2DwADRxLGTqkH39eV1p7XK1xvIj743cvE= MIME-Version: 1.0 Received: by 10.52.174.193 with SMTP id bu1mr15185315vdc.71.1321882071733; Mon, 21 Nov 2011 05:27:51 -0800 (PST) Received: by 10.52.29.198 with HTTP; Mon, 21 Nov 2011 05:27:51 -0800 (PST) In-Reply-To: <20111121131730.GA3599@freebsd.org> References: <20111121131730.GA3599@freebsd.org> Date: Mon, 21 Nov 2011 21:27:51 +0800 Message-ID: From: Adrian Chadd To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 13:27:53 -0000 Hi, Thanks. Please do this. Can you please provide me with some details about the panic-on-boot? Is the version of the ath driver code from stable/9 ok? Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 13:44:25 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id F2B741065670; Mon, 21 Nov 2011 13:44:25 +0000 (UTC) Date: Mon, 21 Nov 2011 13:44:25 +0000 From: Alexander Best To: Adrian Chadd Message-ID: <20111121134425.GA6047@freebsd.org> References: <20111121131730.GA3599@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 13:44:26 -0000 On Mon Nov 21 11, Adrian Chadd wrote: > Hi, > > Thanks. Please do this. Can you please provide me with some details > about the panic-on-boot? > > Is the version of the ath driver code from stable/9 ok? i'm running HEAD, so i can't test that code. reverting to r227739 didn't fix the issue, however i'm now running r227650 and so far i haven't experienced the panic, nor the lock up. it seems r227651 introduced the critical code that caused the issues. unfortunately i can only take a picture of the panic-on-boot, since the system locks up after the panic and no debugging is possible. also no crash dump is being performed. i'll send you the panic-picture in a private email (since the mailinglists will scrub the attachment anyway). cheers. alex > > > Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 13:47:34 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAEE3106564A; Mon, 21 Nov 2011 13:47:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 47C078FC08; Mon, 21 Nov 2011 13:47:33 +0000 (UTC) Received: by vcbfl10 with SMTP id fl10so2531587vcb.13 for ; Mon, 21 Nov 2011 05:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mQTZKSS7Kn6TBfK99/Y4mURsTVwMeEnrITOBOWVEigY=; b=dEEi8AXCOx0EgoNnW6e+lUwQ1Caha5QxqUx7W6eo/lj4jom0IzpCeB9HcFEsWQ5FcY y1r9gjqjQ14Tc6blUuHiLqT/E5Fv6jQk0XrXhSQsxi0dmr8SXLxPXxlCCCrxITQvUIgy 4QwyhW2qwpFVdgShdmzrCgjM/uPWUZMGKxNeQ= MIME-Version: 1.0 Received: by 10.220.117.73 with SMTP id p9mr1030782vcq.60.1321883253478; Mon, 21 Nov 2011 05:47:33 -0800 (PST) Received: by 10.52.29.198 with HTTP; Mon, 21 Nov 2011 05:47:33 -0800 (PST) In-Reply-To: <20111121134425.GA6047@freebsd.org> References: <20111121131730.GA3599@freebsd.org> <20111121134425.GA6047@freebsd.org> Date: Mon, 21 Nov 2011 21:47:33 +0800 Message-ID: From: Adrian Chadd To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 13:47:34 -0000 Ok, r227651 is the reset serialisation work. Please let me know if this is the culprit and I'll begin working with you to dissect exactly what is breaking for the AR5212. Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 15:16:13 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 014421065670; Mon, 21 Nov 2011 15:16:13 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id B63928FC1A; Mon, 21 Nov 2011 15:16:12 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pALEwf22030914; Mon, 21 Nov 2011 07:58:41 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pALEwfD8030911; Mon, 21 Nov 2011 07:58:41 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 21 Nov 2011 07:58:41 -0700 (MST) From: Warren Block To: Alexander Best In-Reply-To: <20111121131730.GA3599@freebsd.org> Message-ID: References: <20111121131730.GA3599@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 21 Nov 2011 07:58:41 -0700 (MST) Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 15:16:13 -0000 On Mon, 21 Nov 2011, Alexander Best wrote: > hi there, > > after the recent ath commits (r227740, r227651, ...) i'm experiencing issues > with my > > ath0@pci0:5:1:0: class=0x020000 card=0x5a001385 chip=0x0013168c rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR5212/AR5213 Wireless Network Adapter' > class = network > subclass = ethernet > > card on amd64. my system will either panic right during boot up or will > actually boot, but then after a few minutes lock up my whole system. > > i'll try reverting my kernel to r227739 to check, if that fixes the issue. > if it does, i'll try to gather some more stats to identify the issue more > thoroughly. if it does not, i'll try reverting past the other recent ath > commits (such as r227651). Also seen here with a AR5BXB63: ath0@pci0:1:0:0: class=0x028000 card=0x0087106b chip=0x0024168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5008 Wireless Network Adapter' class = network bar [10] = type Memory, range 64, base 0xfddf0000, size 65536, enabled Updated to latest -head a couple of days ago, it came up and worked fine in 11g mode for a few minutes, possibly until nontrivial network activity. Then locked up hard. Removing the card and using wired networking solved it, but I haven't gone back to narrow it down yet. From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 15:20:54 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id D43E51065670; Mon, 21 Nov 2011 15:20:54 +0000 (UTC) Date: Mon, 21 Nov 2011 15:20:54 +0000 From: Alexander Best To: Warren Block Message-ID: <20111121152054.GA22220@freebsd.org> References: <20111121131730.GA3599@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 15:20:54 -0000 On Mon Nov 21 11, Warren Block wrote: > On Mon, 21 Nov 2011, Alexander Best wrote: > > >hi there, > > > >after the recent ath commits (r227740, r227651, ...) i'm experiencing > >issues > >with my > > > >ath0@pci0:5:1:0: class=0x020000 card=0x5a001385 chip=0x0013168c > >rev=0x01 hdr=0x00 > > vendor = 'Atheros Communications Inc.' > > device = 'AR5212/AR5213 Wireless Network Adapter' > > class = network > > subclass = ethernet > > > >card on amd64. my system will either panic right during boot up or will > >actually boot, but then after a few minutes lock up my whole system. > > > >i'll try reverting my kernel to r227739 to check, if that fixes the issue. > >if it does, i'll try to gather some more stats to identify the issue more > >thoroughly. if it does not, i'll try reverting past the other recent ath > >commits (such as r227651). > > Also seen here with a AR5BXB63: > > ath0@pci0:1:0:0: class=0x028000 card=0x0087106b chip=0x0024168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR5008 Wireless Network Adapter' > class = network > bar [10] = type Memory, range 64, base 0xfddf0000, size 65536, enabled > > Updated to latest -head a couple of days ago, it came up and worked fine > in 11g mode for a few minutes, possibly until nontrivial network > activity. Then locked up hard. Removing the card and using wired > networking solved it, but I haven't gone back to narrow it down yet. i've experimented a bit with different kernels: r227651 - panics or locks up after a few minutes r227650 - everything ok ... so switching back to r227650 should solve the issue for you, too. cheers. alex > From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 20:10:29 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21BC9106566B; Mon, 21 Nov 2011 20:10:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id B99148FC0A; Mon, 21 Nov 2011 20:10:28 +0000 (UTC) Received: by vcbfl10 with SMTP id fl10so3158811vcb.13 for ; Mon, 21 Nov 2011 12:10:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=meJFDMsRA/qlzuLaToSk38Nizb8LW6W5n3SWGHpWO+Q=; b=fwaVZtzmH39SBSbe4Ie53djEF+JA6qcsOWJncy20s0Od9fCBkQZIAKJPnHNB8rz5OL gEo40+6xzzX7FNkUC+GsiuoD/qITxDD20ydoAuF/llT+eR0hmMK8xJlwLSKrNLJ7GDhJ R8fV2H6MpMtdFmQQEYfEoWEsS8HeegBoqqRio= MIME-Version: 1.0 Received: by 10.52.34.78 with SMTP id x14mr16735898vdi.122.1321906228062; Mon, 21 Nov 2011 12:10:28 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Mon, 21 Nov 2011 12:10:28 -0800 (PST) In-Reply-To: <20111121152054.GA22220@freebsd.org> References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> Date: Tue, 22 Nov 2011 04:10:28 +0800 X-Google-Sender-Auth: rreBYK-LhTMj256u0pbp9FYGyeA Message-ID: From: Adrian Chadd To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 20:10:29 -0000 Warren, can you please verify that reverting back to r227650 fixes it for you? Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 21:41:00 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A491E106566B; Mon, 21 Nov 2011 21:41:00 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 625F78FC1B; Mon, 21 Nov 2011 21:40:59 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pALLexLj033656; Mon, 21 Nov 2011 14:40:59 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pALLexK6033653; Mon, 21 Nov 2011 14:40:59 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 21 Nov 2011 14:40:59 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 21 Nov 2011 14:40:59 -0700 (MST) Cc: Alexander Best , freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 21:41:00 -0000 On Tue, 22 Nov 2011, Adrian Chadd wrote: > Warren, can you please verify that reverting back to r227650 fixes it for you? Just trying it now, for some reason this HP Pentium D system is dog-slow. Nothing to do with the wireless, though. Anyway, so far so good. It has already stayed up longer than it would before, and big network transfers haven't been a problem. Note that this is 11g, I haven't even attempted to look up the instructions to enable the 11n support yet. From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 21:47:32 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id D764D106566B; Mon, 21 Nov 2011 21:47:32 +0000 (UTC) Date: Mon, 21 Nov 2011 21:47:32 +0000 From: Alexander Best To: Warren Block Message-ID: <20111121214732.GA8566@freebsd.org> References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 21:47:32 -0000 On Mon Nov 21 11, Warren Block wrote: > On Tue, 22 Nov 2011, Adrian Chadd wrote: > > >Warren, can you please verify that reverting back to r227650 fixes it for > >you? > > Just trying it now, for some reason this HP Pentium D system is > dog-slow. Nothing to do with the wireless, though. > > Anyway, so far so good. It has already stayed up longer than it would > before, and big network transfers haven't been a problem. > > Note that this is 11g, I haven't even attempted to look up the > instructions to enable the 11n support yet. this is my 'ifconfig'-output btw: ath0: flags=8843 metric 0 mtu 2290 ether XX:XX:XX:XX:XX:XX media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated lo0: flags=8049 metric 0 mtu 16384 options=3 inet 127.0.0.1 netmask 0xff000000 wlan0: flags=8843 metric 0 mtu 1500 ether XX:XX:XX:XX:XX:XX inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255 inet 192.168.1.20 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g status: associated ssid XXXXXXXXX channel 6 (2437 MHz 11g) bssid XX:XX:XX:XX:XX:XX regdomain ETSI country DE ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL ... my card doesn't support 11n. cheers. alex From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 21:47:47 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F71E1065670; Mon, 21 Nov 2011 21:47:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id ADE7C8FC14; Mon, 21 Nov 2011 21:47:46 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so4616507vbb.13 for ; Mon, 21 Nov 2011 13:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Spx9npsiC8jCinIFNr/Qg4VAkF3tFGPdaOnosZ5hlr8=; b=WnmqjzedLq9VDpL9lHHjmRFXXN35u/KgR8ST+IsN9aIX0kpNLNwJ0GmeEFJ0btMB99 2WUeDY+6i50j5epdywr+0WFAP5I6WH8mjFabZPMf058E48yzF+1RKqYxoqoxwWNDeJzq IoEUZeB8whQHOtHBYlBHlb/Fc3JKYW/qP+oyo= MIME-Version: 1.0 Received: by 10.52.72.104 with SMTP id c8mr17090536vdv.105.1321912065765; Mon, 21 Nov 2011 13:47:45 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Mon, 21 Nov 2011 13:47:45 -0800 (PST) In-Reply-To: References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> Date: Tue, 22 Nov 2011 05:47:45 +0800 X-Google-Sender-Auth: gVH9CB3IXBGghB_rtqojh2ufRfU Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: Alexander Best , freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 21:47:47 -0000 Hi, Please try this patch: commit 3993972ed7407867dce188903f68a0751c487fbb Author: Adrian Chadd Date: Tue Nov 22 05:28:16 2011 +0800 Sleep on the correct lock. diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 83c5ede..84cb91b 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -1878,9 +1878,9 @@ ath_txrx_stop(struct ath_softc *sc) */ while (sc->sc_rxproc_cnt || sc->sc_txproc_cnt || sc->sc_txstart_cnt || sc->sc_intr_cnt) { - if (i <= 0) + if (i <= 0) break; - msleep(sc, &sc->sc_mtx, 0, "ath_txrx_stop", 1); + msleep(sc, &sc->sc_pcu_mtx, 0, "ath_txrx_stop", 1); i--; } ATH_PCU_UNLOCK(sc); From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 21:56:16 2011 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A95BC1065673; Mon, 21 Nov 2011 21:56:16 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 012468FC13; Mon, 21 Nov 2011 21:56:08 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pALLu8m0033779; Mon, 21 Nov 2011 14:56:08 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pALLu8Ku033776; Mon, 21 Nov 2011 14:56:08 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 21 Nov 2011 14:56:08 -0700 (MST) From: Warren Block To: Alexander Best In-Reply-To: <20111121214732.GA8566@freebsd.org> Message-ID: References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> <20111121214732.GA8566@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 21 Nov 2011 14:56:08 -0700 (MST) Cc: Adrian Chadd , freebsd-wireless@FreeBSD.ORG Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 21:56:16 -0000 On Mon, 21 Nov 2011, Alexander Best wrote: > this is my 'ifconfig'-output btw: > > ath0: flags=8843 metric 0 mtu 2290 > ether XX:XX:XX:XX:XX:XX > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > lo0: flags=8049 metric 0 mtu 16384 > options=3 > inet 127.0.0.1 netmask 0xff000000 > wlan0: flags=8843 metric 0 mtu 1500 > ether XX:XX:XX:XX:XX:XX > inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255 > inet 192.168.1.20 netmask 0xffffff00 broadcast 192.168.1.255 > media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g > status: associated > ssid XXXXXXXXX channel 6 (2437 MHz 11g) bssid XX:XX:XX:XX:XX:XX > regdomain ETSI country DE ecm authmode WPA2/802.11i privacy ON > deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 30 bmiss 7 > scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 > roam:rate 5 protmode CTS wme burst roaming MANUAL > > ... my card doesn't support 11n. Here's mine. ath0: flags=8843 metric 0 mtu 2290 ether -- nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843 metric 0 mtu 1500 ether -- inet 192.168.1.102 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29 media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g status: associated ssid notreally channel 6 (2437 MHz 11g) bssid -- regdomain 100 indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 21:57:49 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B149A106566C; Mon, 21 Nov 2011 21:57:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 548758FC0A; Mon, 21 Nov 2011 21:57:49 +0000 (UTC) Received: by vcbfl10 with SMTP id fl10so3309603vcb.13 for ; Mon, 21 Nov 2011 13:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6DAMj0gWvIS1rR+3NVVgPeigVcCJ64Hm3EWXwdttP1U=; b=YUmNBdkBl0NM3CqgjW6yleF6sNUtTsRKF0djXE5w+6iomqEdZhKJr9g+qqtybHiPjv b0MzB1++iIiVoUBYN5PC+FogkRqn/wKdWcSgnrsoFLTo4/7Z4QoW+MDLZffXJiJ79Y3J 5uuUOkO8ELen6VOCD+KzUpCFKYdwOiFCN9DrE= MIME-Version: 1.0 Received: by 10.220.199.135 with SMTP id es7mr1141112vcb.95.1321912668494; Mon, 21 Nov 2011 13:57:48 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Mon, 21 Nov 2011 13:57:48 -0800 (PST) In-Reply-To: References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> <20111121214732.GA8566@freebsd.org> Date: Tue, 22 Nov 2011 05:57:48 +0800 X-Google-Sender-Auth: Ib_2VBncmkFrRv7oPKMcPYLsy18 Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: Alexander Best , freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 21:57:49 -0000 There's nothing especially special in either of those. I think it's likely the wrong lock in msleep() that I've just posted a patch for to the mailing list. Please test that out and let me know how it goes. (Ok, ok, I'll acquire another eeepc just to use with legacy non-11n nics..) adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 22:02:12 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 820B71065673; Mon, 21 Nov 2011 22:02:12 +0000 (UTC) Date: Mon, 21 Nov 2011 22:02:12 +0000 From: Alexander Best To: Adrian Chadd Message-ID: <20111121220212.GA9879@freebsd.org> References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 22:02:12 -0000 On Tue Nov 22 11, Adrian Chadd wrote: > Hi, > > Please try this patch: thanks for the patch. i'll try it out right away. > > > commit 3993972ed7407867dce188903f68a0751c487fbb > Author: Adrian Chadd > Date: Tue Nov 22 05:28:16 2011 +0800 > > Sleep on the correct lock. > > diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c > index 83c5ede..84cb91b 100644 > --- a/sys/dev/ath/if_ath.c > +++ b/sys/dev/ath/if_ath.c > @@ -1878,9 +1878,9 @@ ath_txrx_stop(struct ath_softc *sc) > */ > while (sc->sc_rxproc_cnt || sc->sc_txproc_cnt || > sc->sc_txstart_cnt || sc->sc_intr_cnt) { > - if (i <= 0) > + if (i <= 0) what does this change do? ;) > break; > - msleep(sc, &sc->sc_mtx, 0, "ath_txrx_stop", 1); > + msleep(sc, &sc->sc_pcu_mtx, 0, "ath_txrx_stop", 1); > i--; > } > ATH_PCU_UNLOCK(sc); cheers. alex From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 22:12:24 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 9CBB0106566C; Mon, 21 Nov 2011 22:12:24 +0000 (UTC) Date: Mon, 21 Nov 2011 22:12:24 +0000 From: Alexander Best To: Adrian Chadd Message-ID: <20111121221224.GA11508@freebsd.org> References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 22:12:24 -0000 On Tue Nov 22 11, Adrian Chadd wrote: > Hi, > > Please try this patch: looking very promising so far. haven't got the boot-up-panic. i'll let my system run for a few hours, to see, if the lock up has also been resolved. cheers. alex > > > commit 3993972ed7407867dce188903f68a0751c487fbb > Author: Adrian Chadd > Date: Tue Nov 22 05:28:16 2011 +0800 > > Sleep on the correct lock. > > diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c > index 83c5ede..84cb91b 100644 > --- a/sys/dev/ath/if_ath.c > +++ b/sys/dev/ath/if_ath.c > @@ -1878,9 +1878,9 @@ ath_txrx_stop(struct ath_softc *sc) > */ > while (sc->sc_rxproc_cnt || sc->sc_txproc_cnt || > sc->sc_txstart_cnt || sc->sc_intr_cnt) { > - if (i <= 0) > + if (i <= 0) > break; > - msleep(sc, &sc->sc_mtx, 0, "ath_txrx_stop", 1); > + msleep(sc, &sc->sc_pcu_mtx, 0, "ath_txrx_stop", 1); > i--; > } > ATH_PCU_UNLOCK(sc); From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 22:36:04 2011 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B5491065670; Mon, 21 Nov 2011 22:36:04 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 4724D8FC1B; Mon, 21 Nov 2011 22:36:04 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pALMa3Mn034039; Mon, 21 Nov 2011 15:36:03 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pALMa3tj034036; Mon, 21 Nov 2011 15:36:03 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 21 Nov 2011 15:36:03 -0700 (MST) From: Warren Block To: Alexander Best In-Reply-To: <20111121220212.GA9879@freebsd.org> Message-ID: References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> <20111121220212.GA9879@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 21 Nov 2011 15:36:03 -0700 (MST) Cc: Adrian Chadd , freebsd-wireless@FreeBSD.ORG Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 22:36:04 -0000 On Mon, 21 Nov 2011, Alexander Best wrote: > On Tue Nov 22 11, Adrian Chadd wrote: >> Hi, >> >> Please try this patch: > > thanks for the patch. i'll try it out right away. My testing will be delayed a bit by a failing hard drive, but I'll try it as soon as possible. From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 22:53:43 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 5AA131065672; Mon, 21 Nov 2011 22:53:43 +0000 (UTC) Date: Mon, 21 Nov 2011 22:53:43 +0000 From: Alexander Best To: Adrian Chadd Message-ID: <20111121225343.GA19155@freebsd.org> References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> <20111121221224.GA11508@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111121221224.GA11508@freebsd.org> Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 22:53:43 -0000 On Mon Nov 21 11, Alexander Best wrote: > On Tue Nov 22 11, Adrian Chadd wrote: > > Hi, > > > > Please try this patch: > > looking very promising so far. haven't got the boot-up-panic. i'll let my > system run for a few hours, to see, if the lock up has also been resolved. ok. after > 45 minutes uptime i can confirm that the patch fixes the issues i experienced beforehand. unless i didn't get a boot-up-panic, my system locked up after < 5 minutes. however using your patch i noticed the following console output: ath0: ath_start: sc_inreset_cnt > 0; bailing ... only once, however. i don't believe i've seen this one ever beforehand. cheers. alex > > cheers. > alex > > > > > > > commit 3993972ed7407867dce188903f68a0751c487fbb > > Author: Adrian Chadd > > Date: Tue Nov 22 05:28:16 2011 +0800 > > > > Sleep on the correct lock. > > > > diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c > > index 83c5ede..84cb91b 100644 > > --- a/sys/dev/ath/if_ath.c > > +++ b/sys/dev/ath/if_ath.c > > @@ -1878,9 +1878,9 @@ ath_txrx_stop(struct ath_softc *sc) > > */ > > while (sc->sc_rxproc_cnt || sc->sc_txproc_cnt || > > sc->sc_txstart_cnt || sc->sc_intr_cnt) { > > - if (i <= 0) > > + if (i <= 0) > > break; > > - msleep(sc, &sc->sc_mtx, 0, "ath_txrx_stop", 1); > > + msleep(sc, &sc->sc_pcu_mtx, 0, "ath_txrx_stop", 1); > > i--; > > } > > ATH_PCU_UNLOCK(sc); From owner-freebsd-wireless@FreeBSD.ORG Mon Nov 21 22:56:12 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00AF6106564A; Mon, 21 Nov 2011 22:56:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 95DBF8FC15; Mon, 21 Nov 2011 22:56:11 +0000 (UTC) Received: by vcbfl10 with SMTP id fl10so3383165vcb.13 for ; Mon, 21 Nov 2011 14:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=3ZQDP7gRlOaZBG2vQ4HnHft9pSrszTuuyZmE5ZDEjbo=; b=Ew7Uk9/SV5oRV0P/Xak3HFFTJ3g3tbas8iyFFGeonY1YRLLoB3c0hkF7IcZRE82FtH WGyS/plDAs6Rsa4AuMCa9gl6+NxfWxx85R1Icz2eBygQIgyNPft7s9AQAOoIMOs55pV8 RajxbMbVDUT7Nv8pyCCfZU1LSUcIxbmVCuI50= MIME-Version: 1.0 Received: by 10.52.34.78 with SMTP id x14mr17271721vdi.122.1321916170433; Mon, 21 Nov 2011 14:56:10 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Mon, 21 Nov 2011 14:56:10 -0800 (PST) In-Reply-To: <20111121225343.GA19155@freebsd.org> References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> <20111121221224.GA11508@freebsd.org> <20111121225343.GA19155@freebsd.org> Date: Tue, 22 Nov 2011 06:56:10 +0800 X-Google-Sender-Auth: MdlJ46Z_RwiBFqwbRgkEPRlKwh4 Message-ID: From: Adrian Chadd To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 21 Nov 2011 22:56:12 -0000 On 22 November 2011 06:53, Alexander Best wrote: > ok. after > 45 minutes uptime i can confirm that the patch fixes the issues i > experienced beforehand. unless i didn't get a boot-up-panic, my system locked > up after < 5 minutes. Sweet, I'll commit that to -HEAD now. > however using your patch i noticed the following console output: > > ath0: ath_start: sc_inreset_cnt > 0; bailing > > ... only once, however. i don't believe i've seen this one ever beforehand. That's intentional. That means that a frame was queued for TX whilst the hardware was busy being reset. It may be because I'm now processing the frames on an interface reset, rather than just deleting them. But on SMP machines it's quite plausible that a reset on one thread would run in parallel with if_start on another thread, causing these to interfere. My eventual aim is to have TX/RX properly suspended before a reset occurs, so these messages will go away (and their appearance will only be when there's a real problem.) But that's going to take time. Thanks for getting back to me about this issue! Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Nov 22 02:28:05 2011 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 450D81065673; Tue, 22 Nov 2011 02:28:05 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id F14C68FC12; Tue, 22 Nov 2011 02:28:04 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAM2S4vC052640; Mon, 21 Nov 2011 19:28:04 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAM2S49w052637; Mon, 21 Nov 2011 19:28:04 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 21 Nov 2011 19:28:04 -0700 (MST) From: Warren Block To: Alexander Best In-Reply-To: <20111121225343.GA19155@freebsd.org> Message-ID: References: <20111121131730.GA3599@freebsd.org> <20111121152054.GA22220@freebsd.org> <20111121221224.GA11508@freebsd.org> <20111121225343.GA19155@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 21 Nov 2011 19:28:04 -0700 (MST) Cc: Adrian Chadd , freebsd-wireless@FreeBSD.ORG Subject: Re: issues with the recent ath commits (r227740, r227651, ...) 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, 22 Nov 2011 02:28:05 -0000 On Mon, 21 Nov 2011, Alexander Best wrote: > On Mon Nov 21 11, Alexander Best wrote: >> On Tue Nov 22 11, Adrian Chadd wrote: >>> Hi, >>> >>> Please try this patch: >> >> looking very promising so far. haven't got the boot-up-panic. i'll let my >> system run for a few hours, to see, if the lock up has also been resolved. > > ok. after > 45 minutes uptime i can confirm that the patch fixes the issues i > experienced beforehand. unless i didn't get a boot-up-panic, my system locked > up after < 5 minutes. Likewise here, the patch works fine. From owner-freebsd-wireless@FreeBSD.ORG Tue Nov 22 17:27:52 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13AAC106566B for ; Tue, 22 Nov 2011 17:27:52 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id CC5158FC0A for ; Tue, 22 Nov 2011 17:27:51 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAMHRpZG056805 for ; Tue, 22 Nov 2011 10:27:51 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAMHRpsP056802 for ; Tue, 22 Nov 2011 10:27:51 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 22 Nov 2011 10:27:51 -0700 (MST) From: Warren Block To: wireless@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 22 Nov 2011 10:27:51 -0700 (MST) Cc: Subject: Testing 802.11n 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, 22 Nov 2011 17:27:52 -0000 -CURRENT plus yesterday's patch. The kernel config is just include GENERIC nocpu I486_CPU ident TEST11N option ATH_ENABLE_11N ifconfig wlan0 shows wlan0: flags=8843 metric 0 mtu 1500 ether -- inet 192.168.1.102 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29 media: IEEE 802.11 Wireless Ethernet MCS mode 11ng status: associated ssid -- channel 6 (2437 MHz 11g ht/20) bssid -- regdomain 100 indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS -ampdutx ampdurx ampdulimit 32k ampdudensity 8 shortgi wme burst roaming MANUAL Should this work? # ifconfig wlan0 mode 11n ifconfig: SIOCSIFMEDIA (media): Device not configured From owner-freebsd-wireless@FreeBSD.ORG Tue Nov 22 23:23:16 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B27A1065670 for ; Tue, 22 Nov 2011 23:23:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id F19108FC14 for ; Tue, 22 Nov 2011 23:23:15 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so1165330vbb.13 for ; Tue, 22 Nov 2011 15:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+R5FUTzJQwi2A42EO2M4fPh1X+0pgYBQbJzUkP5jh3Y=; b=B4yXK/73brvVfUShN+CUd/n0fYUbW+pbLG6WylxGuBMOb8dh9V+n4jOQDJGs5gfxVB bic1rgyFj7SVfPaFujfhMdQbVvAmNQ31dblCOMay+SaXSJ7L76qPm3J+pXXwVK63Yskf ElJ9gXvBLBctrWDBJd9vls7Fd1y1NlGTe6EEw= MIME-Version: 1.0 Received: by 10.52.34.78 with SMTP id x14mr22244218vdi.122.1322002861680; Tue, 22 Nov 2011 15:01:01 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Tue, 22 Nov 2011 15:01:01 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Nov 2011 07:01:01 +0800 X-Google-Sender-Auth: cPCgoWOOCpWCzbJCF0pb6gpuBfw Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: wireless@freebsd.org Subject: Re: Testing 802.11n 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, 22 Nov 2011 23:23:16 -0000 You don't need to do "ifconfig x 11n". ssid -- channel 6 (2437 MHz 11g ht/20) bssid -- .. see? It's associated at HT/20. So It's doing 11n. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 02:13:34 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0307F1065670; Wed, 23 Nov 2011 02:13:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 9EB978FC13; Wed, 23 Nov 2011 02:13:33 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAN2DWsY059297; Tue, 22 Nov 2011 19:13:32 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAN2DWQB059294; Tue, 22 Nov 2011 19:13:32 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 22 Nov 2011 19:13:32 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 22 Nov 2011 19:13:32 -0700 (MST) Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 02:13:34 -0000 On Wed, 23 Nov 2011, Adrian Chadd wrote: > You don't need to do "ifconfig x 11n". > > ssid -- channel 6 (2437 MHz 11g ht/20) bssid -- > > .. see? It's associated at HT/20. So It's doing 11n. Oh, I thought it would show a literal 11n instead of 11g. It has been running fine in that mode most of the day. From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 02:50:58 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BB5C106564A for ; Wed, 23 Nov 2011 02:50:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id C361A8FC15 for ; Wed, 23 Nov 2011 02:50:57 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so1318725vbb.13 for ; Tue, 22 Nov 2011 18:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6LDXiIO7eqmHIaUhWBI9qccuIyrwyrYjmuhKAZmAoRI=; b=BKQ0s6bIRF2z/EIJgUCF0wQyzSWPud71MaeXh7U8i9QSN+zW71gb10CKsezFR5g6Zw 6GbN8HP3STGZPoKakoXbmP48iZNvpGznr56MZ93DDsN3+KyWdgV1DXx00FYhl9/XBUJ9 MYfsusrPYFo0AUatMjyDJxBUIIXm+zosNc9TU= MIME-Version: 1.0 Received: by 10.52.92.84 with SMTP id ck20mr23028134vdb.88.1322016656767; Tue, 22 Nov 2011 18:50:56 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Tue, 22 Nov 2011 18:50:56 -0800 (PST) Received: by 10.52.29.198 with HTTP; Tue, 22 Nov 2011 18:50:56 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Nov 2011 10:50:56 +0800 X-Google-Sender-Auth: ffNK5iV4Z9ldGM0ZL21nGHFoT4k Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 02:50:58 -0000 You can use athstats to see if it is tx and rxing aggregate frames. Then you will know it is fully working! Adrian On 23/11/2011 10:13 AM, "Warren Block" wrote: > On Wed, 23 Nov 2011, Adrian Chadd wrote: > > You don't need to do "ifconfig x 11n". >> >> ssid -- channel 6 (2437 MHz 11g ht/20) bssid -- >> >> .. see? It's associated at HT/20. So It's doing 11n. >> > > Oh, I thought it would show a literal 11n instead of 11g. It has been > running fine in that mode most of the day. > From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 04:55:45 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7245106566C; Wed, 23 Nov 2011 04:55:45 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 6F4028FC1B; Wed, 23 Nov 2011 04:55:44 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAN4thLj059925; Tue, 22 Nov 2011 21:55:43 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAN4thew059922; Tue, 22 Nov 2011 21:55:43 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 22 Nov 2011 21:55:43 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-902635197-1973923940-1322024143=:59676" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 22 Nov 2011 21:55:43 -0700 (MST) Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 04:55:45 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---902635197-1973923940-1322024143=:59676 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII On Wed, 23 Nov 2011, Adrian Chadd wrote: > > You can use athstats to see if it is tx and rxing aggregate frames. Then you will know it is fully working! Err... yeah. Well, I did give it a shot, but don't know enough to interpret the results. Oh, and the next time you're near there, the usage line shows a "-a" option that doesn't really exist. Patch attached. ---902635197-1973923940-1322024143=:59676 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch-main.c.diff Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=patch-main.c.diff LS0tIG1haW4uYy5vcmlnCTIwMTEtMTEtMjIgMjE6MzM6MDEuMDAwMDAwMDAw IC0wNzAwDQorKysgbWFpbi5jCTIwMTEtMTEtMjIgMjE6MzM6MjYuMDAwMDAw MDAwIC0wNzAwDQpAQCAtMTE0LDcgKzExNCw3IEBADQogCQkJd2YtPnplcm9z dGF0cyh3Zik7DQogCQkJYnJlYWs7DQogCQlkZWZhdWx0Og0KLQkJCWVycngo LTEsICJ1c2FnZTogJXMgWy1hXSBbLWkgaWZuYW1lXSBbLWxdIFstbyBmbXRd IFstel0gW2ludGVydmFsXVxuIiwgYXJndlswXSk7DQorCQkJZXJyeCgtMSwg InVzYWdlOiAlcyBbLWkgaWZuYW1lXSBbLWxdIFstbyBmbXRdIFstel0gW2lu dGVydmFsXVxuIiwgYXJndlswXSk7DQogCQkJLypOT1RSRUFDSEVEKi8NCiAJ CX0NCiAJfQ0K ---902635197-1973923940-1322024143=:59676-- From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 04:58:50 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A10D9106566B for ; Wed, 23 Nov 2011 04:58:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 55A988FC17 for ; Wed, 23 Nov 2011 04:58:50 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so1401531vbb.13 for ; Tue, 22 Nov 2011 20:58:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=do10GxjA2OcSVh1FUxjxn03dhvJiWi6bBbhuiEVKhQA=; b=Uu9dybP2IQiNfPtuoO6YYu6BK4bJ3ShnJWM/LUevRDZ9hA0ozn+bdafgipegYlHj9L sVGND+lngv98HWMdmJFmYpYrhRAPTRmhjQXtC3pApmkLIbj2rXYeIeZF/fvNNmMHvXz3 mYbB6gMDZz3QEH1aUdb/wBKu4qwsL0SifTSsY= MIME-Version: 1.0 Received: by 10.52.72.104 with SMTP id c8mr23324693vdv.105.1322024329561; Tue, 22 Nov 2011 20:58:49 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Tue, 22 Nov 2011 20:58:49 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Nov 2011 12:58:49 +0800 X-Google-Sender-Auth: 83VoicjHNCA7QqoS3wjhgl5keQ8 Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 04:58:50 -0000 On 23 November 2011 12:55, Warren Block wrote: >> You can use athstats to see if it is tx and rxing aggregate frames. Then >> you will know it is fully working! > > Err... yeah. =A0Well, I did give it a shot, but don't know enough to inte= rpret > the results. I just noticed that it's not included in the athstats API. You can use the sysctl debugging call: sysctl dev.ath.0.txagg=3D1 If you see the aggregate frame counters go up, it's working. I'm just updating the athstats program and ath driver to log TX aggregate statistics. Give me about 10 minutes and then do an update. > Oh, and the next time you're near there, the usage line shows a "-a" opti= on > that doesn't really exist. =A0Patch attached. Ok. I'll go and investigate what that option once did and see if I can dig up the code. Thanks! adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 05:02:28 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 262511065673 for ; Wed, 23 Nov 2011 05:02:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id D61CB8FC15 for ; Wed, 23 Nov 2011 05:02:27 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so1403932vbb.13 for ; Tue, 22 Nov 2011 21:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ROhS25Qqzpb7U9FHsVhWVJrcGmDRTLk0/z9BnPOVPNk=; b=Hatp4QRp0WlMDWb61WFJpF/rYahQC6riSz3IXdg6MKN4DK4yiEfji7DCnrUfj4/0tI C5+pT8XV5eysYcKYSB1flOJVWX1BNt8fV+0T0SX/Iimni8sQJIsEQ7lvlustAOb1/sOX 6L44GU/ADiPfq7H56Ys8qfc7BKuLOY4yJBtl0= MIME-Version: 1.0 Received: by 10.52.174.193 with SMTP id bu1mr23282460vdc.71.1322024547334; Tue, 22 Nov 2011 21:02:27 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Tue, 22 Nov 2011 21:02:27 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Nov 2011 13:02:27 +0800 X-Google-Sender-Auth: zdFcnmqYtpwxWUtIzvOuQi4Jp0I Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 05:02:28 -0000 .. there, just svn update and rebuild the kernel + athstats. The statistics in question: ./athstats -l | grep A-MPDU .. ... rxagg txaggrok txaggrfail txaggrfailall ... they should show up in the normal athstats output as "A-MPDU sub-frames received" and "A-MPDU sub-frame TX attempt success/fail". adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 05:25:43 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FF8A106566B; Wed, 23 Nov 2011 05:25:43 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 0A68B8FC0A; Wed, 23 Nov 2011 05:25:42 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAN5Pe50060069; Tue, 22 Nov 2011 22:25:40 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAN5PdIT060066; Tue, 22 Nov 2011 22:25:40 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 22 Nov 2011 22:25:39 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-902635197-1700869725-1322025940=:59676" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 22 Nov 2011 22:25:40 -0700 (MST) Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 05:25:43 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---902635197-1700869725-1322025940=:59676 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 23 Nov 2011, Adrian Chadd wrote: > On 23 November 2011 12:55, Warren Block wrote: > >>> You can use athstats to see if it is tx and rxing aggregate frames. Then >>> you will know it is fully working! >> >> Err... yeah.  Well, I did give it a shot, but don't know enough to interpret >> the results. > > I just noticed that it's not included in the athstats API. You can use > the sysctl debugging call: > > sysctl dev.ath.0.txagg=1 > > If you see the aggregate frame counters go up, it's working. > > I'm just updating the athstats program and ath driver to log TX > aggregate statistics. > Give me about 10 minutes and then do an update. > >> Oh, and the next time you're near there, the usage line shows a "-a" option >> that doesn't really exist.  Patch attached. > > Ok. I'll go and investigate what that option once did and see if I can > dig up the code. -b might have problems, too. Hard to tell; is there a man page or doc file somewhere? I found an online man page, but it's for a much, much earlier version with only the -i option. ---902635197-1700869725-1322025940=:59676-- From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 05:29:03 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2A3A106566C for ; Wed, 23 Nov 2011 05:29:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id A6FE48FC12 for ; Wed, 23 Nov 2011 05:29:03 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so1418957vbb.13 for ; Tue, 22 Nov 2011 21:29:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Xlp3KKuyOZcjGRDXP0I11dSCGIj5hb9lcvRjNzz86Ag=; b=uScauhhpSmZhd/STN58zRlHsy3LxtaDRB80TL/1ssfYZMyaF9WsY6DWHdgK8b9/tzY PQQJeE9lFRd68pN2bqPQIwPAnbF0ol1YLqiPGLx5vCoXn5Y9VnGAqAyjLe4N4toGP5D+ Z4z17hc+sotX9hC97Mv3wZjQ9anio7Y5kKpUo= MIME-Version: 1.0 Received: by 10.52.72.104 with SMTP id c8mr23409043vdv.105.1322026142850; Tue, 22 Nov 2011 21:29:02 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Tue, 22 Nov 2011 21:29:02 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Nov 2011 13:29:02 +0800 X-Google-Sender-Auth: -FcA48zGENedZVB2LTEbD6TjZb4 Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 05:29:04 -0000 there's no obvious docs. I may have to write one. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 05:30:03 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7B181065670 for ; Wed, 23 Nov 2011 05:30:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 73B8F8FC15 for ; Wed, 23 Nov 2011 05:30:03 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so1419571vbb.13 for ; Tue, 22 Nov 2011 21:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=oXssOCJEGWbNxb3FooWCAhT5yjx5i52TLigMpnO4YpI=; b=WvqurTl06zzACgk0ZECeFYU3CPGx2MnZv1ewI41vtws5yyiuDrQzngbkJ1f6njhGti qUUN+NTvRS+7t3p+9HLo7gvwCYF1Bw72f3mXSq2ucCF4I6vhOPwEBEOjTJLgeAuQ6zNg aN7fPealeVmZ/LJfxK3posAeerE4SJwMqzRno= MIME-Version: 1.0 Received: by 10.52.34.78 with SMTP id x14mr23390676vdi.122.1322026202974; Tue, 22 Nov 2011 21:30:02 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Tue, 22 Nov 2011 21:30:02 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Nov 2011 13:30:02 +0800 X-Google-Sender-Auth: FM3hzhYcq5dhfAvZzzilR62-Rjs Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 05:30:03 -0000 Just let it run for a few minutes, do a couple bulk scp's or something, then copy/paste the output of athstats -i ath0 Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 16:10:31 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 334AD106566C; Wed, 23 Nov 2011 16:10:31 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id E15BD8FC08; Wed, 23 Nov 2011 16:10:30 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pANGAUoP063226; Wed, 23 Nov 2011 09:10:30 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pANGATh1063223; Wed, 23 Nov 2011 09:10:30 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 23 Nov 2011 09:10:29 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 23 Nov 2011 09:10:30 -0700 (MST) Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 16:10:31 -0000 On Wed, 23 Nov 2011, Adrian Chadd wrote: > Just let it run for a few minutes, do a couple bulk scp's or > something, then copy/paste the output of athstats -i ath0 # athstats -i ath0 athstats: ath0: Invalid argument athstats: ath0: Invalid argument 37023 data frames received 6848 data frames transmit 63 tx frames with an alternate rate 958 long on-chip tx retries 12 tx failed 'cuz too many retries MCS12 current transmit rate 6910 rx failed 'cuz of bad CRC 561 rx failed 'cuz of PHY err 1 illegal service 9 OFDM restart 551 CCK restart 69 periodic calibrations -0/+0 TDMA slot adjust (usecs, smoothed) 42 rssi of last ack 39 avg recv rssi -96 rx noise floor 351 tx frames through raw api 10600 A-MPDU sub-frames received 6 CRC errors for non-last A-MPDU subframes 538 CRC errors for last subframe in an A-MPDU 12 Number of frames retransmitted in software 635 A-MPDU sub-frame TX attempt success 1 A-MPDU sub-frame TX attempt failures Antenna profile: [0] tx 6406 rx 10897 [1] tx 0 rx 26126 From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 22:39:54 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86E401065680; Wed, 23 Nov 2011 22:39:54 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 3FB968FC13; Wed, 23 Nov 2011 22:39:54 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pANMdrb6064815; Wed, 23 Nov 2011 15:39:53 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pANMdrN6064812; Wed, 23 Nov 2011 15:39:53 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 23 Nov 2011 15:39:53 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 23 Nov 2011 15:39:53 -0700 (MST) Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 22:39:54 -0000 Statistics after it's been up for a while. From a user perspective, no problems with the wireless at all. # athstats -i ath0 athstats: ath0: Invalid argument athstats: ath0: Invalid argument 306962 data frames received 22872 data frames transmit 152 tx frames with an alternate rate 5919 long on-chip tx retries 51 tx failed 'cuz too many retries 2064 mib overflow interrupts MCS9 current transmit rate 81803 rx failed 'cuz of bad CRC 5576 rx failed 'cuz of PHY err 11 illegal service 30 OFDM restart 5535 CCK restart 843 periodic calibrations -0/+0 TDMA slot adjust (usecs, smoothed) 43 rssi of last ack 35 avg recv rssi -96 rx noise floor 2396 tx frames through raw api 27334 A-MPDU sub-frames received 12 CRC errors for non-last A-MPDU subframes 540 CRC errors for last subframe in an A-MPDU 167 Number of frames retransmitted in software 2929 A-MPDU sub-frame TX attempt success 117 A-MPDU sub-frame TX attempt failures Antenna profile: [0] tx 20762 rx 27979 [1] tx 0 rx 278983 (What's up with the "Invalid argument" messages?) From owner-freebsd-wireless@FreeBSD.ORG Wed Nov 23 23:08:43 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB714106566C for ; Wed, 23 Nov 2011 23:08:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7C0D78FC08 for ; Wed, 23 Nov 2011 23:08:43 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so688576vcb.13 for ; Wed, 23 Nov 2011 15:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dNcUjXN8Lo1VrpbBclSKk6qdZJmrkIIu0yip6b32tO0=; b=xtclyPuiWEEwR52xNZuBNwXJUbgl5iynagfQG6vxCNgCO37g2cmr4zsS2qFaF8tsDN zHJwu1QmlSOA2JmOxCnbrS6K35PaCqxokR81GcImx5td7jpMaERRzbIJjH14NmvICqVR RNCCaCJraufciyuOhLJ4bgSUwG7IkmaPHoUBo= MIME-Version: 1.0 Received: by 10.220.199.135 with SMTP id es7mr1818913vcb.95.1322089722552; Wed, 23 Nov 2011 15:08:42 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Wed, 23 Nov 2011 15:08:42 -0800 (PST) In-Reply-To: References: Date: Thu, 24 Nov 2011 07:08:42 +0800 X-Google-Sender-Auth: zPbfZPcVywr9MOxuLHpEROj2lw4 Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 23:08:43 -0000 On 24 November 2011 06:39, Warren Block wrote: > Statistics after it's been up for a while. =A0From a user perspective, no > problems with the wireless at all. > > # athstats -i ath0 > athstats: ath0: Invalid argument > athstats: ath0: Invalid argument You're missing ATH_DIAGAPI? Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Nov 24 03:38:35 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9611E1065676; Thu, 24 Nov 2011 03:38:35 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 5126A8FC15; Thu, 24 Nov 2011 03:38:35 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAO3cYT0065868; Wed, 23 Nov 2011 20:38:34 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAO3cYks065865; Wed, 23 Nov 2011 20:38:34 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 23 Nov 2011 20:38:34 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-902635197-1003571343-1322105914=:65846" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 23 Nov 2011 20:38:34 -0700 (MST) Cc: wireless@freebsd.org Subject: Re: Testing 802.11n 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, 24 Nov 2011 03:38:35 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---902635197-1003571343-1322105914=:65846 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Thu, 24 Nov 2011, Adrian Chadd wrote: > On 24 November 2011 06:39, Warren Block wrote: >> Statistics after it's been up for a while.  From a user perspective, no >> problems with the wireless at all. >> >> # athstats -i ath0 >> athstats: ath0: Invalid argument >> athstats: ath0: Invalid argument > > You're missing ATH_DIAGAPI? Yep. Here's the full version: # athstats -i ath0 9607 data frames received 1007 data frames transmit 32 tx frames with an alternate rate 509 long on-chip tx retries 7 tx failed 'cuz too many retries 8 mib overflow interrupts MCS7 current transmit rate 2833 rx failed 'cuz of bad CRC 126 rx failed 'cuz of PHY err 1 OFDM restart 125 CCK restart 26 periodic calibrations -0/+0 TDMA slot adjust (usecs, smoothed) 44 rssi of last ack 45 avg recv rssi -96 rx noise floor 146 tx frames through raw api 1178 A-MPDU sub-frames received 3 CRC errors for non-last A-MPDU subframes 5 Number of frames retransmitted in software 100 A-MPDU sub-frame TX attempt success 5 A-MPDU sub-frame TX attempt failures 1 first step level 1 OFDM weak signal detect 16 ANI increased spur immunity 16 ANI decrease spur immunity 16 ANI enabled OFDM weak signal detect 138 ANI disabled OFDM weak signal detect 122 ANI disabled CCK weak signal threshold 1 ANI increased first step level 31594 cumulative OFDM phy error count 32257 cumulative CCK phy error count 28 ANI forced listen time to zero 509 missing ACK's 3408 bad FCS 7163 beacons received 46 average rssi (beacons only) 45 average rssi (all rx'd frames) 44 average rssi (ACKs only) Antenna profile: [0] tx 913 rx 1194 [1] tx 0 rx 8413 ---902635197-1003571343-1322105914=:65846-- From owner-freebsd-wireless@FreeBSD.ORG Thu Nov 24 03:40:28 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04201106566B for ; Thu, 24 Nov 2011 03:40:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id A53928FC0C for ; Thu, 24 Nov 2011 03:40:27 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so2936017vbb.13 for ; Wed, 23 Nov 2011 19:40:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=frmW2Inw1I3A9YByj3XhPopuaTMvY5G9ZKJMP1KmET8=; b=fyanHZg3mtCWlI5GFHr02NwBVjBlckOUuz6yWT/LJSiAZYHDZYiN7CTg8ACGyxLqBJ y2qPClbK6wEt1ZOMT2/knlgq2oM/BnKE3kM73QkyDwh5YC4w7jDvLM5Yqbpd5VO5XLsF 5WOd5+jKqtAes6d81iUwImOITCKCY/1EOn5YA= MIME-Version: 1.0 Received: by 10.52.174.193 with SMTP id bu1mr28021938vdc.71.1322106026853; Wed, 23 Nov 2011 19:40:26 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.29.198 with HTTP; Wed, 23 Nov 2011 19:40:26 -0800 (PST) In-Reply-To: References: Date: Thu, 24 Nov 2011 11:40:26 +0800 X-Google-Sender-Auth: UbnK_VmnTi3cEM2CadgN16iFhUs Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: wireless@freebsd.org Subject: Re: Testing 802.11n 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, 24 Nov 2011 03:40:28 -0000 Cool, this looks totally successful. :-) Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Nov 24 07:47:57 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B348106566C for ; Thu, 24 Nov 2011 07:47:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3AE8FC12 for ; Thu, 24 Nov 2011 07:47:56 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so3106255vbb.13 for ; Wed, 23 Nov 2011 23:47:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=WVEKKG1Xi/isUE/eUKBV351LlelqR58jf8fX4uvul7Y=; b=q09qgjYaGYREVTdHLsxq7DAJKdfJtGKKn0KF7UvE2yqJgWazCOZvRljl/wTi+qfRtb CZjj6p6uk2q1sHQrfgeH5bSZua4pDpZodRO+6RWrfPJi11uWav2dxaxcowSLcfGm3xsD xRQQlAl6M5JdkRFZGiwD1CfW9NVYyEC+VNxdc= MIME-Version: 1.0 Received: by 10.52.174.193 with SMTP id bu1mr28618725vdc.71.1322120876266; Wed, 23 Nov 2011 23:47:56 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.182.134 with HTTP; Wed, 23 Nov 2011 23:47:56 -0800 (PST) Date: Thu, 24 Nov 2011 15:47:56 +0800 X-Google-Sender-Auth: DwIS1SqP4c2IKhZic3Y-tpuPrUs Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 24 Nov 2011 07:47:57 -0000 And with this particular commit, all the bits needed to get FreeBSD-HEAD running natively on this unit are now in the tree. The process is documented here: http://code.google.com/p/freebsd-wifi-build/wiki/TpLinkTLWR1043ND I haven't yet tried building and testing a sysupgrade image, so please don't ask me how to update it via the default firmware webui. So to play this game you'll (for now) require a serial console. I do however have the unit running as a 2.4ghz 11n hostap, natively booting from flash with a 64k flash partition to store configuration data on. My work here is done. :-) Adrian On 24 November 2011 15:37, Adrian Chadd wrote: > Author: adrian > Date: Thu Nov 24 07:37:19 2011 > New Revision: 227926 > URL: http://svn.freebsd.org/changeset/base/227926 > > Log: > =A0Now that I've brought up FreeBSD via flash, I've discovered that > =A0the second-last 64k seems to be the default firmware board configurati= on > =A0area. > > =A0Since I have no idea whether uboot uses it or not - and it's prefixed > =A0with an atheros eeprom signature (0xaa55), I figure the safest thing > =A0to do is mark it as read-only. > > =A0I've modified my local tplink firmware building program to generate > =A0a board configuration section - which is separate to this partition. > =A0It's located in the 64k _before_ this particular 64k. > > =A0The firmware build program from OpenWRT never initialises those > =A0values and the firmware images from tplink also leave it 0x0, so I > =A0don't currently know what the exact, correct details should be. > > Modified: > =A0head/sys/mips/conf/TP-WN1043ND.hints > > Modified: head/sys/mips/conf/TP-WN1043ND.hints > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/mips/conf/TP-WN1043ND.hints =A0 =A0 =A0 =A0Thu Nov 24 07:33:= 41 2011 =A0 =A0 =A0 =A0(r227925) > +++ head/sys/mips/conf/TP-WN1043ND.hints =A0 =A0 =A0 =A0Thu Nov 24 07:37:= 19 2011 =A0 =A0 =A0 =A0(r227926) > @@ -26,7 +26,8 @@ hint.ath.0.eepromaddr=3D0x1fff1000 > =A0# 128k: uboot > =A0# 1024k: kernel > =A0# 4096k: rootfs > -# 2880k: unknown > +# 2816: unknown > +# 64k: board config? > =A0# 64k: ART > =A0# > =A0# from printenv: > @@ -37,8 +38,9 @@ hint.ath.0.eepromaddr=3D0x1fff1000 > =A0# So: > =A0# 128k: uboot > =A0# 2048k: kernel > -# 5888k: rootfs > -# (todo: 64k: config) > +# 5824k: rootfs > +# 64k: config > +# 64k: board config? > =A0# 64k: ART > > =A0hint.map.0.at=3D"flash/spi0" > @@ -55,19 +57,38 @@ hint.map.1.readonly=3D1 > > =A0hint.map.2.at=3D"flash/spi0" > =A0hint.map.2.start=3D0x00220000 > -#hint.map.2.end=3D0x007e0000 > -hint.map.2.end=3D0x007f0000 > +hint.map.2.end=3D0x007c0000 > =A0hint.map.2.name=3D"rootfs" > =A0hint.map.2.readonly=3D1 > > -#hint.map.3.at=3D"flash/spi0" > -#hint.map.3.start=3D0x007e0000 > -#hint.map.3.end=3D0x007f0000 > -#hint.map.3.name=3D"cfg" > -#hint.map.3.readonly=3D1 > +hint.map.3.at=3D"flash/spi0" > +hint.map.3.start=3D0x007c0000 > +hint.map.3.end=3D0x007d0000 > +hint.map.3.name=3D"cfg" > +hint.map.3.readonly=3D0 > > +# I'm not sure what this is! > +# > +# It does however start with "55 aa" which is an AR5416 EEPROM > +# magic value, followed by what looks like a set of ethernet > +# MAC addresses, then a bunch of what looks like my local firmware > +# board configuration. > +# > +# For now, I'm going to leave this particular chunk of flash > +# alone. > +# > =A0hint.map.4.at=3D"flash/spi0" > -hint.map.4.start=3D0x007f0000 > -hint.map.4.end=3D0x00800000 > -hint.map.4.name=3D"art" > +hint.map.4.start=3D0x007d0000 > +hint.map.4.end=3D0x007e0000 > +hint.map.4.name=3D"unknown" > =A0hint.map.4.readonly=3D1 > + > +# This is radio calibration section. =A0It is (or should be!) unique > +# for each board, to take into account thermal and electrical difference= s > +# as well as the regulatory compliance data. > +# > +hint.map.5.at=3D"flash/spi0" > +hint.map.5.start=3D0x007f0000 > +hint.map.5.end=3D0x00800000 > +hint.map.5.name=3D"art" > +hint.map.5.readonly=3D1 > From owner-freebsd-wireless@FreeBSD.ORG Thu Nov 24 22:52:39 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82A851065670; Thu, 24 Nov 2011 22:52:39 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 49EF68FC0A; Thu, 24 Nov 2011 22:52:39 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 86F73110228; Thu, 24 Nov 2011 23:52:38 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Stefan Bethke In-Reply-To: Date: Thu, 24 Nov 2011 23:52:37 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Adrian Chadd X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 24 Nov 2011 22:52:39 -0000 Am 24.11.2011 um 08:47 schrieb Adrian Chadd: > And with this particular commit, all the bits needed to get > FreeBSD-HEAD running natively on this unit are now in the tree. >=20 > The process is documented here: >=20 > http://code.google.com/p/freebsd-wifi-build/wiki/TpLinkTLWR1043ND >=20 > I haven't yet tried building and testing a sysupgrade image, so please > don't ask me how to update it via the default firmware webui. So to > play this game you'll (for now) require a serial console. >=20 > I do however have the unit running as a 2.4ghz 11n hostap, natively > booting from flash with a 64k flash partition to store configuration > data on. >=20 > My work here is done. :-) Extremely cool! I'm a bit busy this weekend, but I'll try and give it a = go asap. Thanks, Stefan --=20 Stefan Bethke Fon +49 151 14070811 From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 02:38:27 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58138106564A; Fri, 25 Nov 2011 02:38:27 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 14FFE8FC17; Fri, 25 Nov 2011 02:38:26 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAP2cQWc076385; Thu, 24 Nov 2011 19:38:26 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAP2cQsK076382; Thu, 24 Nov 2011 19:38:26 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 24 Nov 2011 19:38:26 -0700 (MST) From: Warren Block To: Stefan Bethke In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 24 Nov 2011 19:38:26 -0700 (MST) Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 25 Nov 2011 02:38:27 -0000 On Thu, 24 Nov 2011, Stefan Bethke wrote: > Am 24.11.2011 um 08:47 schrieb Adrian Chadd: > >> And with this particular commit, all the bits needed to get >> FreeBSD-HEAD running natively on this unit are now in the tree. >> >> The process is documented here: >> >> http://code.google.com/p/freebsd-wifi-build/wiki/TpLinkTLWR1043ND >> >> I haven't yet tried building and testing a sysupgrade image, so please >> don't ask me how to update it via the default firmware webui. So to >> play this game you'll (for now) require a serial console. >> >> I do however have the unit running as a 2.4ghz 11n hostap, natively >> booting from flash with a 64k flash partition to store configuration >> data on. >> >> My work here is done. :-) > > Extremely cool! I'm a bit busy this weekend, but I'll try and give it a go asap. This is very, very interesting. Does the USB port work with FreeBSD? Is there any usable GPIO? Can FreeBSD be used on the cheaper versions, like the TL-WR740N? It's throw-away cheap, as in cheap enough to use as a wireless sensor. From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 04:33:50 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89CFD106566B; Fri, 25 Nov 2011 04:33:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2B3478FC0C; Fri, 25 Nov 2011 04:33:49 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so2077694vcb.13 for ; Thu, 24 Nov 2011 20:33:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7u2MxtVkTcuXGlts9pr9FOFfx83nO+L0fck8xj5UZBg=; b=qG1ZZRlBgAOtqyqbpGlO0gkhd+3hCRbfsB4Gv8z2kISujynQFSQnlt7kfdRA11B5ID 3cQeMtkZg1tXYMhpVQbc4YU8efcK8WVKvQqDjFvSQE822TrcnMASG/3YPX9PACQKMQy1 3Qtpf9yczSwmubz+k2u8I9ypC+OFI6rQjT1iE= MIME-Version: 1.0 Received: by 10.52.65.77 with SMTP id v13mr31795784vds.95.1322195629484; Thu, 24 Nov 2011 20:33:49 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Thu, 24 Nov 2011 20:33:49 -0800 (PST) In-Reply-To: References: Date: Fri, 25 Nov 2011 12:33:49 +0800 X-Google-Sender-Auth: F8ly1J06yzgCSfvgBu5u7gjZzEc Message-ID: From: Adrian Chadd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 25 Nov 2011 04:33:50 -0000 On 25 November 2011 10:38, Warren Block wrote: > This is very, very interesting. =A0Does the USB port work with FreeBSD? I= s > there any usable GPIO? The USB port worked the last time I checked; I'll go and check and report back if it doesn't work. There's a lot of GPIO but they're all taken up with LEDs. :) > Can FreeBSD be used on the cheaper versions, like the TL-WR740N? =A0It's > throw-away cheap, as in cheap enough to use as a wireless sensor. If it has an Ar71xx, Ar724x, AR913x SoC in it, then yes. Someone will either have to buy/ship me one or do the legwork to shoehorn freebsd onto it though. :) According to the openwrt site - the previous revisions have an AR724x in them and an AR9285 wireless CPU. So yes, FreeBSD will boot, but there's some hacks needed to get the wifi up on it. If someone buys/ships me one after the new year I'll make it happen. Note - it has 16mb RAM and 4mb of flash. You're going to have to do significant legwork to squeeze down FreeBSD to be usable on such a small platform. I don't have the time for that. Note - the newer revision of hardware has an AR933x SoC/wifi chipset in it. There's currently no FreeBSD support for that and there won't be until I finish of the current 11n stuff (or people jump in and help me.) If someone wants to give porting the CPU and wireless support from Linux over then give me a buzz and I'll start you down the right path. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 06:03:22 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A0FD106564A; Fri, 25 Nov 2011 06:03:22 +0000 (UTC) (envelope-from richo@psych0tik.net) Received: from bedford.accountservergroup.com (bedford.accountservergroup.com [50.22.11.19]) by mx1.freebsd.org (Postfix) with ESMTP id 2CDBD8FC12; Fri, 25 Nov 2011 06:03:21 +0000 (UTC) Received: from boxand.lnk.telstra.net ([203.45.130.125] helo=richh-imac.office.boxdice.com.au) by bedford.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1RTnlg-0005v1-CL; Thu, 24 Nov 2011 22:52:08 -0600 Date: Fri, 25 Nov 2011 15:52:03 +1100 From: richo To: Adrian Chadd Message-ID: <20111125045203.GB13068@richh-imac.office.boxdice.com.au> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TiqCXmo5T1hvSQQg" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bedford.accountservergroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - psych0tik.net X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 25 Nov 2011 06:03:22 -0000 --TiqCXmo5T1hvSQQg Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 25/11/11 12:33 +0800, Adrian Chadd wrote: >On 25 November 2011 10:38, Warren Block wrote: > >> This is very, very interesting. =A0Does the USB port work with FreeBSD? = Is >> there any usable GPIO? > >The USB port worked the last time I checked; I'll go and check and >report back if it doesn't work. > >There's a lot of GPIO but they're all taken up with LEDs. :) > >> Can FreeBSD be used on the cheaper versions, like the TL-WR740N? =A0It's >> throw-away cheap, as in cheap enough to use as a wireless sensor. > >If it has an Ar71xx, Ar724x, AR913x SoC in it, then yes. Someone will >either have to buy/ship me one or do the legwork to shoehorn freebsd >onto it though. :) > >According to the openwrt site - the previous revisions have an AR724x >in them and an AR9285 wireless CPU. So yes, FreeBSD will boot, but >there's some hacks needed to get the wifi up on it. If someone >buys/ships me one after the new year I'll make it happen. > >Note - it has 16mb RAM and 4mb of flash. You're going to have to do >significant legwork to squeeze down FreeBSD to be usable on such a >small platform. I don't have the time for that. > >Note - the newer revision of hardware has an AR933x SoC/wifi chipset >in it. There's currently no FreeBSD support for that and there won't >be until I finish of the current 11n stuff (or people jump in and help >me.) If someone wants to give porting the CPU and wireless support >from Linux over then give me a buzz and I'll start you down the right >path. > > >Adrian I'm interested in porting. I'm taking 2 weeks leave over christmas, Can I ping you the week before I leave work? -- richo || Today's excuse: Just type 'mv * /dev/null'. http://blog.psych0tik.net --TiqCXmo5T1hvSQQg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOzx7zAAoJEIKiWz6J5yQVu9YH/RxJbMesbvWg6L9fMefharz3 RDfsEoyBLmH5xcL3BadUfAOUcCIplJk1vDue9u4cVxVNTtR8/d1vAQ2wpn8ZP+i2 GiiNTL89azGePgEuVYmQuV+tsunIXzMRBiwRuYtR6zFqDNbhqYwVDKj2kRqau7f4 lK7GQtoFBgtHzHvxj5CSjFDDDbKc2N5ue9Cn2g0oiRE6DlovfhVucvtNEKCqwCCd Hz2xoI/ZEDwTuoNgfx0zxB3iVkG4XlqkOREAW9H8BRrEv5KNjj2wKYGz+ZBJIlr5 UU9xvF/ZBBN5qQm5UwoDCYc/tBpBzIC4dye8gCiyL7G1KQJVIOpriVQBC/gvikQ= =qT0y -----END PGP SIGNATURE----- --TiqCXmo5T1hvSQQg-- From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 06:18:44 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 110601065670; Fri, 25 Nov 2011 06:18:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id A978A8FC08; Fri, 25 Nov 2011 06:18:43 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so4225274vbb.13 for ; Thu, 24 Nov 2011 22:18:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=lqg+lBEzwZPG/YQva1SwP15WW5XFlgOko1mc2iNIWCE=; b=eleETegPBGybHoeIbgqaqVkJZuSBLXh6hJwPW5Gl7s0XZEF6zC1CcUq+i8K7G4Phy5 uSZJgd5aCPT8CZ4gjwsbpyCE+OQn5blxqaLb8hGu6eiy03PB6gxsHFigNKM8nQx6GdNp d7HJskwJslNvk5nmdYPtD5rC/4AizYcdQjlw8= MIME-Version: 1.0 Received: by 10.52.91.237 with SMTP id ch13mr32143436vdb.129.1322201923059; Thu, 24 Nov 2011 22:18:43 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Thu, 24 Nov 2011 22:18:43 -0800 (PST) In-Reply-To: <20111125045203.GB13068@richh-imac.office.boxdice.com.au> References: <20111125045203.GB13068@richh-imac.office.boxdice.com.au> Date: Fri, 25 Nov 2011 14:18:43 +0800 X-Google-Sender-Auth: 6YR5s8-1WhHI9Hxmvls-HElbyq0 Message-ID: From: Adrian Chadd To: richo Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 25 Nov 2011 06:18:44 -0000 On 25 November 2011 12:52, richo wrote: > I'm interested in porting. > > I'm taking 2 weeks leave over christmas, Can I ping you the week before I > leave work? sure. adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 06:23:36 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4842A106564A; Fri, 25 Nov 2011 06:23:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9C7308FC13; Fri, 25 Nov 2011 06:23:35 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so4228418vbb.13 for ; Thu, 24 Nov 2011 22:23:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=EzxqNUCZ/ywq6dr5Xw6Lrg1YZ39CS4xSsO43/o07IZw=; b=VW5v8nybfy3chgpzyg4sFXHCoY/VYrAV+uoSTclbaI91ZH6g83sYGWmCFDY5/90UB2 WRGaY2aNooI346fXw4A1QqKa0114yaEuRPIqlMrRN0xc1336HVntqB1SPrNtGsClf7Cp IYQwVOvJKCjgOjzZ+ts3SnUcb1WK+oghsu0YU= MIME-Version: 1.0 Received: by 10.52.33.69 with SMTP id p5mr32152193vdi.78.1322202214969; Thu, 24 Nov 2011 22:23:34 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Thu, 24 Nov 2011 22:23:34 -0800 (PST) In-Reply-To: <20111125045203.GB13068@richh-imac.office.boxdice.com.au> References: <20111125045203.GB13068@richh-imac.office.boxdice.com.au> Date: Fri, 25 Nov 2011 14:23:34 +0800 X-Google-Sender-Auth: wTfjk2g6JTpGCk27DqZZFoNXpTc Message-ID: From: Adrian Chadd To: richo Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 25 Nov 2011 06:23:36 -0000 But just take a look at the openwrt board support for the AR933x. See what's involved. They may recycle parts of the ar71xx/ar724x support (maybe the ethernet MAC, I'm not sure.) Ignore the wifi for now, that's a (much) bigger task. If someone acquires an AR93xx mini-pcie NIC and wants to give me a hand, I'll steer them down the path of preparing the ath driver for the ar9003 series support. As I said, it's a relatively big task - porting the HAL code over is easy (and something I can do in a weekend); the problem is all the driver changes needed for the new interrupt, DMA and descriptor handling. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 09:39:06 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6BE0106566C for ; Fri, 25 Nov 2011 09:39:06 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id 41E6C8FC16 for ; Fri, 25 Nov 2011 09:39:05 +0000 (UTC) Received: from entelserver.upc.edu (entelserver.upc.es [147.83.39.4]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id pAP9d4Le027336 for ; Fri, 25 Nov 2011 10:39:05 +0100 Received: from webmail.entel.upc.edu (www-entel.upc.es [147.83.39.6]) by entelserver.upc.edu (Postfix) with ESMTP id C83F12CBD0E for ; Fri, 25 Nov 2011 10:38:59 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 25 Nov 2011 10:25:05 +0100 From: Gustau Perez Querol To: Message-ID: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> X-Sender: gperez@entel.upc.edu User-Agent: RoundCube Webmail/0.5.1 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (dash.upc.es [147.83.2.50]); Fri, 25 Nov 2011 10:39:05 +0100 (CET) Subject: Big delays between an AR5416 AP and its clients 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, 25 Nov 2011 09:39:06 -0000 This is the environment: I'm using an AR5416 card acting as an AP with hostap in 11g mode. I'm running g because I did not have time to test the 11n work yet. The box is running CURRENT/AMD64 as of Nov 22th. These are the symptoms: A few days ago I began to see very big delays between the AP and my laptop (which has an AR9287 with FreeBSD/AMD64 CURRENT). I tried a simple icmp with 1 second between pings. The curious thing is that delays increase from 30ms til 100ms (those times are in the same order of magnitude of a ping to google) and then they fall til 30ms again. It did not work like that before. I tested with different clients (an iPhone, a laptop running FreeBSD with an Intel 3945, an asus eeePC laptop with windows7 and other devices). All of them showed the same behavior. Further experiments showed me that the problem appears when any iPhone associates with the AP. As soon as the iPhone deassociates the other clients see no problems at all. ICMP messages get less than a ms to get replied (which are rtt I would expect). I'm pasting online at the end of the mail a simple icmp trace where you can see how it behaves. It shows increasing icmp rtt and then falling to usable time. Then it increases again. This is where I am now: I'm tracking kib's git repository (because I'm helping him as a tester and bug finder with his work with the GEM/KMS thing, that machine has a card giving us a lot of headaches) so I decided to do a bisect to find out which commit introduced the bug with the AR5416. Memory served me well and I could tell at the end of October it worked fine (we have two iphone at home and they worked fine), so it would be something introduced in November. The bisect lead me to r227364, which is one quite large. I took a look at the code, but I'm not used to the ath land. I ensured the previous one did well, with two iPhones there, 3 laptops (2 FreeBSD and one win7), a Wii and a multimedia wifi hard drive. It did well. Using the next commit triggered the problem. I have a custom r227364 compilation with ATH_DEBUG, AH_DEBUG and ATH_GSAPIA there. I also compiled athstat. However now I'm at $WORK and I can not test till this afternoon (I'm at +1UTC). I'll test with athstats the card's behaviour when the iPhone associates and post back to the list. I will take a look at the diff of this revision, but I'm not used to the ath|wireless code in the kernel, so I would say I will not find anything interesting. However I'll spend some time (4 eyes see more than two, they say). Any additional test or if you have any idea where the problem gets introduced so I can take at the code, please let me know. Gustau ****************************************************** bytes from 192.168.1.100: icmp_seq=15 ttl=64 time=0.946 ms 64 bytes from 192.168.1.100: icmp_seq=16 ttl=64 time=1.016 ms 64 bytes from 192.168.1.100: icmp_seq=17 ttl=64 time=1.011 ms 64 bytes from 192.168.1.100: icmp_seq=18 ttl=64 time=1.040 ms 64 bytes from 192.168.1.100: icmp_seq=19 ttl=64 time=0.779 ms 64 bytes from 192.168.1.100: icmp_seq=20 ttl=64 time=0.657 ms 64 bytes from 192.168.1.100: icmp_seq=21 ttl=64 time=0.945 ms 64 bytes from 192.168.1.100: icmp_seq=22 ttl=64 time=88.747 ms 64 bytes from 192.168.1.100: icmp_seq=23 ttl=64 time=109.538 ms 64 bytes from 192.168.1.100: icmp_seq=24 ttl=64 time=29.992 ms 64 bytes from 192.168.1.100: icmp_seq=25 ttl=64 time=0.978 ms 64 bytes from 192.168.1.100: icmp_seq=26 ttl=64 time=74.145 ms 64 bytes from 192.168.1.100: icmp_seq=27 ttl=64 time=97.230 ms 64 bytes from 192.168.1.100: icmp_seq=28 ttl=64 time=17.816 ms 64 bytes from 192.168.1.100: icmp_seq=29 ttl=64 time=41.417 ms 64 bytes from 192.168.1.100: icmp_seq=30 ttl=64 time=62.682 ms 64 bytes from 192.168.1.100: icmp_seq=31 ttl=64 time=84.579 ms 64 bytes from 192.168.1.100: icmp_seq=32 ttl=64 time=107.628 ms 64 bytes from 192.168.1.100: icmp_seq=33 ttl=64 time=27.328 ms 64 bytes from 192.168.1.100: icmp_seq=34 ttl=64 time=50.283 ms ****************************************************** From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 09:53:42 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F4ED1065672 for ; Fri, 25 Nov 2011 09:53:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id C08998FC15 for ; Fri, 25 Nov 2011 09:53:41 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so2306956vcb.13 for ; Fri, 25 Nov 2011 01:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=iVm/HzbE57Ny3Vw27Tu294im/yq7LTXsk2G+bxQGxcY=; b=OfbM7fR6lLaapaJAChHm2jjsBg/ROYnsO0++xkEg7wOiyru6T0qnz9WeIlt/qXLtNx Qvac0s3TJxjoPH9pas9RUnMbJyOwXD3Euu9is7HHEtZhCsByr0GmVqpsbqU8F4B4DrPp Awgb39aJHuJwUuYtGe+JSv0ZJklrZ8oSwx9XA= MIME-Version: 1.0 Received: by 10.220.186.199 with SMTP id ct7mr2843717vcb.114.1322214820945; Fri, 25 Nov 2011 01:53:40 -0800 (PST) Received: by 10.52.186.74 with HTTP; Fri, 25 Nov 2011 01:53:40 -0800 (PST) In-Reply-To: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> References: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> Date: Fri, 25 Nov 2011 17:53:40 +0800 Message-ID: From: Adrian Chadd To: Gustau Perez Querol Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Big delays between an AR5416 AP and its clients 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, 25 Nov 2011 09:53:42 -0000 Hi, As I've said privately: * compile w/ ATH_DEBUG, ATH_DIAGAPI, AH_DEBUG * and compile src/tools/tools/ath/athstats/ I also suggest: * compile w/ IEEE80211_DEBUG * and compile src/tools/tools/wlan/wlanstats/ (why those aren't built as part of the base is beyond me, but I digress..) Let's see if we can find some correlations between counters incrementing and upset traffic w/ your iphone. The commit (r227364) is the introduction of the TX aggregation and software TX queue handling. It's very possible that we're seeing some very bad behaviour with aggressive power saving as I _do_ know my ath driver changes have broken the power saving stuff somewhat. The short of it: because there are now frames sitting in the driver, rather than the net80211 TX interface queue, the beacon TIM (traffic map) generation won't take into account anything that the driver sees. However unless you've enabled 11n, the software retransmission shouldn't occur - it only occurs when 11n aggregation has been negotiated. So I think it's very likely something to do with the software TX queue itself and how frames are queued/drained. So yes, let's get some more details from your environment and once I've finished relocation (and have the right iphone hardware :-) I'll see about fixing it up. Thanks very much for testing this stuff! Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 12:43:21 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB0BF106566B; Fri, 25 Nov 2011 12:43:21 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 77F918FC16; Fri, 25 Nov 2011 12:43:21 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:5974:a369:b987:bc4d]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 4EFD74AC1C; Fri, 25 Nov 2011 16:43:20 +0400 (MSK) Date: Fri, 25 Nov 2011 16:43:14 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1466587708.20111125164314@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: wireless@freebsd.org Subject: Re: Testing 802.11n 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, 25 Nov 2011 12:43:21 -0000 Hello, Adrian. You wrote 24 =ED=EE=FF=E1=F0=FF 2011 =E3., 7:40:26: > Cool, this looks totally successful. Latest HEAD (with all your changes), 2 days uptime, only messages in kernel log: wlan0: Ethernet address: f4:ec:38:a3:10:6d ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA ... ath0: stuck beacon; resetting (bmiss count 4) ar5212StopDmaReceive: dma failed to stop in 10ms AR_CR=3D0x00000024 AR_DIAG_SW=3D0x42000020 On old code I've got "stuck beacon" every hour in idle and every 5 minutes under load. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 16:39:03 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47124106566B; Fri, 25 Nov 2011 16:39:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id DAD1C8FC13; Fri, 25 Nov 2011 16:39:02 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pAPGd2HX080350; Fri, 25 Nov 2011 09:39:02 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pAPGd2Sk080347; Fri, 25 Nov 2011 09:39:02 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 25 Nov 2011 09:39:02 -0700 (MST) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-902635197-1508641292-1322239142=:79779" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Fri, 25 Nov 2011 09:39:02 -0700 (MST) Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 25 Nov 2011 16:39:03 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---902635197-1508641292-1322239142=:79779 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 25 Nov 2011, Adrian Chadd wrote: > On 25 November 2011 10:38, Warren Block wrote: > >> Can FreeBSD be used on the cheaper versions, like the TL-WR740N?  It's >> throw-away cheap, as in cheap enough to use as a wireless sensor. > > If it has an Ar71xx, Ar724x, AR913x SoC in it, then yes. Someone will > either have to buy/ship me one or do the legwork to shoehorn freebsd > onto it though. :) > > According to the openwrt site - the previous revisions have an AR724x > in them and an AR9285 wireless CPU. So yes, FreeBSD will boot, but > there's some hacks needed to get the wifi up on it. If someone > buys/ships me one after the new year I'll make it happen. > > Note - it has 16mb RAM and 4mb of flash. You're going to have to do > significant legwork to squeeze down FreeBSD to be usable on such a > small platform. I don't have the time for that. 32M of RAM on V3 and earlier, and V5 with 16M/2M is (supposedly) only in China. Too bad the cheaper ones don't have a USB port for storage. > Note - the newer revision of hardware has an AR933x SoC/wifi chipset > in it. The OpenWRT page is vague, but it looks like V3 is still the AR7240. ---902635197-1508641292-1322239142=:79779-- From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 17:17:43 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FD31106564A for ; Fri, 25 Nov 2011 17:17:43 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 155F68FC16 for ; Fri, 25 Nov 2011 17:17:42 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id pAPHHeb9026299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 25 Nov 2011 18:17:41 +0100 Received: from portgus.lan ([80.31.114.86]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id pAPHHZF0021477 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 25 Nov 2011 18:17:40 +0100 Message-ID: <4ECFCDAB.1080407@entel.upc.edu> Date: Fri, 25 Nov 2011 18:17:31 +0100 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111111 Thunderbird/8.0 MIME-Version: 1.0 To: Adrian Chadd References: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Fri, 25 Nov 2011 18:17:41 +0100 (CET) Cc: freebsd-wireless@freebsd.org Subject: Re: Big delays between an AR5416 AP and its clients 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, 25 Nov 2011 17:17:43 -0000 On 11/25/11 10:53, Adrian Chadd wrote: > Hi, > > As I've said privately: > > * compile w/ ATH_DEBUG, ATH_DIAGAPI, AH_DEBUG > * and compile src/tools/tools/ath/athstats/ > > I also suggest: > > * compile w/ IEEE80211_DEBUG > * and compile src/tools/tools/wlan/wlanstats/ > > (why those aren't built as part of the base is beyond me, but I digress..) > > Let's see if we can find some correlations between counters > incrementing and upset traffic w/ your iphone. > All that follows was done with all the debug kernel knobs there. I did two tests collecting info with athstats. The first was with no clients associated with the box and then letting the iphone associate. The athstats dump is at: http://pastebin.com/EVgFJC7s The second one was 1 client associated with the box. This client was sending icmp messages at the default rate of 1 icmp/s: http://pastebin.com/C5kjuEpg Neither wlanstats nor dmesg shows additional information. The kernel only complains about this (I paste it only because it is quite short): ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA Timeout while waiting for nf to load: AR_PHY_AGC_CONTROL=0x41d1a The last message appears from time to time (currently I have it three times) but it shows up without any correlation with the association process of the iphone so I would say it has nothing to do with our problem. It appears to be related with calibration in N mode. However I'm posting just in case. Any additional test, let me know. Gus From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 20:48:58 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C5A0106575F for ; Fri, 25 Nov 2011 20:48:58 +0000 (UTC) (envelope-from andres.beek@mail.ee) Received: from bounce-out.neti.ee (bounce-out.neti.ee [194.126.101.104]) by mx1.freebsd.org (Postfix) with ESMTP id CD0928FC08 for ; Fri, 25 Nov 2011 20:48:57 +0000 (UTC) Received: from smtp-out.neti.ee (vm-relay7.estpak.ee [88.196.174.138]) by Bounce1.estpak.ee (Postfix) with ESMTP id BF7961028 for ; Fri, 25 Nov 2011 22:30:59 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by vm-relay7.estpak.ee (Postfix) with ESMTP id 7D943330 for ; Fri, 25 Nov 2011 22:30:57 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-relay7.estpak.ee Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (vm-relay7.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jugYle9JBFGh for ; Fri, 25 Nov 2011 22:30:55 +0200 (EET) Received: from NETI-Relayhost2.estpak.ee (neti-relayhost2.estpak.ee [88.196.174.199]) by vm-relay7.estpak.ee (Postfix) with ESMTP id 43CFE1B for ; Fri, 25 Nov 2011 22:30:55 +0200 (EET) Received-SPF: None (no SPF record) identity=mailfrom; client-ip=90.191.136.188; helo=[192.168.178.102]; envelope-from=andres.beek@mail.ee; receiver=freebsd-wireless@freebsd.org. X-SMTP-Auth-NETI-Businessmail: no From: "Andres Beek" To: freebsd-wireless@freebsd.org. Date: Fri, 25 Nov 2011 22:31:56 +0200 MIME-Version: 1.0 Message-ID: <4ECFFB3C.16808.D76FB2F@andres.beek.mail.ee> Priority: normal X-mailer: Pegasus Mail for Windows (4.62) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Cc: Subject: Uanble to enable 802.11g chanels above 11 despite of the REGDOMAIN set 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, 25 Nov 2011 20:48:58 -0000 Hi list I am uanble to enable 802.11g channels above 11 despite of the country I am setting. I have digged in the web for a week or more, but no ideas found. I have set country to EE and DEBUG, but no success (see [CMD]ifconfig wlan0 list regdomain[/CMD] output below) It's an WUSB54G-v4 ural diver on FreeBSD-8.2-STABLE-amd64, also happens on FreeBSD-9.0-RC2. WUSB54G-v4 works fineon channel 13 under the Windows, same under OpenBSD I just installed to test the device. Any glue appreciated. Thanks AB [code] suomensilta# ifconfig wlan0 list regdomain :regdomain ETSI country EE anywhere -ecm Channel 1 : 2412 MHz 11b Channel 6 : 2437 MHz 11g Channel 1 : 2412 MHz 11g Channel 7 : 2442 MHz 11b Channel 2 : 2417 MHz 11b Channel 7 : 2442 MHz 11g Channel 2 : 2417 MHz 11g Channel 8 : 2447 MHz 11b Channel 3 : 2422 MHz 11b Channel 8 : 2447 MHz 11g Channel 3 : 2422 MHz 11g Channel 9 : 2452 MHz 11b Channel 4 : 2427 MHz 11b Channel 9 : 2452 MHz 11g Channel 4 : 2427 MHz 11g Channel 10 : 2457 MHz 11b Channel 5 : 2432 MHz 11b Channel 10 : 2457 MHz 11g Channel 5 : 2432 MHz 11g Channel 11 : 2462 MHz 11b Channel 6 : 2437 MHz 11b Channel 11 : 2462 MHz 11g [/code] [code] suomensilta# ifconfig wlan0 list regdomain :regdomain DEBUG country DEBUG anywhere -ecm Channel 1 : 2412 MHz 11b Channel 6 : 2437 MHz 11g Channel 1 : 2412 MHz 11g Channel 7 : 2442 MHz 11b Channel 2 : 2417 MHz 11b Channel 7 : 2442 MHz 11g Channel 2 : 2417 MHz 11g Channel 8 : 2447 MHz 11b Channel 3 : 2422 MHz 11b Channel 8 : 2447 MHz 11g Channel 3 : 2422 MHz 11g Channel 9 : 2452 MHz 11b Channel 4 : 2427 MHz 11b Channel 9 : 2452 MHz 11g Channel 4 : 2427 MHz 11g Channel 10 : 2457 MHz 11b Channel 5 : 2432 MHz 11b Channel 10 : 2457 MHz 11g Channel 5 : 2432 MHz 11g Channel 11 : 2462 MHz 11b Channel 6 : 2437 MHz 11b Channel 11 : 2462 MHz 11g [/code] From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 25 23:42:58 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FA711065670 for ; Fri, 25 Nov 2011 23:42:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0E8AC8FC12 for ; Fri, 25 Nov 2011 23:42:57 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so2971324vcb.13 for ; Fri, 25 Nov 2011 15:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=/SlOv3eGvwfWxHIq1b27N0GZ3r8DVg0UQRgjAd4/1uQ=; b=QrlGpz/Kh27QZ8xWks5Q/Ix3VB3OsAT8KkSoTFc9oaPIo8k4s3meQPzYCOmZ/25Z56 NU7eOMpx+5C4HvF6j35pFrLqsBy8x1hOnLmFkqqm6truaX3OwZWhQy+iLy9Na0iEjg1n gbisVvVWvDDT1KIsVznSvYDMfiJL4DwrGQOD4= MIME-Version: 1.0 Received: by 10.52.34.211 with SMTP id b19mr34864226vdj.112.1322264577202; Fri, 25 Nov 2011 15:42:57 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Fri, 25 Nov 2011 15:42:57 -0800 (PST) In-Reply-To: <4ECFFB3C.16808.D76FB2F@andres.beek.mail.ee> References: <4ECFFB3C.16808.D76FB2F@andres.beek.mail.ee> Date: Sat, 26 Nov 2011 07:42:57 +0800 X-Google-Sender-Auth: IC4oudv5nbT9_E3YBqiNUR2TvmM Message-ID: From: Adrian Chadd To: Andres Beek Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Uanble to enable 802.11g chanels above 11 despite of the REGDOMAIN set 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, 25 Nov 2011 23:42:58 -0000 Hm, can you compile up the ath_prom_read and ath_ee_*_dump programs, and then attach the relevant eeprom dump? They're in src/tools/tools/ath/. # ath_prom_read -i ath0 -d /tmp/ee.dump # ath_ee_X_print /tmp/ee.dump > /tmp/ee.txt * ar5212 and earlier, not currently implemented * ar5416/ar9130/ar9160/ar9280 - ath_ee_v14_print * ar9285 - ath_ee_v4k_print * ar9287 - ath_ee_9287_print Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Nov 26 01:47:50 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AD8F10656D9; Sat, 26 Nov 2011 01:47:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B449C8FC17; Sat, 26 Nov 2011 01:47:49 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5109941vbb.13 for ; Fri, 25 Nov 2011 17:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=JeoqLCPRhrSBnNv3tlw5qurDQ2j7NLllPQyuTps2b90=; b=Pb9UQluuHG5tbaoTK/wAK3wrHBVEc9qPmgdDiANU8Hzperp8xU1syujOZeYhM5GGpR kKox6WqN5no6iwwEa8j5LSu7+vl2lsPWcOzvrZrOVyQksM4HawGjmwFlZpVauwluXoEl eCei5ahmS9fZYRe29VoEv5xkBTFSFgDS7ObUY= MIME-Version: 1.0 Received: by 10.52.33.69 with SMTP id p5mr35118222vdi.78.1322272067342; Fri, 25 Nov 2011 17:47:47 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Fri, 25 Nov 2011 17:47:47 -0800 (PST) In-Reply-To: References: <4ECFF854.5050602@swin.edu.au> <4010BC72-2896-4AD0-AECB-60768C82F549@lassitu.de> Date: Sat, 26 Nov 2011 09:47:47 +0800 X-Google-Sender-Auth: M52lrTOFkbuEGcnSxOwxZtkysd0 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org Subject: Re: tplink TL-WR1043ND access point is now ready (was Re: svn commit: r227926 - head/sys/mips/conf) 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, 26 Nov 2011 01:47:50 -0000 Just as a note, if there's anything which you'd like to see added or fixed to my build image (like "add the ability to mount filesystems at startup") then please create issues on the google code project. I'm happy to do things like "fix startup scripts to suck less", "document the default login details", "make tftp flashable images so you don't need a serial console", that kind of thing. But things like "add samba/apache" will just be closed. :-) I don't plan on turning this into an openwrt style project - that's what http://zrouter.org/ is for. I'm just trying to get this stuff in the tree and usable, so others can immediately begin playing with it and provide feedback. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Nov 26 01:51:30 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58762106564A; Sat, 26 Nov 2011 01:51:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id EC6AE8FC08; Sat, 26 Nov 2011 01:51:29 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5111518vbb.13 for ; Fri, 25 Nov 2011 17:51:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=vwW5JSce0lDseKLCX9/QwCS0ddWodTIBkOIqZbiJeqs=; b=lW1bQgxruC8vg5xEC61cN9QhvNEqrXOzYijHMVvwYNlz6YLw4i3gWmRqBj1lT4k/tv E1P0Mkj+hhdSN4TU+fpZwSGGNMI38Hs0UA2iAk+8IhOiiOVX7AkUhG/1jBVqoeG/eDIT 4rPqTIIj8El+ZOuG4Y+kopC7RuQe2h9ytMeCI= MIME-Version: 1.0 Received: by 10.52.65.77 with SMTP id v13mr35042780vds.95.1322272289285; Fri, 25 Nov 2011 17:51:29 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Fri, 25 Nov 2011 17:51:29 -0800 (PST) In-Reply-To: <1466587708.20111125164314@serebryakov.spb.ru> References: <1466587708.20111125164314@serebryakov.spb.ru> Date: Sat, 26 Nov 2011 09:51:29 +0800 X-Google-Sender-Auth: bWJFfnKBwIkGUj14dWIMEukqDfY Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: Testing 802.11n 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, 26 Nov 2011 01:51:30 -0000 2011/11/25 Lev Serebryakov : > =A0Latest HEAD (with all your changes), 2 days uptime, only messages in > =A0kernel log: > > wlan0: Ethernet address: f4:ec:38:a3:10:6d > ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA > ... > ath0: stuck beacon; resetting (bmiss count 4) > ar5212StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 Sweet. Which NIC(s) are you using again? > =A0On old code I've got "stuck beacon" every hour in idle and every 5 > =A0minutes under load. That's very likely due to the ANI changes I've been slowly porting over. I really would like someone who is interested in the radio side of things to pick up the ANI code as a bit of a personal research project. It's one of the areas of the atheros stuff which is actually well covered in the patent literature and I can help interested people out with it. There's a lot of cool stuff you can affect by tweaking the ANI related parameters (which are all just receive-side radio and baseband parameters to do with signal levels and signal trigger thresholds.) It's actually kind of fun. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Nov 26 06:28:11 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DACC1065670 for ; Sat, 26 Nov 2011 06:28:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id BA5F18FC12 for ; Sat, 26 Nov 2011 06:28:10 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5220988vbb.13 for ; Fri, 25 Nov 2011 22:28:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=FEdwQi/RX0H47HLlsd9dFmL6QiDIUxCgjCjubU874xA=; b=IRHsQbIG6A3Et9BZUVbSB/mU8usSp3eKKvkMrYDduuBdt8+DIqdh0zYQRTq8SuUX6T uj9aXZNfTpHUzujhYoOmHdinbQKGSr5H3cDdp+BCtujcZdFc4BsdxjtR9yCahVqrs8kA tbDRzWTOU3OFSaYZ08sA74TNCmE0dTY9S0IKQ= MIME-Version: 1.0 Received: by 10.52.33.69 with SMTP id p5mr35624353vdi.78.1322288889829; Fri, 25 Nov 2011 22:28:09 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Fri, 25 Nov 2011 22:28:09 -0800 (PST) In-Reply-To: <4ECFFB3C.16808.D76FB2F@andres.beek.mail.ee> References: <4ECFFB3C.16808.D76FB2F@andres.beek.mail.ee> Date: Sat, 26 Nov 2011 14:28:09 +0800 X-Google-Sender-Auth: hn5IaErA86Oqi6XxpPE5IKCIvmc Message-ID: From: Adrian Chadd To: Andres Beek Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Uanble to enable 802.11g chanels above 11 despite of the REGDOMAIN set 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, 26 Nov 2011 06:28:11 -0000 Just for you (and others) reference, just because you're overriding the regulatory domain with a specific value doesn't mean the NIC has all the calibration data you need for operation on those channels. For example, just because you can configure a NIC to be in the japan country code, doesn't instantly give you access to the two 4.9ghz channels. :-) There's more involved then just overriding the regulatory domain. Hence, if it's an AR5416 or later, we can easily inspect the EEPROM calibration/channel edge values and see what the NIC is configured for. It's possible your NIC has channel edges which exclude > channel 11. At which point you won't be able to use those frequencies without (further) breaking all kinds of potential legal issues. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Nov 26 07:21:23 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F1781065672; Sat, 26 Nov 2011 07:21:23 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id D78B48FC12; Sat, 26 Nov 2011 07:21:22 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:5974:a369:b987:bc4d]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 23B7E4AC1C; Sat, 26 Nov 2011 11:21:21 +0400 (MSK) Date: Sat, 26 Nov 2011 11:21:15 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <166458192.20111126112115@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <1466587708.20111125164314@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: Testing 802.11n X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org 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, 26 Nov 2011 07:21:23 -0000 Hello, Adrian. You wrote 26 =ED=EE=FF=E1=F0=FF 2011 =E3., 5:51:29: >> wlan0: Ethernet address: f4:ec:38:a3:10:6d >> ar5416PerCalibrationN: NF calibration didn't finish; delaying CCA >> ... >> ath0: stuck beacon; resetting (bmiss count 4) >> ar5212StopDmaReceive: dma failed to stop in 10ms >> AR_CR=3D0x00000024 >> AR_DIAG_SW=3D0x42000020 > Sweet. Which NIC(s) are you using again? AR9220 2.4Ghz only (TP-Link 2x2 Mini-PCI card) on server, 20Mhz channel, Intel 802.11g (yes, only g) client with WindowsXP. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sat Nov 26 20:32:25 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 302DB106564A for ; Sat, 26 Nov 2011 20:32:25 +0000 (UTC) (envelope-from andres.beek@mail.ee) Received: from mail4.trigger.ee (mail4.trigger.ee [212.107.53.8]) by mx1.freebsd.org (Postfix) with ESMTP id AA9A98FC0A for ; Sat, 26 Nov 2011 20:32:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail4.trigger.ee (Postfix) with ESMTP id 021F41270 for ; Sat, 26 Nov 2011 22:15:22 +0200 (EET) Received: by mail4.trigger.ee (Postfix, from userid 89) id B506F125E; Sat, 26 Nov 2011 22:15:22 +0200 (EET) MIME-Version: 1.0 From: "Andres Beek" To: "Adrian Chadd" Date: Sat, 26 Nov 2011 22:15:22 +0200 X-EdMessageId: 180a050b4b555d561955035c5858421d134f4b50506b5f54450e53594b10000a01055349000e0603454b43185b5a5d1e18594d1219260c0a5b124c4e0e3622243028244007585d5d11541c5c535f5e1e114c575383 Message-Id: <20111126201522.B506F125E@mail4.trigger.ee> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-wireless@freebsd.org" Subject: Re: Re: Uanble to enable 802.11g chanels above 11 despite of theREGDOMAIN set 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, 26 Nov 2011 20:32:25 -0000 Thank you Adrian for a advise. I will surely do what you asked me when I reach the computer we are talking about. Just wanted to add, that the NIC works very well under other OS's like MSWindows (several) and OpenBSD on the channel 13. For me it means, that it should be capable to work on channel 13 under FreeBSD too. Or not? AB ----- Algne kiri ----- Kellelt: Adrian Chadd Kuupäev: 26.11.2011 8:28:09 Kellele: Andres Beek Pealkiri: Re: Uanble to enable 802.11g chanels above 11 despite of theREGDOMAIN set > Just for you (and others) reference, just because you're > overriding > the regulatory domain with a specific value doesn't mean the > NIC has > all the calibration data you need for operation on those > channels. > > For example, just because you can configure a NIC to be in the > japan > country code, doesn't instantly give you access to the two > 4.9ghz > channels. :-) > > There's more involved then just overriding the regulatory > domain. > Hence, if it's an AR5416 or later, we can easily inspect the > EEPROM > calibration/channel edge values and see what the NIC is > configured > for. It's possible your NIC has channel edges which exclude > > channel > 11. At which point you won't be able to use those frequencies > without > (further) breaking all kinds of potential legal issues. > > Thanks, > > > > Adrian ---mail.ee reklaam--- Kui sul pole vaja, siis ära vaata :) Kui sul ON vaja, siis vaata www.1credit.ee