From owner-freebsd-wireless@FreeBSD.ORG Sun Aug 7 11:29:14 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE96C1065673 for ; Sun, 7 Aug 2011 11:29:14 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by mx1.freebsd.org (Postfix) with ESMTP id 97B7D8FC08 for ; Sun, 7 Aug 2011 11:29:13 +0000 (UTC) Received: from localhost ([92.156.102.118]) by mwinf5d38 with ME id HNzA1h0022ZGTpo03NzAqq; Sun, 07 Aug 2011 12:59:11 +0200 X-ME-engine: default Message-ID: <4E3E6FFE.90101@orange.fr> Date: Sun, 07 Aug 2011 12:59:10 +0200 From: Claude Buisson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.18) Gecko/20110622 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Is Atheros AR9285 usable in AP mode ? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: clbuisson@orange.fr List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2011 11:29:15 -0000 Hi, I try to configure a new system as an access point, with: ath0: mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 on pci2 ath0: AR9285 mac 192.2 RF5133 phy 14.0 ath0@pci0:2:0:0: class=0x028000 card=0x10891a3b chip=0x002b168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR9285 Wireless Network Adapter (PCI-Express)' class = network According to the sticker, it is a: AzureWave AW-NE785 ATH-5B95 I get a lot of: ath0: stuck beacon: resetting (bmiss count 4) I set hw.ath.bstuck=32 but the stuck beacon messages continue flowing, and I suffer from packet loss / lost association of the test station. This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). TIA, CBu P.S.: to prevent a number of useless questions (as seen when googling): I live in the country, with _no_ other wireless network in the vicinity :-) From owner-freebsd-wireless@FreeBSD.ORG Sun Aug 7 12:27:45 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0894D106567C for ; Sun, 7 Aug 2011 12:27:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id B6BAC8FC21 for ; Sun, 7 Aug 2011 12:27:44 +0000 (UTC) Received: by gyd10 with SMTP id 10so1373906gyd.13 for ; Sun, 07 Aug 2011 05:27:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=L4ypqi/vAZGiEcZpgXHyGtArRHdxlBeTEE+lzByREIE=; b=LqEz9wGAWL/1hpNmL2KVtqp5GrEEC2kLSJjp/fzDU9NoMysajncd67AAxwMZdY9gfl +L/uxKHOQPPRgEkxlsiZRMsdtdeTPBdm+LHAj8EpKY+SVhM8G7HEFaH7cu9aIKXOODas y1mv8bAUtMdpi2RVrn5+160unX35YZ9aW0jcw= MIME-Version: 1.0 Received: by 10.150.225.1 with SMTP id x1mr4938313ybg.272.1312720062131; Sun, 07 Aug 2011 05:27:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Sun, 7 Aug 2011 05:27:42 -0700 (PDT) In-Reply-To: <4E3E6FFE.90101@orange.fr> References: <4E3E6FFE.90101@orange.fr> Date: Sun, 7 Aug 2011 20:27:42 +0800 X-Google-Sender-Auth: c8UFMcQLufWGange4w-eNEElH60 Message-ID: From: Adrian Chadd To: clbuisson@orange.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2011 12:27:45 -0000 I'll try my AR9285 in AP mode and let you know how it goes. Adrian On 7 August 2011 18:59, Claude Buisson wrote: > Hi, > > I try to configure a new system as an access point, with: > > ath0: mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 on pc= i2 > ath0: AR9285 mac 192.2 RF5133 phy 14.0 > > ath0@pci0:2:0:0: class=3D0x028000 card=3D0x10891a3b chip=3D0x002b168c rev= =3D0x01 > hdr=3D0x00 > =A0 =A0 vendor =A0 =A0 =3D 'Atheros Communications Inc.' > =A0 =A0 device =A0 =A0 =3D 'AR9285 Wireless Network Adapter (PCI-Express)= ' > =A0 =A0 class =A0 =A0 =A0=3D network > > According to the sticker, it is a: > > AzureWave AW-NE785 ATH-5B95 > > I get a lot of: > > =A0ath0: stuck beacon: resetting (bmiss count 4) > > I set =A0hw.ath.bstuck=3D32 > > but the stuck beacon messages continue flowing, and I suffer from packet > loss / > lost association of the test station. > > This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). > > TIA, > > CBu > > P.S.: to prevent a number of useless questions (as seen when googling): I > live > in the country, with _no_ other wireless network in the vicinity :-) > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" > From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 09:49: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 54B9A106566C for ; Mon, 8 Aug 2011 09:49:39 +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 02ECE8FC1B for ; Mon, 8 Aug 2011 09:49:38 +0000 (UTC) Received: by vxh11 with SMTP id 11so1663289vxh.13 for ; Mon, 08 Aug 2011 02:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=ZKBGNLmL6K8BAbyty2UDKL9qPt3Uttsorn/E7DVrC1A=; b=I0+aXzasqLY25KDXY36Ed8g78h33Vu7YUdmuPNeedjMYV+dmtQDud30mYGFYOlvdQC C0Miz8m7q+20myJJml8u8nQt9Sc6qlCLGDeKYZHCh/NrcErC2F/uPU8ky3LJkIOCyPza 92PLsgrAkw37EWmKL0Er8WmBLAxKRkUqIS244= MIME-Version: 1.0 Received: by 10.52.95.163 with SMTP id dl3mr4978233vdb.229.1312796978268; Mon, 08 Aug 2011 02:49:38 -0700 (PDT) Received: by 10.52.157.193 with HTTP; Mon, 8 Aug 2011 02:49:38 -0700 (PDT) Date: Mon, 8 Aug 2011 17:49:38 +0800 Message-ID: From: Adrian Chadd To: freebsd-arch@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: [RFQ] net80211 regulatory changes: what I'd like to see before 9.0-RELEASE 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, 08 Aug 2011 09:49:39 -0000 Hi all, I've been knee-deep in the net80211 regulatory code (among other things) and after doing some regulatory DFS related work, there's a couple of short-comings I'd like to try and fix before 9.0-RELEASE is fixed. Firstly, the current way that regulatory domains in net80211 are setup is very Atheros-specific. Specifically, the notion of "SKU" as the regulatory domain. net80211 knows about a small subset of SKU values which mostly map to what the Atheros driver/HAL code uses to figure out the regulatory domain. But it makes it impossible to extend the regulatory domain database (regdomain.xml) to encompass the different regulatory domains that exist for different countries. For example, if I wanted to add an Australia specific regulatory domain (which would include information different to the "ROW" (rest-of-world) regulatory domain it currently defaults to using), I'd have to teach net80211 about a new SKU (call it "APAC".) But since the Atheros HAL doesn't have an Australia specific SKU value, I'd have to choose a value which didn't conflict. Since the regdomain.xml database is indexed by the SKU value, I can't have more than one regulatory domain with the same SKU. Since net80211/atheros rejects SKUs it doesn't know about, I'd have to add each new (fake) SKU to both in order to get things working. What I'd like to do is modify the regdomain.xml database, net80211 and ifconfig to use the ISOCC (ISO country code) numeric value as the primary key. This means an ABI change, as the primary key won't be an SKU any longer, but keep the SKU as a field so people using atheros devices can see what's going on. Once that's done, I/others can then spend the next few months slowly adding updated entries to regdomain.xml that reflect what each of the current country regulatory requirements are. The second change would be brought in with the first change. I'd like to add another field to regdomain.xml which includes what the radar requirements are - specifically for now, whether it's FCC, Japan, ETSI. The atheros driver seems to support combinations of the above when using one of the world regulatory domains (FCC and ETSI together) so it likely should be some more flags. I can knock up some public code in the next few days to submit for review. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 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 A27F5106567C for ; Mon, 8 Aug 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 880608FC14 for ; Mon, 8 Aug 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 p78B7LBB078724 for ; Mon, 8 Aug 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 p78B7KEP078722 for freebsd-wireless@FreeBSD.org; Mon, 8 Aug 2011 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Aug 2011 11:07:20 GMT Message-Id: <201108081107.p78B7KEP078722@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, 08 Aug 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/157449 wireless [ath] MAC address conflict causes system to freeze o kern/157243 wireless [ath] investigate beacon TX (AP) / RX (STA) when under o kern/156904 wireless [ath] AR9285 antenna diversity algorithm is buggy and o kern/156884 wireless [ath] ath instablity o kern/156327 wireless [bwn] bwn driver causes 20%-50% packet loss o kern/156322 wireless [wpi] no ahdemo support for if_wpi o kern/156321 wireless [ath] ahdemo doesn't work with if_ath o kern/155498 wireless [ral] ral(4) needs to be resynced with OpenBSD's to ga o kern/155100 wireless [ath] ath driver on busy channel: "stuck beacon" p kern/154598 wireless [ath] Atheros 5424/2424 can't connect to WPA network o kern/154567 wireless [ath] ath(4) lot of bad series(0) o kern/154327 wireless [ath] AR5416 in station mode hangs when transmitting f o kern/154284 wireless [ath] Modern ath wifi cards (such as AR9285) have miss o kern/154153 wireless [ath] AR5213 + MIPS + WPA group key packet corruption o kern/153448 wireless [ath] ath networking device loses association after a o kern/152750 wireless [ath] ath0 lot of bad series hwrate o kern/151198 wireless [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: o kern/149786 wireless [bwn] bwn on Dell Inspiron 1150: connections stall o kern/149516 wireless [ath] ath(4) hostap with fake MAC/BSSID results in sta o kern/149373 wireless [realtek/atheros]: None of my network card working o kern/149307 wireless [ath] Doesn't work Atheros 9285 o kern/148322 wireless [ath] Triggering atheros wifi beacon misses in hostap o kern/148317 wireless [ath] FreeBSD 7.x hostap memory leak in net80211 or At o kern/148112 wireless [ath] Atheros 9285 cannot register with wifi AP (timeo o kern/148078 wireless [ath] wireless networking stops functioning o kern/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o kern/143868 wireless [ath] [patch] [request] allow Atheros watchdog timeout o conf/143079 wireless hostapd(8) startup missing multi wlan functionality o kern/140796 wireless [ath] [panic] Cannot attach (unable to attach hardware p kern/140567 wireless [ath] [patch] ath is not worked on my notebook PC o kern/140245 wireless [ath] [panic] Kernel panic during network activity on o kern/137592 wireless [ath] panic - 7-STABLE (Aug 7, 2009 UTC) crashes on ne p bin/137484 wireless [patch] Integer overflow in wpa_supplicant(8) base64 e o kern/136943 wireless [wpi] [lor] wpi0_com_lock / wpi0 o kern/136836 wireless [ath] atheros card stops functioning after about 12 ho o kern/132722 wireless [ath] Wifi ath0 associates fine with AP, but DHCP or I o bin/131549 wireless ifconfig(8) can't clear 'monitor' mode on the wireless o kern/126475 wireless [ath] [panic] ath pcmcia card inevitably panics under o kern/125721 wireless [ath] Terrible throughput/high ping latency with Ubiqu o kern/125617 wireless [ath] [panic] ath(4) related panic o kern/125501 wireless [ath] atheros cardbus driver hangs o kern/125332 wireless [ath] [panic] crash under any non-tiny networking unde o kern/124767 wireless [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 wireless [ieee80211] net80211 discards power-save queue packets o docs/120456 wireless ath(4) needs to specify requirement on wlan_scan_sta o kern/119513 wireless [ath] [irq] inserting dlink dwl-g630 wireless card res o kern/116747 wireless [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile f kern/105348 wireless [ath] ath device stopps TX 50 problems total. From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 13:31:30 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E88E106566B; Mon, 8 Aug 2011 13:31: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 06EF68FC13; Mon, 8 Aug 2011 13:31:29 +0000 (UTC) Received: by vws18 with SMTP id 18so2667301vws.13 for ; Mon, 08 Aug 2011 06:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=csc12jsJsRVrzGDSwkAZmyPgTLQj5Tkma4Mwnl+betg=; b=mXzx55RV9FzAojYXniBfZWoeR2aKOLjBI/c960lg4C81QMdh0DhUQiYEkHkWzYp1LY rQXJymIA9zBOkUNwfiyO2u5eXhSG84K/avVeIoentyf38qXLVz9m4CSQ4lO+1hXCehoa 6LVIKyKXP+Ot2QU+5A/n/ynfusM6Gta12ypM4= MIME-Version: 1.0 Received: by 10.52.94.139 with SMTP id dc11mr3513467vdb.28.1312810289304; Mon, 08 Aug 2011 06:31:29 -0700 (PDT) Received: by 10.52.157.193 with HTTP; Mon, 8 Aug 2011 06:31:29 -0700 (PDT) In-Reply-To: <201108081525.21563.bschmidt@freebsd.org> References: <201108081525.21563.bschmidt@freebsd.org> Date: Mon, 8 Aug 2011 21:31:29 +0800 Message-ID: From: Adrian Chadd To: bschmidt@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFQ] net80211 regulatory changes: what I'd like to see before 9.0-RELEASE 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, 08 Aug 2011 13:31:30 -0000 On 8 August 2011 21:25, Bernhard Schmidt wrote: > We've discussed this on IRC already, though to mention it again what I > > really like to get rid of is all the SKU stuff from the regdomain.xml. This > is > > specific to ath(4) and ath(4) only. Yup, I agree. ath/ath_hal can export a default country code for the given SKU. The only reason I'd maintain the SKU is so tools that currently expose that value keep working (ie, to read the EEPROM value from the NIC.) But it won't be used anywhere else for configuration/ > Using the isocc as the index is correct and really the way to go, but it > > might not serve some corner cases that well. Imagine someone wants > > to set a regdomain and not a country (we DO support this currently), > > how do want to express that in regdomain.xml? Adding a dummy isocc > > for each regdomain (FCC, ETSI, ..)? Maybe we should use (isocc,regdomain) > > as the index, so it is possible to use issoc=0,regdomain={FCC,ETSI,..} > > for the mentioned case. You'd just create or use a NONE ISOCC, and set your regulatory domain to whatever. The ISO CC is just a key to find a default regulatory domain. Some countries may share the same regulatory domain because they (for example) implement 100% of the USA FCC rules. But many won't, so I think we'll likely see something more like CRDA where each country gets enumerated. There'll also (for now) be custom SKUs/regulatory domains - specifically to drive the net80211ath/ath_hal GSM configuration (900mhz.) net80211 handles 900mhz frequencies. The SKU choice "tells" the ath/hal code to use the relevant channel mapping. That's the main reason I don't want to yet get rid of SKUs. I can worry about that part later. Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 13:33: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 7B22E106566C; Mon, 8 Aug 2011 13:33: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 F37208FC08; Mon, 8 Aug 2011 13:33:51 +0000 (UTC) Received: by vws18 with SMTP id 18so2669974vws.13 for ; Mon, 08 Aug 2011 06:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=U2bjp+SweJu98fJkfFXHlogIAw794d1M8WMqa8n2j0Q=; b=HtIR+05V+Ea7+YPabtQTbiqpKdXb07FLu2b/NWFKSWeJ77DN2waSUWRFUxnRdh714B ta+Sp48QUaUabNg8o5Ldj0Z6M2LIQZaGjMviWvCF7YYKIzGChdrNDniYL7CcTawC560x +0Ai/ru04VgW6Jxe9e62UMzWE+fO6ypLeGOHY= MIME-Version: 1.0 Received: by 10.52.27.36 with SMTP id q4mr5690701vdg.296.1312810431344; Mon, 08 Aug 2011 06:33:51 -0700 (PDT) Received: by 10.52.157.193 with HTTP; Mon, 8 Aug 2011 06:33:51 -0700 (PDT) In-Reply-To: References: <201108081525.21563.bschmidt@freebsd.org> Date: Mon, 8 Aug 2011 21:33:51 +0800 Message-ID: From: Adrian Chadd To: bschmidt@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFQ] net80211 regulatory changes: what I'd like to see before 9.0-RELEASE 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, 08 Aug 2011 13:33:52 -0000 But to be clear - the SKU will only be used for that. Regulatory decisions will be based on the ISOCC and regdomain entry chosen. How about instead, I: * maintain regdomain.xml entries by name (eg FCC, ETSI, etc); * index regulatory domain by a regdomain "key", which is just an integer value which only has meaning in regdomain.xml - ie, replace how sku values are used in regdomain.xml (as the key) with "regdomain value"; * isocc entries in regdomain.xml have a "default" regulatory domain entry, as they do now. That way you can have multiple regdomain entries and you can choose whichever you want? Adrian On 8 August 2011 21:31, Adrian Chadd wrote: > On 8 August 2011 21:25, Bernhard Schmidt wrote: > >> We've discussed this on IRC already, though to mention it again what I >> >> really like to get rid of is all the SKU stuff from the regdomain.xml. This >> is >> >> specific to ath(4) and ath(4) only. > > Yup, I agree. ath/ath_hal can export a default country code for the given SKU. > The only reason I'd maintain the SKU is so tools that currently expose > that value keep working (ie, to read the EEPROM value from the NIC.) > > But it won't be used anywhere else for configuration/ > >> Using the isocc as the index is correct and really the way to go, but it >> >> might not serve some corner cases that well. Imagine someone wants >> >> to set a regdomain and not a country (we DO support this currently), >> >> how do want to express that in regdomain.xml? Adding a dummy isocc >> >> for each regdomain (FCC, ETSI, ..)? Maybe we should use (isocc,regdomain) >> >> as the index, so it is possible to use issoc=0,regdomain={FCC,ETSI,..} >> >> for the mentioned case. > > You'd just create or use a NONE ISOCC, and set your regulatory domain > to whatever. > > The ISO CC is just a key to find a default regulatory domain. Some > countries may share the same regulatory domain because they (for > example) implement 100% of the USA FCC rules. But many won't, so I > think we'll likely see something more like CRDA where each country > gets enumerated. > > There'll also (for now) be custom SKUs/regulatory domains - > specifically to drive the net80211ath/ath_hal GSM configuration > (900mhz.) net80211 handles 900mhz frequencies. The SKU choice "tells" > the ath/hal code to use the relevant channel mapping. That's the main > reason I don't want to yet get rid of SKUs. I can worry about that > part later. > > > > Adrian > From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 13:56: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 6EC231065689; Mon, 8 Aug 2011 13:56:58 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id B91BC8FC25; Mon, 8 Aug 2011 13:56:57 +0000 (UTC) Received: by eye4 with SMTP id 4so2859368eye.31 for ; Mon, 08 Aug 2011 06:56:56 -0700 (PDT) Received: by 10.204.142.131 with SMTP id q3mr1633363bku.51.1312809955670; Mon, 08 Aug 2011 06:25:55 -0700 (PDT) Received: from jessie.localnet (p5B2EDD35.dip0.t-ipconnect.de [91.46.221.53]) by mx.google.com with ESMTPS id n11sm1646245bkd.47.2011.08.08.06.25.54 (version=SSLv3 cipher=OTHER); Mon, 08 Aug 2011 06:25:54 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Adrian Chadd Date: Mon, 8 Aug 2011 15:25:21 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.2; i686; ; ) References: In-Reply-To: X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201108081525.21563.bschmidt@freebsd.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [RFQ] net80211 regulatory changes: what I'd like to see before 9.0-RELEASE X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@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: Mon, 08 Aug 2011 13:56:58 -0000 On Monday, August 08, 2011 11:49:38 Adrian Chadd wrote: > Hi all, > > I've been knee-deep in the net80211 regulatory code (among other > things) and after doing some regulatory DFS related work, there's a > couple of short-comings I'd like to try and fix before 9.0-RELEASE is > fixed. > > Firstly, the current way that regulatory domains in net80211 are setup > is very Atheros-specific. Specifically, the notion of "SKU" as the > regulatory domain. net80211 knows about a small subset of SKU values > which mostly map to what the Atheros driver/HAL code uses to figure > out the regulatory domain. But it makes it impossible to extend the > regulatory domain database (regdomain.xml) to encompass the different > regulatory domains that exist for different countries. For example, if > I wanted to add an Australia specific regulatory domain (which would > include information different to the "ROW" (rest-of-world) regulatory > domain it currently defaults to using), I'd have to teach net80211 > about a new SKU (call it "APAC".) But since the Atheros HAL doesn't > have an Australia specific SKU value, I'd have to choose a value which > didn't conflict. > > Since the regdomain.xml database is indexed by the SKU value, I can't > have more than one regulatory domain with the same SKU. Since > net80211/atheros rejects SKUs it doesn't know about, I'd have to add > each new (fake) SKU to both in order to get things working. > > What I'd like to do is modify the regdomain.xml database, net80211 and > ifconfig to use the ISOCC (ISO country code) numeric value as the > primary key. This means an ABI change, as the primary key won't be an > SKU any longer, but keep the SKU as a field so people using atheros > devices can see what's going on. > > Once that's done, I/others can then spend the next few months slowly > adding updated entries to regdomain.xml that reflect what each of the > current country regulatory requirements are. > > The second change would be brought in with the first change. I'd like > to add another field to regdomain.xml which includes what the radar > requirements are - specifically for now, whether it's FCC, Japan, > ETSI. The atheros driver seems to support combinations of the above > when using one of the world regulatory domains (FCC and ETSI together) > so it likely should be some more flags. > > I can knock up some public code in the next few days to submit for review. We've discussed this on IRC already, though to mention it again what I really like to get rid of is all the SKU stuff from the regdomain.xml. This is specific to ath(4) and ath(4) only. Using the isocc as the index is correct and really the way to go, but it might not serve some corner cases that well. Imagine someone wants to set a regdomain and not a country (we DO support this currently), how do want to express that in regdomain.xml? Adding a dummy isocc for each regdomain (FCC, ETSI, ..)? Maybe we should use (isocc,regdomain) as the index, so it is possible to use issoc=0,regdomain={FCC,ETSI,..} for the mentioned case. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 18:07: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 6D3A31065680 for ; Mon, 8 Aug 2011 18:07:25 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id EA7248FC1B for ; Mon, 8 Aug 2011 18:07:24 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 2736E4AC1C for ; Mon, 8 Aug 2011 22:07:23 +0400 (MSD) Date: Mon, 8 Aug 2011 22:07:20 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1151152206.20110808220720@serebryakov.spb.ru> To: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 08 Aug 2011 18:07:25 -0000 Hello, Freebsd-wireless. I have host-based AP, which is running FreeBSD 8.2-STABLE (i386) and equipped with Senao EMP 8602 Plus-S Mini-PCI WiFi card. It is Atheros 5413 based 600mW card: ath0: mem 0xa0060000-0xa006ffff irq 15 at device 17.0 on pci0 ath0: [ITHREAD] ath0: AR5413 mac 10.4 RF5413 phy 6.1 I'm using it with 10dBi omnidirectional antenna in 802.11g (2.4Ghz) standard. It worked well some time ago, but now its performance is horrible. Main clients are Intel-based notebooks with Intel 3945ABG cards, Windows-based. Typical "Real" (file copy) bandwidth with only one client active is 500-600KiB/s. Windows shows "Excellent" signal level and 54Mbit. InSSIDer (Windows-based WiFi monitoring software) shows RSSI between -50 and -40 (dBm)m but I can not trust it, as it shows some very distant APs with RSSI 100-120 (yes, +100 - +120), and it is nonsense. I've bring additional notebook with Linux and Kismet installed. Kismet shows, that my AP oscillate between -80 and -40 dBm RSSI permanently, even if here is connected (and doenloading!) client connected. Signal level jumps up and down, and often Kismet receive frames with broken SSID (one-two chars are replaced by other). "ifconfig wlan0 list sta" on AP shows something like this (running in cycle with "sleep 1", one client copy big file, 600-700KiB/s): 00:18:de:08:e8:1d 1 9 24M 14.5 0 23084 35488 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 18M 11.0 0 23612 39952 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 13.5 0 24116 44320 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 13.0 0 24688 49104 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 13.0 0 25341 54720 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 13.0 0 25813 58640 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 54M 11.0 0 26092 61104 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 54M 12.0 0 26782 1424 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 54M 14.0 0 27241 5312 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 14.0 0 27615 8496 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 12.5 0 27872 10768 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 14.0 0 28302 14432 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 13.5 0 28912 19600 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 18M 14.0 0 29501 24624 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 13.5 0 30305 31440 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 13.5 0 31971 45584 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 36M 13.0 0 32429 49472 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 11M 12.5 0 32758 52288 EPS AQE RSN W= ME Also, tcpdump shows, that AP announce only speeds up to 18Mbit (tag number 1 in beacon frame, list of supported speeds -- 1, 2, 5.5, 11, 6, 9, 12, 18). Here is my setting of AP: ifconfig_wlan0=3D"inet 192.168.135.1 netmask 255.255.255.0 mode 11g channel= 9 ssid home.serebryakov.spb.ru country ru regdomain row txpower 30" So, Questions are: (1) Hopping signal strength and total terrible WiFi network performance -- is it broken hardware or something strange in FreeBSD code? (2) Why card announce only 18Mbit, but not more? (3) What "txpower" setting means? dBm is relative unit. My 600mW card lists "30" as max, and simple notebook Intel card lists "30" as max too. Is it relative to max power of card (100mW for standard cards, 400-600-1000mW for high-power "procider-grade" cards from Ubiquiti and other such wendors, like Senao) or 1W or 100mW or what? Manual pages didn't give answer. (4) What units are uses for RSSI output in "ifconfig list sta"? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 18:11: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 DEE4D1065670 for ; Mon, 8 Aug 2011 18:11:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9D59A8FC0A for ; Mon, 8 Aug 2011 18:11:05 +0000 (UTC) Received: by gxk28 with SMTP id 28so934103gxk.13 for ; Mon, 08 Aug 2011 11:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6+wcmqKTSyOl6CZTKN2zBLPLRuYGRepdzulsOBhK39M=; b=ZTKJbGyN/iPUX/BLjgyXKao26MH0pAPCwpMNFuE5QSiklMcV0TJlJhzSkEYE6zFBa6 AyYuIPGEhfbqlm4pK3inMUUV+g4suoIxh5CbArmOrKqPOrW+vZUfIk1CoW19AEwygMYI J5QaFCwOcwUZvAF9oAsvJxwScSR8JLBIatC8U= MIME-Version: 1.0 Received: by 10.150.72.23 with SMTP id u23mr5988346yba.443.1312827063051; Mon, 08 Aug 2011 11:11:03 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Mon, 8 Aug 2011 11:11:03 -0700 (PDT) In-Reply-To: <1151152206.20110808220720@serebryakov.spb.ru> References: <1151152206.20110808220720@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 02:11:03 +0800 X-Google-Sender-Auth: 3PeLMa2ae7yrEB1ypEV9e_1bbN4 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 08 Aug 2011 18:11:05 -0000 Hi! To answer your questions (and ask one of my own): Can you verify when "bad" and "good" performance occured? Can you narrow it down to FreeBSD versions in particular? 1) It's hard to tell from the info you've given, please let me know why/when it worked well some time ago. This is most important. 2) not sure, it's late and I'm not knee-deep in the beacon frame format. But I bet it's ok? 3) txpower is in dBm units, based on what the card is supposed to be putting out of the antenna socket, before antennas 4) RSSI is in "dB above noise floor". Adrian 2011/8/9 Lev Serebryakov : > Hello, Freebsd-wireless. > > =A0I have host-based AP, which is running FreeBSD 8.2-STABLE (i386) and > equipped with Senao EMP 8602 Plus-S Mini-PCI WiFi card. It is Atheros > 5413 based 600mW card: > > ath0: mem 0xa0060000-0xa006ffff irq 15 at device 17.0 on p= ci0 > ath0: [ITHREAD] > ath0: AR5413 mac 10.4 RF5413 phy 6.1 > > =A0I'm using it with 10dBi omnidirectional antenna in 802.11g (2.4Ghz) > standard. > > =A0It worked well some time ago, but now its performance is horrible. > > =A0Main clients are Intel-based notebooks with Intel 3945ABG cards, > Windows-based. > > =A0Typical "Real" (file copy) bandwidth with only one client active is > 500-600KiB/s. Windows shows "Excellent" signal level and 54Mbit. > InSSIDer (Windows-based WiFi monitoring software) shows RSSI between > -50 and -40 (dBm)m but I can not trust it, as it shows some very > distant APs with RSSI 100-120 (yes, +100 - +120), and it is nonsense. > > =A0I've bring additional notebook with Linux and Kismet installed. > Kismet shows, that my AP oscillate between -80 and -40 dBm RSSI > permanently, even if here is connected (and doenloading!) client > connected. Signal level jumps up and down, and often Kismet receive > frames with broken SSID (one-two chars are replaced by other). > > =A0"ifconfig wlan0 list sta" on AP shows something like this (running in > cycle with "sleep 1", one client copy big file, 600-700KiB/s): > > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 14.5 =A0 =A00 =A023084 =A03548= 8 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A018M 11.0 =A0 =A00 =A023612 =A03995= 2 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 13.5 =A0 =A00 =A024116 =A04432= 0 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 13.0 =A0 =A00 =A024688 =A04910= 4 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 13.0 =A0 =A00 =A025341 =A05472= 0 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 13.0 =A0 =A00 =A025813 =A05864= 0 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A054M 11.0 =A0 =A00 =A026092 =A06110= 4 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A054M 12.0 =A0 =A00 =A026782 =A0 142= 4 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A054M 14.0 =A0 =A00 =A027241 =A0 531= 2 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 14.0 =A0 =A00 =A027615 =A0 849= 6 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 12.5 =A0 =A00 =A027872 =A01076= 8 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 14.0 =A0 =A00 =A028302 =A01443= 2 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 13.5 =A0 =A00 =A028912 =A01960= 0 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A018M 14.0 =A0 =A00 =A029501 =A02462= 4 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 13.5 =A0 =A00 =A030305 =A03144= 0 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A024M 13.5 =A0 =A00 =A031971 =A04558= 4 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A036M 13.0 =A0 =A00 =A032429 =A04947= 2 EPS =A0AQE =A0 =A0 RSN WME > 00:18:de:08:e8:1d =A0 =A01 =A0 =A09 =A011M 12.5 =A0 =A00 =A032758 =A05228= 8 EPS =A0AQE =A0 =A0 RSN WME > > =A0Also, tcpdump shows, that AP announce only speeds up to 18Mbit (tag > number 1 in beacon frame, list of supported speeds -- 1, 2, 5.5, 11, > 6, 9, 12, 18). > > =A0Here is my setting of AP: > > ifconfig_wlan0=3D"inet 192.168.135.1 netmask 255.255.255.0 mode 11g chann= el 9 ssid home.serebryakov.spb.ru country ru regdomain row txpower 30" > > =A0So, Questions are: > > (1) Hopping signal strength and total terrible WiFi network > =A0 =A0performance -- is it broken hardware or something strange in > =A0 =A0FreeBSD code? > > (2) Why card announce only 18Mbit, but not more? > > (3) What "txpower" setting means? dBm is relative unit. My 600mW card > =A0 =A0lists "30" as max, and simple notebook Intel card lists "30" as > =A0 =A0max too. Is it relative to max power of card (100mW for standard > =A0 =A0cards, 400-600-1000mW for high-power "procider-grade" cards from > =A0 =A0Ubiquiti and other such wendors, like Senao) or 1W or 100mW or wha= t? > =A0 =A0Manual pages didn't give answer. > > (4) What units are uses for RSSI output in "ifconfig list sta"? > > -- > // Black Lion AKA Lev Serebryakov > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" > From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 18:21: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 D2ACF106564A; Mon, 8 Aug 2011 18:21:11 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9864A8FC15; Mon, 8 Aug 2011 18:21:11 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 730794AC1C; Mon, 8 Aug 2011 22:21:10 +0400 (MSD) Date: Mon, 8 Aug 2011 22:21:08 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1832976164.20110808222108@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <1151152206.20110808220720@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 08 Aug 2011 18:21:11 -0000 Hello, Adrian. You wrote 8 =E0=E2=E3=F3=F1=F2=E0 2011 =E3., 22:11:03: > Can you verify when "bad" and "good" performance occured? Can you > narrow it down to FreeBSD versions in particular? I'm afraid, that will be difficult. I could try 8.2-RELEASE and even 8.0-RELEASE (but I'll need to build NanoBSD images for them). I'm sure, that 7-STABLE gives me 3.2MiB/s regularly, but noteboks were changed from these times. I'll try to build 7-STABLE NanoBSD image, but it will need some more effort, as config files changes from these times :) > 2) not sure, it's late and I'm not knee-deep in the beacon frame > format. But I bet it's ok? It is "not accurate enough" :) Many APs, seen in my apartments, announce all speeds up to 54Mb :) But, of course, It is practically Ok ti= ll clients can connect on higher speeds. > 3) txpower is in dBm units, based on what the card is supposed to be > putting out of the antenna socket, before antennas Ok, so 30 means 1:1 (according to dBm definition) and means "full power". --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 18:26:55 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEB84106564A for ; Mon, 8 Aug 2011 18:26:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0DB8FC08 for ; Mon, 8 Aug 2011 18:26:55 +0000 (UTC) Received: by gyd10 with SMTP id 10so2049572gyd.13 for ; Mon, 08 Aug 2011 11:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=T2cz0v0xLIgycVnmwOyG+UmfnsvsmY9MPOL+wGhpIqY=; b=ZXK0DcW9O1gYQK2EMnQJeNqqOc4/y/abuHtqmdWQqTLVHuMYR7YLKo7DfT+SpYJgPu gdQtRjghE7HawmRg5+ch8YCQ+Kdx1c81KxdnKR6l9VIqv4ldWUVYVG23D+wbuzD+rg1B 82VVxG/UFJsVDXahlDxchS7bI3zQ1V0HbdXoU= MIME-Version: 1.0 Received: by 10.150.74.3 with SMTP id w3mr5416626yba.329.1312828014873; Mon, 08 Aug 2011 11:26:54 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Mon, 8 Aug 2011 11:26:54 -0700 (PDT) In-Reply-To: <1832976164.20110808222108@serebryakov.spb.ru> References: <1151152206.20110808220720@serebryakov.spb.ru> <1832976164.20110808222108@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 02:26:54 +0800 X-Google-Sender-Auth: MK98MK-keY6BViP585OxvzkDhQ8 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 08 Aug 2011 18:26:55 -0000 2011/8/9 Lev Serebryakov : > Hello, Adrian. > You wrote 8 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 22:11:03: > >> Can you verify when "bad" and "good" performance occured? Can you >> narrow it down to FreeBSD versions in particular? > =9A I'm afraid, that will be difficult. I could try 8.2-RELEASE and > =9Aeven 8.0-RELEASE (but I'll need to build NanoBSD images for them). > =9AI'm sure, that 7-STABLE gives me 3.2MiB/s regularly, but noteboks > =9Awere changed from these times. I'll try to build 7-STABLE NanoBSD > =9Aimage, but it will need some more effort, as config files changes from > =9Athese times :) Hi, That's definitely required knowledge. 8.0-RELEASE is a good starting point. I'm afraid it's going to be difficult for me to narrow down what's changed without you doing a bit of legwork to find which kernel version(s) introduced the performance regression. Once we narrow that down, I'll fix it. :) Please keep everything else the same though, including the laptop. :) >> 2) not sure, it's late and I'm not knee-deep in the beacon frame >> format. But I bet it's ok? > =9AIt is "not accurate enough" :) Many APs, seen in my apartments, > =9Aannounce all speeds up to 54Mb :) But, of course, It is practically Ok= till > =9Aclients can connect on higher speeds. Hm, that's odd. The 11b rates should show up (1 -> 11), the rest are 11g rates. I can't think of why the AP wouldn't advertise all 11g rates, but then, I haven't gone digging in that code lately. >> 3) txpower is in dBm units, based on what the card is supposed to be >> putting out of the antenna socket, before antennas > =9AOk, so 30 means 1:1 (according to dBm definition) and means "full > =9Apower". Well, some cards "lie". You program in x dBm, you get x+constant dBm. That's how so high powered cards work - you program in some lower value that fits inside regulatory limits (say, 23dBm) and you then get (say) a +6 dBm boost no matter what you program in. So a 23 dBm txpower would equal 29dBm. 0dBm txpower would equal 6dBm. etc, etc. The only real way to know is a spectrum analyser. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 8 21:03:46 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17E4D1065672; Mon, 8 Aug 2011 21:03:46 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 93B6E8FC14; Mon, 8 Aug 2011 21:03:45 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 2B20E4AC1C; Tue, 9 Aug 2011 01:03:44 +0400 (MSD) Date: Tue, 9 Aug 2011 01:03:42 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <693584315.20110809010342@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <1151152206.20110808220720@serebryakov.spb.ru> <1832976164.20110808222108@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 08 Aug 2011 21:03:46 -0000 Hello, Adrian. You wrote 8 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 22:26:54: > That's definitely required knowledge. 8.0-RELEASE is a good starting poin= t. > I'm afraid it's going to be difficult for me to narrow down what's > changed without you doing a bit of legwork to find which kernel > version(s) introduced the performance regression. > Once we narrow that down, I'll fix it. :) > Please keep everything else the same though, including the laptop. :) It seems, that 8.0-RELEASE behaves slightly different from very fresh 8-STABLE, but I can not say that it is much better. It is output from `list sta' when notebook (client) is placed exactly the same point as previous experiment: 00:18:de:08:e8:1d 1 9 36M 17.5 0 54585 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 36M 16.0 0 55126 46112 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 36M 17.5 0 55648 50832 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 36M 16.0 0 56169 55632 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 36M 16.0 0 56615 59664 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 16.0 0 57195 65072 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 17.5 0 57936 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 17.0 0 58178 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 16.0 0 58903 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 24M 16.5 0 59465 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 54M 17.5 0 59954 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 54M 17.5 0 60591 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 36M 16.0 0 61343 41344 EPS AQE RSN W= ME It looks like it doesn't drop under 24M now. BUT! When I move notebook into direction of AP (into other room, which is near AP) I've got: 00:18:de:08:e8:1d 1 9 12M 29.0 0 21255 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 12M 28.0 0 22031 46560 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 12M 30.5 0 22291 46576 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 12M 30.5 0 22291 46576 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 12M 30.5 0 22291 46576 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 12M 30.5 0 22291 46576 EPS AQEP RSN W= ME And after door is closed: 00:18:de:08:e8:1d 1 9 12M 23.0 0 27276 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 12M 22.0 0 27789 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 11M 22.5 0 28134 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 11M 22.5 0 28730 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 11M 21.5 0 29040 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 11M 21.5 0 29369 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 12M 22.5 0 29822 41344 EPS AQE RSN W= ME 00:18:de:08:e8:1d 1 9 11M 21.0 0 30232 41344 EPS AQE RSN W= ME Better RSSI but much worse speed?! I don't have second notebook on hands now to monitor does speed hops up and down, but ``ifconfig wlan0 list sta'' every second gives all this output. It looks like it never works at full and stable 54M now, even if notevook= in direct sight to AP within ~1 meter: 00:18:de:08:e8:1d 1 9 36M 37.5 0 44443 53936 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 36M 37.5 0 44443 53936 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 36M 37.5 0 44443 53936 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 36M 37.5 0 44443 53936 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 36M 37.5 0 44443 53952 EPS AQEP RSN W= ME 00:18:de:08:e8:1d 1 9 36M 37.5 0 44443 53984 EPS AQEP RSN W= ME And it seems, that in any other situation it works worse, that it theoretically can. Unfortunately, mini-PCI WiFi cards is not easy to get (and almost impossible to borrow for free, even for short time) here, and I can not replace this card in AP and try with another one :( I'll try to build 7-STABLE system, but it will take more time, as I need to adapt configs for it. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 06:29:56 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80441106566B for ; Tue, 9 Aug 2011 06:29:56 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id CF2868FC13 for ; Tue, 9 Aug 2011 06:29:55 +0000 (UTC) Received: by eye4 with SMTP id 4so3403602eye.31 for ; Mon, 08 Aug 2011 23:29:54 -0700 (PDT) Received: by 10.14.47.66 with SMTP id s42mr1623388eeb.239.1312871394256; Mon, 08 Aug 2011 23:29:54 -0700 (PDT) Received: from jessie.localnet (p5B2ED41A.dip0.t-ipconnect.de [91.46.212.26]) by mx.google.com with ESMTPS id t13sm1437178eef.35.2011.08.08.23.29.52 (version=SSLv3 cipher=OTHER); Mon, 08 Aug 2011 23:29:53 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Lev Serebryakov Date: Tue, 9 Aug 2011 08:29:18 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.2; i686; ; ) References: <1151152206.20110808220720@serebryakov.spb.ru> In-Reply-To: <1151152206.20110808220720@serebryakov.spb.ru> X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201108090829.18712.bschmidt@freebsd.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@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: Tue, 09 Aug 2011 06:29:56 -0000 On Monday, August 08, 2011 20:07:20 Lev Serebryakov wrote: > Hello, Freebsd-wireless. > > I have host-based AP, which is running FreeBSD 8.2-STABLE (i386) and > equipped with Senao EMP 8602 Plus-S Mini-PCI WiFi card. It is Atheros > 5413 based 600mW card: > > ath0: mem 0xa0060000-0xa006ffff irq 15 at device 17.0 on pci0 > ath0: [ITHREAD] > ath0: AR5413 mac 10.4 RF5413 phy 6.1 > > I'm using it with 10dBi omnidirectional antenna in 802.11g (2.4Ghz) > standard. > > It worked well some time ago, but now its performance is horrible. > > Main clients are Intel-based notebooks with Intel 3945ABG cards, > Windows-based. > > Typical "Real" (file copy) bandwidth with only one client active is > 500-600KiB/s. Windows shows "Excellent" signal level and 54Mbit. > InSSIDer (Windows-based WiFi monitoring software) shows RSSI between > -50 and -40 (dBm)m but I can not trust it, as it shows some very > distant APs with RSSI 100-120 (yes, +100 - +120), and it is nonsense. > > I've bring additional notebook with Linux and Kismet installed. > Kismet shows, that my AP oscillate between -80 and -40 dBm RSSI > permanently, even if here is connected (and doenloading!) client > connected. Signal level jumps up and down, and often Kismet receive > frames with broken SSID (one-two chars are replaced by other). > > "ifconfig wlan0 list sta" on AP shows something like this (running in > cycle with "sleep 1", one client copy big file, 600-700KiB/s): > > 00:18:de:08:e8:1d 1 9 24M 14.5 0 23084 35488 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 18M 11.0 0 23612 39952 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 13.5 0 24116 44320 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 13.0 0 24688 49104 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 13.0 0 25341 54720 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 13.0 0 25813 58640 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 54M 11.0 0 26092 61104 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 54M 12.0 0 26782 1424 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 54M 14.0 0 27241 5312 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 14.0 0 27615 8496 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 12.5 0 27872 10768 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 14.0 0 28302 14432 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 13.5 0 28912 19600 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 18M 14.0 0 29501 24624 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 13.5 0 30305 31440 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 24M 13.5 0 31971 45584 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 36M 13.0 0 32429 49472 EPS AQE RSN WME > 00:18:de:08:e8:1d 1 9 11M 12.5 0 32758 52288 EPS AQE RSN WME > > Also, tcpdump shows, that AP announce only speeds up to 18Mbit (tag > number 1 in beacon frame, list of supported speeds -- 1, 2, 5.5, 11, > 6, 9, 12, 18). > > Here is my setting of AP: > > ifconfig_wlan0="inet 192.168.135.1 netmask 255.255.255.0 mode 11g channel 9 ssid home.serebryakov.spb.ru country ru regdomain row txpower 30" > > So, Questions are: > > (1) Hopping signal strength and total terrible WiFi network > performance -- is it broken hardware or something strange in > FreeBSD code? Either the hardware really has some issues or the signal strength is just too high? I've seen that.. can you try setting a lower txpower for a test? > (2) Why card announce only 18Mbit, but not more? Seems like you're looking at the "basic rates", if you examine the beacon you should find another IE which contains all rates. > (3) What "txpower" setting means? dBm is relative unit. My 600mW card > lists "30" as max, and simple notebook Intel card lists "30" as > max too. Is it relative to max power of card (100mW for standard > cards, 400-600-1000mW for high-power "procider-grade" cards from > Ubiquiti and other such wendors, like Senao) or 1W or 100mW or what? > Manual pages didn't give answer. It probably isn't as absolute as you might think. net80211 currently has no way for the driver to tell it what the max is (except setting the maxtxpower for each channel). Depending on which value you look at it might even in half-dbm. The iwn(4) cards for example have a txpowerlimit of 15 dBm which is 30 in half-dBm. The txpower command for ifconfig is ment to pass over that number to the driver unmodified, the driver applies whatever limit it has. For ath(4) afaik that means you get min(txpower, cardlimit). > (4) What units are uses for RSSI output in "ifconfig list sta"? RSSI is something absolutely unspecified by design. The field itself is defined to be 8 bit width, but that's it, no unit whatsoever. ath(4) for examples reports (64?) unique values which are mapped through a table to dBm. For other cards we try to mimic that behaviour. Basically, if any of the ifconfig commands show something negative it's dBm, if it's possitive it should be ratio between something. For RSSI case it should be signal to noise (SNR), haven't explicitly checked that, so I might be wrong. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 09: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 4EEB2106564A; Tue, 9 Aug 2011 09:27:52 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id E188F8FC19; Tue, 9 Aug 2011 09:27:51 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 30C4D4AC1C; Tue, 9 Aug 2011 13:27:50 +0400 (MSD) Date: Tue, 9 Aug 2011 13:27:47 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1681554189.20110809132747@serebryakov.spb.ru> To: Bernhard Schmidt In-Reply-To: <201108090829.18712.bschmidt@freebsd.org> References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 09:27:52 -0000 Hello, Bernhard. You wrote 9 =E0=E2=E3=F3=F1=F2=E0 2011 =E3., 10:29:18: >> (1) Hopping signal strength and total terrible WiFi network >> performance -- is it broken hardware or something strange in >> FreeBSD code? > Either the hardware really has some issues or the signal strength is > just too high? I've seen that.. can you try setting a lower txpower > for a test? I'll try to reduce txpower, thanks. >> (2) Why card announce only 18Mbit, but not more? > Seems like you're looking at the "basic rates", if you examine the > beacon you should find another IE which contains all rates. Oh, yep, Tag number =3D 50. It is strange enough, that different WiFi analyzers shows only 18M for my network and 54M for others in such case. It seems, here is another (more standard? more widely used by hardware SOHO soapboxes?) way to specify additional rates. > at it might even in half-dbm. The iwn(4) cards for example have a > txpowerlimit of 15 dBm which is 30 in half-dBm. How these dBm can be converted to mW? :) If it is "dBm" with 1W used as base (30dBm), it means, that 15 dBm is only 32mW, that is 1/3 of "standard" 100mW WiFi power. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 09:35:54 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CBC61065672; Tue, 9 Aug 2011 09:35:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id CA8D38FC13; Tue, 9 Aug 2011 09:35:53 +0000 (UTC) Received: by gyd10 with SMTP id 10so2438329gyd.13 for ; Tue, 09 Aug 2011 02:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=kl5wECs86r+cmUG/w7/hSa+Sgawf/7jIFTDnRuMBoKA=; b=oIMEIPdAUszR+WBUpsApFyrIg2ei+WjbgG28JS551g2t0cIdPXF9uSUqLmUXULro5c qArul+pafhZilRAPPREHJ/GEc7s5+OPU4qufYy2cUvqjUv1DQVAVEwZ0HxzqrkFd8rpG FOwLgwV3SkEuXlpa1g6lc1GDBsvo17iWklEyA= MIME-Version: 1.0 Received: by 10.150.95.21 with SMTP id s21mr855603ybb.101.1312882553029; Tue, 09 Aug 2011 02:35:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Tue, 9 Aug 2011 02:35:52 -0700 (PDT) In-Reply-To: <1681554189.20110809132747@serebryakov.spb.ru> References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 17:35:52 +0800 X-Google-Sender-Auth: 1W7IkMcpGaJB2GdNcw_sdWrXOIA Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, Bernhard Schmidt Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 09:35:54 -0000 There's a dBm to mW chart. Don't forget antenna gain. Adrian 2011/8/9 Lev Serebryakov : > Hello, Bernhard. > You wrote 9 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 10:29:18: > >>> (1) Hopping signal strength and total terrible WiFi network >>> =9A =9A performance -- is it broken hardware or something strange in >>> =9A =9A FreeBSD code? >> Either the hardware really has some issues or the signal strength is >> just too high? I've seen that.. can you try setting a lower txpower >> for a test? > =9AI'll try to reduce txpower, thanks. > >>> (2) Why card announce only 18Mbit, but not more? >> Seems like you're looking at the "basic rates", if you examine the >> beacon you should find another IE which contains all rates. > =9AOh, yep, Tag number =3D 50. It is strange enough, that different WiFi > =9Aanalyzers shows only 18M for my network and 54M for others in such > =9Acase. It seems, here is another (more standard? more widely used by > =9Ahardware SOHO soapboxes?) way to specify additional rates. > >> at it might even in half-dbm. The iwn(4) cards for example have a >> txpowerlimit of 15 dBm which is 30 in half-dBm. > =9AHow these dBm can be converted to mW? :) If it is "dBm" with 1W used > =9Aas base (30dBm), it means, that 15 dBm is only 32mW, that is 1/3 of > =9A"standard" 100mW WiFi power. > > -- > // Black Lion AKA Lev Serebryakov > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" > From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 09:47: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 1A39C1065670; Tue, 9 Aug 2011 09:47:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 815B78FC16; Tue, 9 Aug 2011 09:47:02 +0000 (UTC) Received: by yxl31 with SMTP id 31so3875272yxl.13 for ; Tue, 09 Aug 2011 02:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=udBjpRUCjBkMdGiFQiqb2Ipi0iL/7tHBF1Amv/UD3f0=; b=Xh/mByhq/3WPMKGn9myCVJsqlO4rnD15UxJ/eWQfb1ucbrLwusIDipgEzvAtZagbaI f2OeFfnyn6m2wj2I+sAqNAumO/qDtjK+tzgzXxrqEp1l7JMeOEEh5TSALiUPjzpIMoH8 aeMOXNxa645N0cPYcbL8w6ULcPgM5+AKkuHb0= MIME-Version: 1.0 Received: by 10.151.3.13 with SMTP id f13mr6531581ybi.215.1312883220986; Tue, 09 Aug 2011 02:47:00 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Tue, 9 Aug 2011 02:47:00 -0700 (PDT) In-Reply-To: References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 17:47:00 +0800 X-Google-Sender-Auth: kjqwa9zDp1USQgxJ8Dx25tpCMH8 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, Bernhard Schmidt Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 09:47:03 -0000 And the AR5212 HAL has some tx power offset stuff which I haven't really gone digging into just yet. Blah, this is why others have to be unafraid to go HAL diving and get familiar with it. It's not that scary! Adrian 2011/8/9 Adrian Chadd : > There's a dBm to mW chart. > > Don't forget antenna gain. > > Adrian > > 2011/8/9 Lev Serebryakov : >> Hello, Bernhard. >> You wrote 9 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 10:29:18: >> >>>> (1) Hopping signal strength and total terrible WiFi network >>>> =9A =9A performance -- is it broken hardware or something strange in >>>> =9A =9A FreeBSD code? >>> Either the hardware really has some issues or the signal strength is >>> just too high? I've seen that.. can you try setting a lower txpower >>> for a test? >> =9AI'll try to reduce txpower, thanks. >> >>>> (2) Why card announce only 18Mbit, but not more? >>> Seems like you're looking at the "basic rates", if you examine the >>> beacon you should find another IE which contains all rates. >> =9AOh, yep, Tag number =3D 50. It is strange enough, that different WiFi >> =9Aanalyzers shows only 18M for my network and 54M for others in such >> =9Acase. It seems, here is another (more standard? more widely used by >> =9Ahardware SOHO soapboxes?) way to specify additional rates. >> >>> at it might even in half-dbm. The iwn(4) cards for example have a >>> txpowerlimit of 15 dBm which is 30 in half-dBm. >> =9AHow these dBm can be converted to mW? :) If it is "dBm" with 1W used >> =9Aas base (30dBm), it means, that 15 dBm is only 32mW, that is 1/3 of >> =9A"standard" 100mW WiFi power. >> >> -- >> // Black Lion AKA Lev Serebryakov >> >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.o= rg" >> > From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 09:53: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 3C39D1065672; Tue, 9 Aug 2011 09:53:27 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id F3C6F8FC0A; Tue, 9 Aug 2011 09:53:26 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id C30AE4AC1C; Tue, 9 Aug 2011 13:53:25 +0400 (MSD) Date: Tue, 9 Aug 2011 13:53:23 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <7764247.20110809135323@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 09:53:27 -0000 Hello, Adrian. You wrote 9 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 13:35:52: > There's a dBm to mW chart. You've forgot link or attache? I'm looking at: http://en.wikipedia.org/wiki/DBm And according to this table my "30" is 1W, which is not believable (too high). Datasheet says "21.5dBm at 54Mbit", which means ~140mW, which is in contradiction with "600mW" from same datasheet (or 400mW, according to other, as I'm not sure about exact version of my card -- it has protection shield from one version and additional power header from other). And "15" for iwn card is 32mW, which is not believable (too low). > Don't forget antenna gain. 9dBm or 10dBm in my case, oh my. So, result is ~30+10 =3D 40dBm =3D 10W?!= I don't understand something here! --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 10:14: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 149491065672 for ; Tue, 9 Aug 2011 10:14:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C433B8FC26 for ; Tue, 9 Aug 2011 10:14:20 +0000 (UTC) Received: by gxk28 with SMTP id 28so1351641gxk.13 for ; Tue, 09 Aug 2011 03:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LoOXeQkE7dgXpI58cRVmNi17H6USycL0jvJ9T/MmB1o=; b=MvHuH4Zjlcvuo1Mi9uzuXMCjk887vOhcd5qHIKHDcaMl8xHj14N7Ni/sIEAjwM3PfM ZUoRjakc33NX4+wsT5w+5kzVTs0+cmq12T1raLmYGSvCJrQdcL0t6Dk+jLecB+/+MMQb RIf3vM3TkpIaI3udSx1YIwS7CFLU47Wxp/sjI= MIME-Version: 1.0 Received: by 10.151.118.1 with SMTP id v1mr3523480ybm.386.1312884859696; Tue, 09 Aug 2011 03:14:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Tue, 9 Aug 2011 03:14:19 -0700 (PDT) In-Reply-To: <7764247.20110809135323@serebryakov.spb.ru> References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> <7764247.20110809135323@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 18:14:19 +0800 X-Google-Sender-Auth: -YlUohOBzTjSHYQlS9bPmJogUzo Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 10:14:21 -0000 txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" :-) Adrian 2011/8/9 Lev Serebryakov : > Hello, Adrian. > You wrote 9 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 13:35:52: > >> There's a dBm to mW chart. > =9AYou've forgot link or attache? > > =9A =9AI'm looking at: > =9Ahttp://en.wikipedia.org/wiki/DBm > > =9AAnd according to this table my "30" is 1W, which is not believable > (too high). Datasheet says "21.5dBm at 54Mbit", which means ~140mW, > which is in contradiction with "600mW" from same datasheet (or 400mW, > according to other, as I'm not sure about exact version of my card -- > it has protection shield from one version and additional power header > from other). > > =9AAnd "15" for iwn card is 32mW, which is not believable (too > low). > >> Don't forget antenna gain. > =9A9dBm or 10dBm in my case, oh my. So, result is ~30+10 =3D 40dBm =3D 10= W?! I don't > =9Aunderstand something here! > > -- > // Black Lion AKA Lev Serebryakov > > From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 10:20:37 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0F3B106566B; Tue, 9 Aug 2011 10:20:37 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 62DAF8FC0A; Tue, 9 Aug 2011 10:20:37 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 982974AC1C; Tue, 9 Aug 2011 14:20:36 +0400 (MSD) Date: Tue, 9 Aug 2011 14:20:33 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <281311475.20110809142033@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> <7764247.20110809135323@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 10:20:37 -0000 Hello, Adrian. You wrote 9 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 14:14:19: > txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" :-) Bernhard Schmidt says, that iwn(4) uses half-dBm units and "txpower 30" on iwn(4) means 15dBm physically. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 10:22: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 EBD261065673 for ; Tue, 9 Aug 2011 10:22:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id A1E4A8FC12 for ; Tue, 9 Aug 2011 10:22:00 +0000 (UTC) Received: by gwb15 with SMTP id 15so3679962gwb.13 for ; Tue, 09 Aug 2011 03:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=vXtyEMMHz9w7Vo3FbEHDubhvdOGfdTmXEFJlrcbTbZM=; b=tgKrmNjASeDqXqyDtFeEBBPt288wzjzJ5qBlXgFphmPlQ17FMb0e6Z6vXsX05pVsQ2 83QfC+3hZps0LLhrKVl77Lp+uPaY6yVsq1aUmWgxso6H27juce/gCSRbEFyRPdyoF3xE 0gPD22/8Q1y/jcvvWk2L3SIJsvByca3xgx/+0= MIME-Version: 1.0 Received: by 10.150.238.2 with SMTP id l2mr2765441ybh.44.1312885315187; Tue, 09 Aug 2011 03:21:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Tue, 9 Aug 2011 03:21:55 -0700 (PDT) In-Reply-To: <281311475.20110809142033@serebryakov.spb.ru> References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> <7764247.20110809135323@serebryakov.spb.ru> <281311475.20110809142033@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 18:21:55 +0800 X-Google-Sender-Auth: fhcKVpSI3QWJUPEbi9UvOuZ_wqA Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 10:22:01 -0000 2011/8/9 Lev Serebryakov : > Hello, Adrian. > You wrote 9 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 14:14:19: > >> txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" :-) > =9ABernhard Schmidt says, that iwn(4) uses half-dBm units and "txpower > 30" on iwn(4) means 15dBm physically. Right. I'll double-check with Bernhard as he's been knee deep in the iwn code. But I can tell you that the value passed from net80211 to ath is 2x the ifconfig power, as the ifconfig txpower is in 0.5 dBm units. So ifconfig wlanX txpower Y ends up storing a txpower value of 2*Y, and that's what ath gets. I bet iwn gets the same. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 10:28:30 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92949106564A; Tue, 9 Aug 2011 10:28:30 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 527878FC18; Tue, 9 Aug 2011 10:28:30 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 044454AC1C; Tue, 9 Aug 2011 14:28:27 +0400 (MSD) Date: Tue, 9 Aug 2011 14:28:25 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <347137729.20110809142825@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> <7764247.20110809135323@serebryakov.spb.ru> <281311475.20110809142033@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 10:28:30 -0000 Hello, Adrian. You wrote 9 =C1=D7=C7=D5=D3=D4=C1 2011 =C7., 14:21:55: >>> txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" :-) >> =9ABernhard Schmidt says, that iwn(4) uses half-dBm units and "txpower >> 30" on iwn(4) means 15dBm physically. > Right. I'll double-check with Bernhard as he's been knee deep in the > iwn code. But I can tell you that the value passed from net80211 to > ath is 2x the ifconfig power, as the ifconfig txpower is in 0.5 dBm > units. So ifconfig wlanX txpower Y ends up storing a txpower value of > 2*Y, and that's what ath gets. I bet iwn gets the same. What a mess. We have two "txpower" values -- command-line one and internal (2*cmd) one! BTW, ifconfig(8) uses very unclear wording: "The power argument is specified in .5 dBm units." It is not clear, what does it mean: that one txpower step means 0.5 dBm and 1 on command line means 0.5 dBm, 2 means 1 dBm, and so on, up to 30 on command line means 15dBm, OR (which seems to be true, but it is not clear!) it means, that you could set 0.5, 1, 1.5, and so on, and these numbers "true" dBm, but you cannot set 16.6, for example. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 10:57: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 5269F106566B for ; Tue, 9 Aug 2011 10:57:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0ABBC8FC0C for ; Tue, 9 Aug 2011 10:57:03 +0000 (UTC) Received: by ywm39 with SMTP id 39so3907794ywm.13 for ; Tue, 09 Aug 2011 03:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KIrgWPLHou2zfKR1bZRbJrebrm53UFpY+H16opDD3kM=; b=YO1Zpg1hSfrkUUi6gMrX513XnW+Yy18ybvmW8cofqIrOGD9J/gL2te95cUvz1L8N1S z/+TnBcpxTnKi9ZXYc0fZb3mqCIhIkqtRDdeuurPLp2Zw7vLwI432JAWLmo5N4oTE3IY 862PqRfPMXAbu3X56E9iu4MDoC0BncGhnClKE= MIME-Version: 1.0 Received: by 10.150.238.2 with SMTP id l2mr2802388ybh.44.1312887423250; Tue, 09 Aug 2011 03:57:03 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Tue, 9 Aug 2011 03:57:03 -0700 (PDT) In-Reply-To: <347137729.20110809142825@serebryakov.spb.ru> References: <1151152206.20110808220720@serebryakov.spb.ru> <201108090829.18712.bschmidt@freebsd.org> <1681554189.20110809132747@serebryakov.spb.ru> <7764247.20110809135323@serebryakov.spb.ru> <281311475.20110809142033@serebryakov.spb.ru> <347137729.20110809142825@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 18:57:03 +0800 X-Google-Sender-Auth: RVT-TXAaUMvk8Fat07hP9VLP_Ls Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 10:57:04 -0000 2011/8/9 Lev Serebryakov : > =A0What a mess. We have two "txpower" values -- command-line one and > =A0internal (2*cmd) one! Well, it's because internally it's represented as an integer in 0.5 dBm units. :-) Clear as day to me! > =A0BTW, ifconfig(8) uses very unclear wording: > > =A0"The power argument is specified in .5 dBm units." > > =A0It is not clear, what does it mean: that one txpower step means 0.5 > =A0dBm and 1 on command line means 0.5 dBm, 2 means 1 dBm, and so on, up = to 30 > =A0on command line means 15dBm, OR (which seems to be true, but it is > =A0not clear!) it means, that you could set 0.5, 1, 1.5, and so on, and > =A0these numbers "true" dBm, but you cannot set 16.6, for example. You're right it's a bit unclear. Patches to make it more clear are accepted= :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 11:32:54 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE7BE1065670; Tue, 9 Aug 2011 11:32:54 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0FA988FC16; Tue, 9 Aug 2011 11:32:53 +0000 (UTC) Received: by ewy1 with SMTP id 1so1266172ewy.13 for ; Tue, 09 Aug 2011 04:32:53 -0700 (PDT) Received: by 10.213.13.19 with SMTP id z19mr1941609ebz.107.1312889572795; Tue, 09 Aug 2011 04:32:52 -0700 (PDT) Received: from jessie.localnet (p5B2EC9BC.dip0.t-ipconnect.de [91.46.201.188]) by mx.google.com with ESMTPS id z3sm2676810eem.44.2011.08.09.04.32.51 (version=SSLv3 cipher=OTHER); Tue, 09 Aug 2011 04:32:51 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Lev Serebryakov Date: Tue, 9 Aug 2011 13:32:15 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.2; i686; ; ) References: <1151152206.20110808220720@serebryakov.spb.ru> <281311475.20110809142033@serebryakov.spb.ru> In-Reply-To: <281311475.20110809142033@serebryakov.spb.ru> X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201108091332.16269.bschmidt@freebsd.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@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: Tue, 09 Aug 2011 11:32:54 -0000 On Tuesday, August 09, 2011 12:20:33 Lev Serebryakov wrote: > Hello, Adrian. > You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2011 =D0=B3., 14:1= 4:19: >=20 > > txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" :-) > Bernhard Schmidt says, that iwn(4) uses half-dBm units and "txpower > 30" on iwn(4) means 15dBm physically. Err.. let me explain that in more detail. The ifconfig txpower command gets its argument in 0.5 dBm steps. That means if you want to set 15dBm you have to use 30, as 30 * 0.5 =3D 15. This is because someone might want to set eg 7.5 dBm but we still want use an integer to store that value. iwn(4) has a "limit" of 15 dBm because it internally assumes that the TX power always relates to all 3 chains being used (11n feature). Each chain does double the output power, to account for that you have to decrease the value by 2 * numchains. So.. setting it 15 dBm results in 15 + 2 * 3 dBm which is around 100mW. The 30 you are seeing is probably coming somewhere else, I assume it is the regulatory limit allowed by that channel. Try playing with different regdomains/countries. =2D-=20 Bernhard From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 12:34:08 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31F061065673; Tue, 9 Aug 2011 12:34:08 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id C1E808FC16; Tue, 9 Aug 2011 12:34:07 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id EC9F84AC1C; Tue, 9 Aug 2011 16:34:05 +0400 (MSD) Date: Tue, 9 Aug 2011 16:34:02 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <845369356.20110809163402@serebryakov.spb.ru> To: Bernhard Schmidt In-Reply-To: <201108091332.16269.bschmidt@freebsd.org> References: <1151152206.20110808220720@serebryakov.spb.ru> <281311475.20110809142033@serebryakov.spb.ru> <201108091332.16269.bschmidt@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 12:34:08 -0000 Hello, Bernhard. You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2011 =D0=B3., 15:32:= 15: > On Tuesday, August 09, 2011 12:20:33 Lev Serebryakov wrote: >> Hello, Adrian. >> You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2011 =D0=B3., 14:= 14:19: >>=20 >> > txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" =20 >> Bernhard Schmidt says, that iwn(4) uses half-dBm units and "txpower >> 30" on iwn(4) means 15dBm physically. > The ifconfig txpower command gets its argument in 0.5 dBm steps. That > means if you want to set 15dBm you have to use 30, as 30 * 0.5 =3D 15. > This is because someone might want to set eg 7.5 dBm but we still > want use an integer to store that value. It is in contradiction to what Adrian wrote, that "ifconfig" takes TRUE dBm as argument, and that "15.5" is allowed. Even more, it is in contradiction with ifconfig source code (ifieee80211.c:978 on 8-STABLE) and with practice: gateway# ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs gateway# ifconfig wlan0 txpower 20.5 gateway# ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 txpower 20.5 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs gateway# ifconfig wlan0 txpower 30 gateway# ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs gateway# ifconfig wlan0 txpower 20.6 ifconfig: invalid tx power (must be .5 dBm units) gateway# So, at COMMAND LINE it seems, that "txpower" is TRUE dBm, 1 unit of txpower =3D=3D 1dBm. Yes, INTERNAL representation is integer with "1 unit =3D 0.5 dBm", but command line and output txpower seems to be true dBms > The 30 you are seeing is probably coming somewhere else, I assume > it is the regulatory limit allowed by that channel. Try playing > with different regdomains/countries. 30 is a max in regdomains.xml --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 13:12:17 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 234B2106564A; Tue, 9 Aug 2011 13:12:17 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id 7B8878FC13; Tue, 9 Aug 2011 13:12:16 +0000 (UTC) Received: by eye4 with SMTP id 4so3616475eye.31 for ; Tue, 09 Aug 2011 06:12:15 -0700 (PDT) Received: by 10.14.187.14 with SMTP id x14mr1917141eem.69.1312895535310; Tue, 09 Aug 2011 06:12:15 -0700 (PDT) Received: from jessie.localnet (p5B2EC9BC.dip0.t-ipconnect.de [91.46.201.188]) by mx.google.com with ESMTPS id p49sm3041736eef.24.2011.08.09.06.12.13 (version=SSLv3 cipher=OTHER); Tue, 09 Aug 2011 06:12:14 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Lev Serebryakov Date: Tue, 9 Aug 2011 15:11:38 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.2; i686; ; ) References: <1151152206.20110808220720@serebryakov.spb.ru> <201108091332.16269.bschmidt@freebsd.org> <845369356.20110809163402@serebryakov.spb.ru> In-Reply-To: <845369356.20110809163402@serebryakov.spb.ru> X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201108091511.39031.bschmidt@freebsd.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@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: Tue, 09 Aug 2011 13:12:17 -0000 On Tuesday, August 09, 2011 14:34:02 Lev Serebryakov wrote: > Hello, Bernhard. > You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2011 =D0=B3., 15:3= 2:15: >=20 > > On Tuesday, August 09, 2011 12:20:33 Lev Serebryakov wrote: > >> Hello, Adrian. > >> You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2011 =D0=B3., 1= 4:14:19: > >>=20 > >> > txpower 15 is actually 15dBm. Ie, try "ifconfig wlan0 txpower 1.5" = =20 > >> Bernhard Schmidt says, that iwn(4) uses half-dBm units and "txpower > >> 30" on iwn(4) means 15dBm physically. >=20 > > The ifconfig txpower command gets its argument in 0.5 dBm steps. That > > means if you want to set 15dBm you have to use 30, as 30 * 0.5 =3D 15. > > This is because someone might want to set eg 7.5 dBm but we still > > want use an integer to store that value. > It is in contradiction to what Adrian wrote, that "ifconfig" takes > TRUE dBm as argument, and that "15.5" is allowed. Even more, it is in > contradiction with ifconfig source code (ifieee80211.c:978 on > 8-STABLE) and with practice: >=20 > gateway# ifconfig wlan0 > wlan0: flags=3D8843 metric 0 mtu = 1500 > > txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs > gateway# ifconfig wlan0 txpower 20.5 > gateway# ifconfig wlan0 > wlan0: flags=3D8843 metric 0 mtu = 1500 > > txpower 20.5 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs > gateway# ifconfig wlan0 txpower 30 > gateway# ifconfig wlan0 > wlan0: flags=3D8843 metric 0 mtu = 1500 > > txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs > gateway# ifconfig wlan0 txpower 20.6 > ifconfig: invalid tx power (must be .5 dBm units) > gateway# >=20 > So, at COMMAND LINE it seems, that "txpower" is TRUE dBm, 1 unit of > txpower =3D=3D 1dBm. >=20 > Yes, INTERNAL representation is integer with "1 unit =3D 0.5 dBm", but > command line and output txpower seems to be true dBms Yeah, sorry, my fault. I got the formula wrong, it is =3D * 2 or =3D * 0.5 > > The 30 you are seeing is probably coming somewhere else, I assume > > it is the regulatory limit allowed by that channel. Try playing > > with different regdomains/countries. > 30 is a max in regdomains.xml That is what I expected, basically ifconfig restricts what you can set based on the regulatory limit, the driver then applies its restrictions ontop of that. Point is, the driver limits aren't exported to user space (ifconfig). =2D-=20 Bernhard From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 13:18: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 E4D0F106566C; Tue, 9 Aug 2011 13:18:11 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id A864E8FC0C; Tue, 9 Aug 2011 13:18:11 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 73F114AC1C; Tue, 9 Aug 2011 17:18:10 +0400 (MSD) Date: Tue, 9 Aug 2011 17:18:07 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <417721050.20110809171807@serebryakov.spb.ru> To: Bernhard Schmidt In-Reply-To: <201108091511.39031.bschmidt@freebsd.org> References: <1151152206.20110808220720@serebryakov.spb.ru> <201108091332.16269.bschmidt@freebsd.org> <845369356.20110809163402@serebryakov.spb.ru> <201108091511.39031.bschmidt@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 13:18:12 -0000 Hello, Bernhard. You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2011 =D0=B3., 17:11:= 38: >> > The 30 you are seeing is probably coming somewhere else, I assume >> > it is the regulatory limit allowed by that channel. Try playing >> > with different regdomains/countries. >> 30 is a max in regdomains.xml > That is what I expected, basically ifconfig restricts what you can > set based on the regulatory limit, the driver then applies its > restrictions ontop of that. Point is, the driver limits aren't > exported to user space (ifconfig). "ifconfig wlan0 list txpower" shows two limits for each channel like: Channel 1 : 2412 MHz 30.0 reg 30 but I'm not sure, is this meaningful. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 13:23:01 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07EE3106564A; Tue, 9 Aug 2011 13:23:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id A46A48FC1F; Tue, 9 Aug 2011 13:23:00 +0000 (UTC) Received: by ywm39 with SMTP id 39so3994038ywm.13 for ; Tue, 09 Aug 2011 06:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=x57gDYx8wTpKwYLq99Z+RUGrrs2NDQ1fiAd1tXDB3qw=; b=iHg4Ld75dIO0+oknMITxtrjbYEDTQtjrzdp4LNnmzsXURK1flFDVAUKDl6rLEgdWw+ HzZwLT2xbmizwEYkcHCRkVP+NvX9eO2ag7guIDBJ6D/RzlLnw704wfc1sCQq8MN9fCua SxL0QP/ckpSHUNLkTNG3JzhQNXiLtiAmpMjlU= MIME-Version: 1.0 Received: by 10.150.95.21 with SMTP id s21mr1100080ybb.101.1312896179826; Tue, 09 Aug 2011 06:22:59 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Tue, 9 Aug 2011 06:22:59 -0700 (PDT) In-Reply-To: <417721050.20110809171807@serebryakov.spb.ru> References: <1151152206.20110808220720@serebryakov.spb.ru> <201108091332.16269.bschmidt@freebsd.org> <845369356.20110809163402@serebryakov.spb.ru> <201108091511.39031.bschmidt@freebsd.org> <417721050.20110809171807@serebryakov.spb.ru> Date: Tue, 9 Aug 2011 21:22:59 +0800 X-Google-Sender-Auth: sRV9qqAuMRmdG9buZzklOfP5yV8 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, Bernhard Schmidt Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 13:23:01 -0000 On 9 August 2011 21:18, Lev Serebryakov wrote: >> exported to user space (ifconfig). > =A0"ifconfig wlan0 list txpower" shows two limits for each channel > =A0like: > > =A0 Channel =A0 1 : 2412 MHz 30.0 reg 30 > > =A0but I'm not sure, is this meaningful. That's the configured regulatory limit. There's no way for the driver to say exactly what the maximum TX power is for each configured rate for the current channel. (Or, when we eventually support per-packet TPC, what the minimum/maximum TX power range is for each peer node.) That's a nice project for someone who'd like to get more familiar with net8= 0211. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 9 13:36: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 F1389106566B; Tue, 9 Aug 2011 13:36:21 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id B377C8FC18; Tue, 9 Aug 2011 13:36:21 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:40d5:9d99:be75:3272]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 2ED274AC1C; Tue, 9 Aug 2011 17:36:20 +0400 (MSD) Date: Tue, 9 Aug 2011 17:36:17 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <953527156.20110809173617@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <1151152206.20110808220720@serebryakov.spb.ru> <201108091332.16269.bschmidt@freebsd.org> <845369356.20110809163402@serebryakov.spb.ru> <201108091511.39031.bschmidt@freebsd.org> <417721050.20110809171807@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Bad host-vased AP performace -- and qouple of questions about FreeBSD WiFi stack tuning 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, 09 Aug 2011 13:36:22 -0000 Hello, Adrian. You wrote 9 =E0=E2=E3=F3=F1=F2=E0 2011 =E3., 17:22:59: >>> exported to user space (ifconfig). >> =A0"ifconfig wlan0 list txpower" shows two limits for each channel >> =A0like: >> >> =A0 Channel =A0 1 : 2412 MHz 30.0 reg 30 >> >> =A0but I'm not sure, is this meaningful. > That's the configured regulatory limit. There's no way for the driver > to say exactly what the maximum TX power is for each configured rate > for the current channel. Here are TWO numbers :) Both from regulatory limits? > (Or, when we eventually support per-packet TPC, what the > minimum/maximum TX power range is for each peer node.) > That's a nice project for someone who'd like to get more familiar with ne= t80211. This slice is too big for me :( It is very interesting, indeed, but when you have full-day payed work, not related to FreeBSD, you have only very short time periods for such projects. And it is not type of project, which could be done when you have pauses at work -- it need access directly to hardware, and cannot be done remotely, as port maintaining could be done. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 10 05:33: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 375461065673 for ; Wed, 10 Aug 2011 05:33:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id ED51E8FC17 for ; Wed, 10 Aug 2011 05:33:33 +0000 (UTC) Received: by gyd10 with SMTP id 10so550541gyd.13 for ; Tue, 09 Aug 2011 22:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+Awp5hrGNeDNWt6TJr1yLUG7D4HceIVgT6/DaV8zr7E=; b=Zi9rB9NCEX2TC0VxW8k9VmAjvInfL+JWP/3K/nTZReS72BrjhUcSbYN2K1WY/p/DKD k9jS+6l2vywOE9VAVr/c+JQIQv3U1AcVTQwSLJROEN1lnT30zHBP1DFQFaUhb0Y69VVD EzUPsJpPSJt8+26r4hlYpYIIx1GaaynDt8Mm4= MIME-Version: 1.0 Received: by 10.150.74.3 with SMTP id w3mr7408318yba.329.1312954412794; Tue, 09 Aug 2011 22:33:32 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Tue, 9 Aug 2011 22:33:32 -0700 (PDT) In-Reply-To: <4E3E6FFE.90101@orange.fr> References: <4E3E6FFE.90101@orange.fr> Date: Wed, 10 Aug 2011 13:33:32 +0800 X-Google-Sender-Auth: worge-B0FFSM6mB6OJZDni9eVqY Message-ID: From: Adrian Chadd To: clbuisson@orange.fr Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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, 10 Aug 2011 05:33:34 -0000 is this on a laptop or some device with power saving enabled? Can you please provide some more background about what you are using? Thanks, adrian On 07/08/2011, Claude Buisson wrote: > Hi, > > I try to configure a new system as an access point, with: > > ath0: mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 on pci2 > ath0: AR9285 mac 192.2 RF5133 phy 14.0 > > ath0@pci0:2:0:0: class=0x028000 card=0x10891a3b chip=0x002b168c rev=0x01 > hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR9285 Wireless Network Adapter (PCI-Express)' > class = network > > According to the sticker, it is a: > > AzureWave AW-NE785 ATH-5B95 > > I get a lot of: > > ath0: stuck beacon: resetting (bmiss count 4) > > I set hw.ath.bstuck=32 > > but the stuck beacon messages continue flowing, and I suffer from packet > loss / > lost association of the test station. > > This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). > > TIA, > > CBu > > P.S.: to prevent a number of useless questions (as seen when googling): I > live > in the country, with _no_ other wireless network in the vicinity :-) > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" > From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 11 13:51:56 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA7F8106564A for ; Thu, 11 Aug 2011 13:51:56 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by mx1.freebsd.org (Postfix) with ESMTP id 15FBD8FC0A for ; Thu, 11 Aug 2011 13:51:55 +0000 (UTC) Received: from localhost ([92.162.134.137]) by mwinf5d26 with ME id K1rs1h00B2y1xD0031rt1C; Thu, 11 Aug 2011 15:51:54 +0200 X-ME-engine: default Message-ID: <4E43DE78.4040801@orange.fr> Date: Thu, 11 Aug 2011 15:51:52 +0200 From: Claude Buisson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.18) Gecko/20110622 Thunderbird/3.1.11 MIME-Version: 1.0 To: Adrian Chadd References: <4E3E6FFE.90101@orange.fr> In-Reply-To: Content-Type: multipart/mixed; boundary="------------060306060400040909020409" Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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, 11 Aug 2011 13:51:56 -0000 This is a multi-part message in MIME format. --------------060306060400040909020409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sorry, I had to travel these last days... On 08/10/2011 07:33, Adrian Chadd wrote: > is this on a laptop or some device with power saving enabled? > > Can you please provide some more background about what you are using? > > Thanks, adrian > No, this is not a laptop, it is a "mini system" (Atom D525 ION2): ZOTAC ZBOX I41 (see dmesg below) and a do not run powerd, etc. In the (AMI) BIOS there is an "Energy Lake" feature. Disabling it does not seems to have a noticeable effect. Disabling HyperThreading in the BIOS seems to have a small positive effect on the packet loss rate (which remains at the 2-3 % level between station and ap). I am running with hw.ath.bstuck=16 and the "stuck beacon" messages continue to flow. At boot I find a: power_profile: changed to 'performance' entry in /var/log/messages, of which I can't get rid (I tried power_profile_enable="NO" in rc.conf). My test station is a 7.4-STABLE, with an 2200B/G iwi hardware, and for the moment I run in open mode (for these tests). On the other hand, I don't have any problem/loss running the ZBOX as a station with my current access point (6 years old Netgear WG602v3) in WPA2 mode. I can do furter tests at your will, if given sufficiently precise guidance. Claude Buisson > On 07/08/2011, Claude Buisson wrote: >> Hi, >> >> I try to configure a new system as an access point, with: >> >> ath0: mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 on pci2 >> ath0: AR9285 mac 192.2 RF5133 phy 14.0 >> >> ath0@pci0:2:0:0: class=0x028000 card=0x10891a3b chip=0x002b168c rev=0x01 >> hdr=0x00 >> vendor = 'Atheros Communications Inc.' >> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >> class = network >> >> According to the sticker, it is a: >> >> AzureWave AW-NE785 ATH-5B95 >> >> I get a lot of: >> >> ath0: stuck beacon: resetting (bmiss count 4) >> >> I set hw.ath.bstuck=32 >> >> but the stuck beacon messages continue flowing, and I suffer from packet >> loss / >> lost association of the test station. >> >> This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). >> >> TIA, >> >> CBu >> >> P.S.: to prevent a number of useless questions (as seen when googling): I >> live >> in the country, with _no_ other wireless network in the vicinity :-) >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" >> > --------------060306060400040909020409 Content-Type: text/plain; name="dmesg.boot" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dmesg.boot" Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #0: Tue Aug 9 14:44:22 CEST 2011 toor@zorglub:/usr/obj/home/src/sys/ZORGLUB amd64 CPU: Intel(R) Atom(TM) CPU D525 @ 1.80GHz (1795.74-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x106ca Family = 6 Model = 1c Stepping = 10 Features=0xbfebfbff Features2=0x40e31d AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 4082229248 (3893 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <032111 APIC1732> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP/HT): APIC ID: 3 Security policy loaded: TrustedBSD MAC/Stub (mac_stub) ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard acpi0: <032111 XSDT1732> on motherboard acpi0: Overriding SCI from IRQ 9 to IRQ 20 acpi0: Power Button (fixed) acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, bff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 hdac0: mem 0xfe8fc000-0xfe8fffff irq 16 at device 27.0 on pci0 pcib1: irq 16 at device 28.0 on pci0 pci1: on pcib1 xhci0: mem 0xfe9ff000-0xfe9fffff irq 16 at device 0.0 on pci1 xhci0: 32 byte context size. usbus0 on xhci0 pcib2: irq 17 at device 28.1 on pci0 pci2: on pcib2 ath0: mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 on pci2 ath0: AR9285 mac 192.2 RF5133 phy 14.0 pcib3: irq 18 at device 28.2 on pci0 pci3: on pcib3 vgapci0: port 0xdc00-0xdc7f mem 0xfd000000-0xfdffffff,0xd0000000-0xdfffffff,0xce000000-0xcfffffff irq 18 at device 0.0 on pci3 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io hdac1: mem 0xfcf7c000-0xfcf7ffff irq 19 at device 0.1 on pci3 uhci0: port 0xcc00-0xcc1f irq 23 at device 29.0 on pci0 usbus1: on uhci0 uhci1: port 0xc880-0xc89f irq 19 at device 29.1 on pci0 usbus2: on uhci1 uhci2: port 0xc800-0xc81f irq 18 at device 29.2 on pci0 usbus3: on uhci2 uhci3: port 0xc480-0xc49f irq 16 at device 29.3 on pci0 usbus4: on uhci3 ehci0: mem 0xfe8fbc00-0xfe8fbfff irq 23 at device 29.7 on pci0 usbus5: EHCI version 1.0 usbus5: on ehci0 pcib4: at device 30.0 on pci0 pci4: on pcib4 re0: port 0xe800-0xe8ff mem 0xfebdfc00-0xfebdfcff irq 16 at device 11.0 on pci4 re0: Chip rev. 0x18000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: 00:01:2e:2d:96:44 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: port 0xb880-0xb887,0xc400-0xc403,0xc080-0xc087,0xc000-0xc003,0xbc00-0xbc1f mem 0xfe8fb800-0xfe8fbbff irq 19 at device 31.2 on pci0 ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ichsmb0: port 0x400-0x41f irq 19 at device 31.3 on pci0 smbus0: on ichsmb0 smb0: on smbus0 acpi_button0: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 sc0: at flags 0x100 on isa0 sc0: VGA <12 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 coretemp0: on cpu0 coretemp1: on cpu1 coretemp2: on cpu2 coretemp3: on cpu3 Timecounters tick every 1.000 msec hdac0: HDA Codec #2: Realtek ALC888 pcm0: at cad 2 nid 1 on hdac0 pcm1: at cad 2 nid 1 on hdac0 hdac1: HDA Codec #0: NVidia GT21x HDMI hdac1: HDA Codec #1: NVidia GT21x HDMI hdac1: HDA Codec #2: NVidia GT21x HDMI hdac1: HDA Codec #3: NVidia GT21x HDMI pcm2: at cad 0 nid 1 on hdac1 pcm3: at cad 1 nid 1 on hdac1 pcm4: at cad 2 nid 1 on hdac1 pcm5: at cad 3 nid 1 on hdac1 usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 480Mbps High Speed USB v2.0 ugen0.1: <0x1106> at usbus0 uhub0: <0x1106 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 uhub0: 5 ports with 4 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered ugen0.2: at usbus0 uhub6: on usbus0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 305245MB (625142448 512 byte sectors: 16H 63S/T 16383C) SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! Timecounter "TSC-low" frequency 14029209 Hz quality 1000 Root mount waiting for: usbus5 usbus0 uhub6: 4 ports with 4 removable, self powered Root mount waiting for: usbus5 uhub5: 8 ports with 8 removable, self powered Root mount waiting for: usbus5 Root mount waiting for: usbus5 ugen2.2: at usbus2 ums0: on usbus2 ums0: 3 buttons and [XYZ] coordinates ID=0 ugen5.2: at usbus5 umass0: on usbus5 Root mount waiting for: usbus5 ugen2.3: at usbus2 ukbd0: on usbus2 kbd0 at ukbd0 Trying to mount root from ufs:/dev/ada0p2 [rw]... (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present bridge0: Ethernet address: 6e:3b:0a:a8:dc:cb wlan0: Ethernet address: 48:5d:60:dc:20:ac --------------060306060400040909020409-- From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 11 16:23:23 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 976C9106564A for ; Thu, 11 Aug 2011 16:23:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 578D68FC14 for ; Thu, 11 Aug 2011 16:23:23 +0000 (UTC) Received: by yxl31 with SMTP id 31so1690981yxl.13 for ; Thu, 11 Aug 2011 09:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RvfBpB8mi43otehrw7zc+MbZYuDsteHu7Br1yeiCGaM=; b=mEDQ4N4knWqzNC7k9w4VAvnl+q7UL60CJMCnDTC/YJjmjYZSrTS+IphViWPK3o7Pes wZODFb6QYYeRLigXeaf0BftLKW+S/yt8iHSKtp3Np94xDj8NnRPtlkhi+geNpxrD9IuJ +6zfuCGRwN5qYnYA9l8k/meFzJrPzjKYIfJek= MIME-Version: 1.0 Received: by 10.150.209.14 with SMTP id h14mr811802ybg.101.1313079802645; Thu, 11 Aug 2011 09:23:22 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Thu, 11 Aug 2011 09:23:22 -0700 (PDT) In-Reply-To: <4E43DE78.4040801@orange.fr> References: <4E3E6FFE.90101@orange.fr> <4E43DE78.4040801@orange.fr> Date: Fri, 12 Aug 2011 00:23:22 +0800 X-Google-Sender-Auth: OaGe6LaRkidrGaR6uM8CFpcKAIA Message-ID: From: Adrian Chadd To: Claude Buisson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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, 11 Aug 2011 16:23:23 -0000 Hi, Is powerd running? It does sound like you've got some kind of power saving mode going on somewhere.. Adrian On 11 August 2011 21:51, Claude Buisson wrote: > Sorry, I had to travel these last days... > > On 08/10/2011 07:33, Adrian Chadd wrote: >> >> is this on a laptop or some device with power saving enabled? >> >> Can you please provide some more background about what you are using? >> >> Thanks, =A0adrian >> > > No, this is not a laptop, it is a "mini system" (Atom D525 ION2): > > ZOTAC ZBOX I41 (see dmesg below) > > and a do not run powerd, etc. > > In the (AMI) BIOS there is an "Energy Lake" feature. Disabling it does no= t > seems > to have a noticeable effect. > > Disabling HyperThreading in the BIOS seems to have a small positive effec= t > on > the packet loss rate (which remains at the 2-3 % level between station an= d > ap). > > I am running with hw.ath.bstuck=3D16 and the "stuck beacon" messages cont= inue > to flow. > > At boot I find a: > > power_profile: changed to 'performance' > > entry in /var/log/messages, of which I can't get rid (I tried > power_profile_enable=3D"NO" in rc.conf). > > My test station is a 7.4-STABLE, with an 2200B/G iwi hardware, and for th= e > moment I run in open mode (for these tests). > > On the other hand, I don't have any problem/loss running the ZBOX as a > station > with my current access point (6 years old Netgear WG602v3) in WPA2 mode. > > I can do furter tests at your will, if given sufficiently precise guidanc= e. > > Claude Buisson > >> On 07/08/2011, Claude Buisson =A0wrote: >>> >>> Hi, >>> >>> I try to configure a new system as an access point, with: >>> >>> ath0: =A0mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 o= n >>> pci2 >>> ath0: AR9285 mac 192.2 RF5133 phy 14.0 >>> >>> ath0@pci0:2:0:0: class=3D0x028000 card=3D0x10891a3b chip=3D0x002b168c r= ev=3D0x01 >>> hdr=3D0x00 >>> =A0 =A0 =A0 vendor =A0 =A0 =3D 'Atheros Communications Inc.' >>> =A0 =A0 =A0 device =A0 =A0 =3D 'AR9285 Wireless Network Adapter (PCI-Ex= press)' >>> =A0 =A0 =A0 class =A0 =A0 =A0=3D network >>> >>> According to the sticker, it is a: >>> >>> AzureWave AW-NE785 ATH-5B95 >>> >>> I get a lot of: >>> >>> =A0 =A0ath0: stuck beacon: resetting (bmiss count 4) >>> >>> I set =A0hw.ath.bstuck=3D32 >>> >>> but the stuck beacon messages continue flowing, and I suffer from packe= t >>> loss / >>> lost association of the test station. >>> >>> This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). >>> >>> TIA, >>> >>> CBu >>> >>> P.S.: to prevent a number of useless questions (as seen when googling):= I >>> live >>> in the country, with _no_ other wireless network in the vicinity :-) >>> _______________________________________________ >>> freebsd-wireless@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to >>> "freebsd-wireless-unsubscribe@freebsd.org" >>> >> > From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 11 17:02:07 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0493106566B for ; Thu, 11 Aug 2011 17:02:07 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from smtp.smtpout.orange.fr (smtp09.smtpout.orange.fr [80.12.242.131]) by mx1.freebsd.org (Postfix) with ESMTP id 3BC6C8FC17 for ; Thu, 11 Aug 2011 17:02:06 +0000 (UTC) Received: from localhost ([92.162.134.137]) by mwinf5d17 with ME id K5241h0042y1xD0035248f; Thu, 11 Aug 2011 19:02:05 +0200 X-ME-engine: default Message-ID: <4E440B0C.8090608@orange.fr> Date: Thu, 11 Aug 2011 19:02:04 +0200 From: Claude Buisson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.18) Gecko/20110622 Thunderbird/3.1.11 MIME-Version: 1.0 To: Adrian Chadd References: <4E3E6FFE.90101@orange.fr> <4E43DE78.4040801@orange.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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, 11 Aug 2011 17:02:07 -0000 On 08/11/2011 18:23, Adrian Chadd wrote: > Hi, > > Is powerd running? > > It does sound like you've got some kind of power saving mode going on > somewhere.. > > Adrian > I do _not_ run powerd (/etc/defaults/rc.conf checked, /etc/rc.conf/checked, pgrep powerd done) I got rid of the power_profile: changed to 'performance' in /var/log/messages by commenting out the entry: # Switch power profiles when the AC line state changes. notify 10 { ... }; of /etc/devd.conf the packet loss (ping -s 1450 -c 200 on the test station) remains at 3.0% stuck beacon messages continue to flow Claude > On 11 August 2011 21:51, Claude Buisson wrote: >> Sorry, I had to travel these last days... >> >> On 08/10/2011 07:33, Adrian Chadd wrote: >>> >>> is this on a laptop or some device with power saving enabled? >>> >>> Can you please provide some more background about what you are using? >>> >>> Thanks, adrian >>> >> >> No, this is not a laptop, it is a "mini system" (Atom D525 ION2): >> >> ZOTAC ZBOX I41 (see dmesg below) >> >> and a do not run powerd, etc. >> >> In the (AMI) BIOS there is an "Energy Lake" feature. Disabling it does not >> seems >> to have a noticeable effect. >> >> Disabling HyperThreading in the BIOS seems to have a small positive effect >> on >> the packet loss rate (which remains at the 2-3 % level between station and >> ap). >> >> I am running with hw.ath.bstuck=16 and the "stuck beacon" messages continue >> to flow. >> >> At boot I find a: >> >> power_profile: changed to 'performance' >> >> entry in /var/log/messages, of which I can't get rid (I tried >> power_profile_enable="NO" in rc.conf). >> >> My test station is a 7.4-STABLE, with an 2200B/G iwi hardware, and for the >> moment I run in open mode (for these tests). >> >> On the other hand, I don't have any problem/loss running the ZBOX as a >> station >> with my current access point (6 years old Netgear WG602v3) in WPA2 mode. >> >> I can do furter tests at your will, if given sufficiently precise guidance. >> >> Claude Buisson >> >>> On 07/08/2011, Claude Buisson wrote: >>>> >>>> Hi, >>>> >>>> I try to configure a new system as an access point, with: >>>> >>>> ath0: mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 on >>>> pci2 >>>> ath0: AR9285 mac 192.2 RF5133 phy 14.0 >>>> >>>> ath0@pci0:2:0:0: class=0x028000 card=0x10891a3b chip=0x002b168c rev=0x01 >>>> hdr=0x00 >>>> vendor = 'Atheros Communications Inc.' >>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>> class = network >>>> >>>> According to the sticker, it is a: >>>> >>>> AzureWave AW-NE785 ATH-5B95 >>>> >>>> I get a lot of: >>>> >>>> ath0: stuck beacon: resetting (bmiss count 4) >>>> >>>> I set hw.ath.bstuck=32 >>>> >>>> but the stuck beacon messages continue flowing, and I suffer from packet >>>> loss / >>>> lost association of the test station. >>>> >>>> This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). >>>> >>>> TIA, >>>> >>>> CBu >>>> >>>> P.S.: to prevent a number of useless questions (as seen when googling): I >>>> live >>>> in the country, with _no_ other wireless network in the vicinity :-) >>>> _______________________________________________ >>>> freebsd-wireless@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>> To unsubscribe, send any mail to >>>> "freebsd-wireless-unsubscribe@freebsd.org" >>>> >>> >> > From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 11 19:02: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 D21221065670 for ; Thu, 11 Aug 2011 19:02:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8EBFA8FC1D for ; Thu, 11 Aug 2011 19:02:00 +0000 (UTC) Received: by yxl31 with SMTP id 31so1816691yxl.13 for ; Thu, 11 Aug 2011 12:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=L5ZrGcYz76WvSDDCX1A2yubahCGUmoa47G7A7xbYg14=; b=uubJFW4TcPZ4WL0JNzsORKritCps9tSUpXAhXX72K4ntH5u2VPAquYwgjucKp8BFUZ jrwjjWd5br10yr+zQOl7wH+/zczpDN4vsYEmZFm46kjsHAh0frY3laAV2TiACDBu+zU4 HqVnby4ogRyqa0xLcI5RE4CrQdisg9aM82yL4= MIME-Version: 1.0 Received: by 10.150.225.1 with SMTP id x1mr1022573ybg.272.1313089319580; Thu, 11 Aug 2011 12:01:59 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Thu, 11 Aug 2011 12:01:59 -0700 (PDT) In-Reply-To: <4E440B0C.8090608@orange.fr> References: <4E3E6FFE.90101@orange.fr> <4E43DE78.4040801@orange.fr> <4E440B0C.8090608@orange.fr> Date: Fri, 12 Aug 2011 03:01:59 +0800 X-Google-Sender-Auth: xIkPpXyXOM9ZUotdGXgxU2wg2Uw Message-ID: From: Adrian Chadd To: Claude Buisson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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, 11 Aug 2011 19:02:00 -0000 Right. I wonder if the motherboard is doing anything like "green" stuff tho= ugh? That message is coming from /etc/rc.d/power_profile which is fiddling with the ACPI sleep state setup. Can you please paste me the output of: sysctl hw.acpi ? On 12 August 2011 01:02, Claude Buisson wrote: > On 08/11/2011 18:23, Adrian Chadd wrote: >> >> Hi, >> >> Is powerd running? >> >> It does sound like you've got some kind of power saving mode going on >> somewhere.. >> >> Adrian >> > > I do _not_ run powerd (/etc/defaults/rc.conf checked, /etc/rc.conf/checke= d, > pgrep powerd done) > > I got rid of the > > =A0 =A0power_profile: changed to 'performance' > > in /var/log/messages by commenting out the entry: > > =A0 =A0# Switch power profiles when the AC line state changes. > =A0 =A0notify 10 { > =A0 =A0 =A0 =A0... > =A0 =A0}; > > of /etc/devd.conf > > the packet loss (ping -s 1450 -c 200 on the test station) remains at 3.0% > > stuck beacon messages continue to flow > > Claude > >> On 11 August 2011 21:51, Claude Buisson =A0wrote: >>> >>> Sorry, I had to travel these last days... >>> >>> On 08/10/2011 07:33, Adrian Chadd wrote: >>>> >>>> is this on a laptop or some device with power saving enabled? >>>> >>>> Can you please provide some more background about what you are using? >>>> >>>> Thanks, =A0adrian >>>> >>> >>> No, this is not a laptop, it is a "mini system" (Atom D525 ION2): >>> >>> ZOTAC ZBOX I41 (see dmesg below) >>> >>> and a do not run powerd, etc. >>> >>> In the (AMI) BIOS there is an "Energy Lake" feature. Disabling it does >>> not >>> seems >>> to have a noticeable effect. >>> >>> Disabling HyperThreading in the BIOS seems to have a small positive >>> effect >>> on >>> the packet loss rate (which remains at the 2-3 % level between station >>> and >>> ap). >>> >>> I am running with hw.ath.bstuck=3D16 and the "stuck beacon" messages >>> continue >>> to flow. >>> >>> At boot I find a: >>> >>> power_profile: changed to 'performance' >>> >>> entry in /var/log/messages, of which I can't get rid (I tried >>> power_profile_enable=3D"NO" in rc.conf). >>> >>> My test station is a 7.4-STABLE, with an 2200B/G iwi hardware, and for >>> the >>> moment I run in open mode (for these tests). >>> >>> On the other hand, I don't have any problem/loss running the ZBOX as a >>> station >>> with my current access point (6 years old Netgear WG602v3) in WPA2 mode= . >>> >>> I can do furter tests at your will, if given sufficiently precise >>> guidance. >>> >>> Claude Buisson >>> >>>> On 07/08/2011, Claude Buisson =A0 =A0wrote: >>>>> >>>>> Hi, >>>>> >>>>> I try to configure a new system as an access point, with: >>>>> >>>>> ath0: =A0 =A0mem 0xfeaf0000-0xfeafffff irq 17 at device= 0.0 >>>>> on >>>>> pci2 >>>>> ath0: AR9285 mac 192.2 RF5133 phy 14.0 >>>>> >>>>> ath0@pci0:2:0:0: class=3D0x028000 card=3D0x10891a3b chip=3D0x002b168c >>>>> rev=3D0x01 >>>>> hdr=3D0x00 >>>>> =A0 =A0 =A0 vendor =A0 =A0 =3D 'Atheros Communications Inc.' >>>>> =A0 =A0 =A0 device =A0 =A0 =3D 'AR9285 Wireless Network Adapter (PCI-= Express)' >>>>> =A0 =A0 =A0 class =A0 =A0 =A0=3D network >>>>> >>>>> According to the sticker, it is a: >>>>> >>>>> AzureWave AW-NE785 ATH-5B95 >>>>> >>>>> I get a lot of: >>>>> >>>>> =A0 =A0ath0: stuck beacon: resetting (bmiss count 4) >>>>> >>>>> I set =A0hw.ath.bstuck=3D32 >>>>> >>>>> but the stuck beacon messages continue flowing, and I suffer from >>>>> packet >>>>> loss / >>>>> lost association of the test station. >>>>> >>>>> This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). >>>>> >>>>> TIA, >>>>> >>>>> CBu >>>>> >>>>> P.S.: to prevent a number of useless questions (as seen when googling= ): >>>>> I >>>>> live >>>>> in the country, with _no_ other wireless network in the vicinity :-) >>>>> _______________________________________________ >>>>> freebsd-wireless@freebsd.org mailing list >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>> To unsubscribe, send any mail to >>>>> "freebsd-wireless-unsubscribe@freebsd.org" >>>>> >>>> >>> >> > > From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 11 21:42: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 AB626106567A for ; Thu, 11 Aug 2011 21:42:12 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) by mx1.freebsd.org (Postfix) with ESMTP id 246AA8FC12 for ; Thu, 11 Aug 2011 21:42:11 +0000 (UTC) Received: from localhost ([86.205.133.219]) by mwinf5d12 with ME id K9i91h0034kAply039i9Tk; Thu, 11 Aug 2011 23:42:10 +0200 X-ME-engine: default Message-ID: <4E444CB0.2010201@orange.fr> Date: Thu, 11 Aug 2011 23:42:08 +0200 From: Claude Buisson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.18) Gecko/20110622 Thunderbird/3.1.11 MIME-Version: 1.0 To: Adrian Chadd References: <4E3E6FFE.90101@orange.fr> <4E43DE78.4040801@orange.fr> <4E440B0C.8090608@orange.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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, 11 Aug 2011 21:42:12 -0000 Here it is: hw.acpi.supported_sleep_state: S1 S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.cpu.cx_lowest: C1 Claude On 08/11/2011 21:01, Adrian Chadd wrote: > Right. I wonder if the motherboard is doing anything like "green" stuff though? > That message is coming from /etc/rc.d/power_profile which is fiddling > with the ACPI sleep state setup. > Can you please paste me the output of: > > sysctl hw.acpi ? > > On 12 August 2011 01:02, Claude Buisson wrote: >> On 08/11/2011 18:23, Adrian Chadd wrote: >>> >>> Hi, >>> >>> Is powerd running? >>> >>> It does sound like you've got some kind of power saving mode going on >>> somewhere.. >>> >>> Adrian >>> >> >> I do _not_ run powerd (/etc/defaults/rc.conf checked, /etc/rc.conf/checked, >> pgrep powerd done) >> >> I got rid of the >> >> power_profile: changed to 'performance' >> >> in /var/log/messages by commenting out the entry: >> >> # Switch power profiles when the AC line state changes. >> notify 10 { >> ... >> }; >> >> of /etc/devd.conf >> >> the packet loss (ping -s 1450 -c 200 on the test station) remains at 3.0% >> >> stuck beacon messages continue to flow >> >> Claude >> >>> On 11 August 2011 21:51, Claude Buisson wrote: >>>> >>>> Sorry, I had to travel these last days... >>>> >>>> On 08/10/2011 07:33, Adrian Chadd wrote: >>>>> >>>>> is this on a laptop or some device with power saving enabled? >>>>> >>>>> Can you please provide some more background about what you are using? >>>>> >>>>> Thanks, adrian >>>>> >>>> >>>> No, this is not a laptop, it is a "mini system" (Atom D525 ION2): >>>> >>>> ZOTAC ZBOX I41 (see dmesg below) >>>> >>>> and a do not run powerd, etc. >>>> >>>> In the (AMI) BIOS there is an "Energy Lake" feature. Disabling it does >>>> not >>>> seems >>>> to have a noticeable effect. >>>> >>>> Disabling HyperThreading in the BIOS seems to have a small positive >>>> effect >>>> on >>>> the packet loss rate (which remains at the 2-3 % level between station >>>> and >>>> ap). >>>> >>>> I am running with hw.ath.bstuck=16 and the "stuck beacon" messages >>>> continue >>>> to flow. >>>> >>>> At boot I find a: >>>> >>>> power_profile: changed to 'performance' >>>> >>>> entry in /var/log/messages, of which I can't get rid (I tried >>>> power_profile_enable="NO" in rc.conf). >>>> >>>> My test station is a 7.4-STABLE, with an 2200B/G iwi hardware, and for >>>> the >>>> moment I run in open mode (for these tests). >>>> >>>> On the other hand, I don't have any problem/loss running the ZBOX as a >>>> station >>>> with my current access point (6 years old Netgear WG602v3) in WPA2 mode. >>>> >>>> I can do furter tests at your will, if given sufficiently precise >>>> guidance. >>>> >>>> Claude Buisson >>>> >>>>> On 07/08/2011, Claude Buisson wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I try to configure a new system as an access point, with: >>>>>> >>>>>> ath0: mem 0xfeaf0000-0xfeafffff irq 17 at device 0.0 >>>>>> on >>>>>> pci2 >>>>>> ath0: AR9285 mac 192.2 RF5133 phy 14.0 >>>>>> >>>>>> ath0@pci0:2:0:0: class=0x028000 card=0x10891a3b chip=0x002b168c >>>>>> rev=0x01 >>>>>> hdr=0x00 >>>>>> vendor = 'Atheros Communications Inc.' >>>>>> device = 'AR9285 Wireless Network Adapter (PCI-Express)' >>>>>> class = network >>>>>> >>>>>> According to the sticker, it is a: >>>>>> >>>>>> AzureWave AW-NE785 ATH-5B95 >>>>>> >>>>>> I get a lot of: >>>>>> >>>>>> ath0: stuck beacon: resetting (bmiss count 4) >>>>>> >>>>>> I set hw.ath.bstuck=32 >>>>>> >>>>>> but the stuck beacon messages continue flowing, and I suffer from >>>>>> packet >>>>>> loss / >>>>>> lost association of the test station. >>>>>> >>>>>> This is on a 9-CURRENT system amd64 SMP (2011/07/24 svn r224294). >>>>>> >>>>>> TIA, >>>>>> >>>>>> CBu >>>>>> >>>>>> P.S.: to prevent a number of useless questions (as seen when googling): >>>>>> I >>>>>> live >>>>>> in the country, with _no_ other wireless network in the vicinity :-) >>>>>> _______________________________________________ >>>>>> freebsd-wireless@freebsd.org mailing list >>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>>> To unsubscribe, send any mail to >>>>>> "freebsd-wireless-unsubscribe@freebsd.org" >>>>>> >>>>> >>>> >>> >> >> > From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 12 02:16: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 BD1E0106564A for ; Fri, 12 Aug 2011 02:16:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3BF8FC0A for ; Fri, 12 Aug 2011 02:16:47 +0000 (UTC) Received: by gxk28 with SMTP id 28so2055702gxk.13 for ; Thu, 11 Aug 2011 19:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=OeCyXuhPpledjejpCQ5NfJq4eYwLTEPFIJ+YmExm0z4=; b=DXKlNj+e0sN2ZyMvyGJRpzq6J6p4fS5S5imaP9/JMOmXKG8WAXfkrEIQ5uFRpJ/Ga6 7IF9wBDFik0gFwyYKo6zUVy8lTek3N2s0XB9UnRUvqU44yXKPaukTcHhobWpUujP+gQd tAMnuWjbGzqTeGXUVzTkBrxEfjSgkVxZ/+O6E= MIME-Version: 1.0 Received: by 10.151.3.13 with SMTP id f13mr1326536ybi.215.1313115406281; Thu, 11 Aug 2011 19:16:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.151.26.14 with HTTP; Thu, 11 Aug 2011 19:16:46 -0700 (PDT) In-Reply-To: <4E444CB0.2010201@orange.fr> References: <4E3E6FFE.90101@orange.fr> <4E43DE78.4040801@orange.fr> <4E440B0C.8090608@orange.fr> <4E444CB0.2010201@orange.fr> Date: Fri, 12 Aug 2011 10:16:46 +0800 X-Google-Sender-Auth: fMOrob6xn669JL49m7zGL472ZGA Message-ID: From: Adrian Chadd To: Claude Buisson Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Is Atheros AR9285 usable in AP mode ? 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, 12 Aug 2011 02:16:47 -0000 On 12 August 2011 05:42, Claude Buisson wrote: > Here it is: > > hw.acpi.supported_sleep_state: S1 S3 S4 S5 > hw.acpi.power_button_state: S5 > hw.acpi.sleep_button_state: S1 > hw.acpi.lid_switch_state: NONE > hw.acpi.standby_state: S1 > hw.acpi.suspend_state: S3 > hw.acpi.sleep_delay: 1 > hw.acpi.s4bios: 0 > hw.acpi.verbose: 0 > hw.acpi.disable_on_reboot: 0 > hw.acpi.handle_reboot: 0 > hw.acpi.reset_video: 0 > hw.acpi.cpu.cx_lowest: C1 Ok. So it's not that. I'll fire up an AR9285 in hostap mode soon and let you know how it goes. Thanks again, adrian