From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 14 17:09:18 2007 Return-Path: X-Original-To: mobile@freebsd.org Delivered-To: freebsd-mobile@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B91316A409 for ; Wed, 14 Feb 2007 17:09:18 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id EF66513C4A5 for ; Wed, 14 Feb 2007 17:09:17 +0000 (UTC) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id l1EH9E13002579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Feb 2007 09:09:14 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <45D34239.5070304@errno.com> Date: Wed, 14 Feb 2007 09:09:13 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5.0.9 (X11/20070208) MIME-Version: 1.0 To: Johann Hugo References: <200702141529.23439.jhugo@meraka.csir.co.za> In-Reply-To: <200702141529.23439.jhugo@meraka.csir.co.za> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: mobile@freebsd.org Subject: Re: Atheros - txpower - Compex WLM54AG + WLM54AG-23 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2007 17:09:18 -0000 Johann Hugo wrote: > I'm busy testing two wifi cards from Compex under FreeBSD 6.2-STABLE. The > WLM54AG card has a max txpower of 20dBm and the WLM54AG-23 has a max txpower > of 23dBm. > http://www.compex.com.sg/home/Datasheet/New_WLM_DSv1.9.pdf > > The problem is that both cards produces the same RSSI value on my remote > station a couple of km's away from my test setup. If I do the same test with > the same cards under Ubuntu 6.06 then the WLM54AG-23 produces a bigger RSSI > value on my remote station than the WLM54AG card. Beware that rssi isn't necessarily indicative of tx power. If you don't put the cards on a spectrum analyzer or power meter you're just guessing. > > Under FreeBSD, with a country code of 710 the max txpower can only go up-to 32 > (16dbm) on both cards and vith a country code of 0 they can go upto 36 > (18dbm). Under Ubunti I can set the max txpower of the WLM54AG card to 20dBm > and the WLM54AG-23 card to 23dBm. Where do you get these numbers? There was a hal bug I recently fixed where the _reported_ max tx power obtained from the calibration data was wrong. Note that is REPORTED, the actual max tx power cap was correct and you should see that measuring with a SA or power meter. > > I'm not to sure if this is the right place to post my problem, or whether I > should rather try the MadWifi list or the manufacturer of the cards itself, > but it feels like it's related to FreeBSD. It is unclear what is going on but there have been no hal changes that would affect operation and/or cause operation to be different between madwifi and freebsd. I suggest you measure things properly and then come back to me. FWIW I've recently done extensive testing of tx power control for ath devices with a variety of high power cards. I am reasonably confident the hal (and driver) are doing the right things. There appear, however, to be issues with at least one vendor's cards. I've yet to reach closure on the problem so cannot comment more--but in the end I was forced to switch vendors because my project couldn't wait. Sam > > Johann Hugo > > Here is some more detail of my setup > -------------------------------------------------------------------------------------------------------------- > > Local test side --- 2km wifi --- Remote side (RSSI) > > Local station: > wifi cards. Compex WLM54AG + WLM54AG-23 > Soekris net4526 running FreeBSD 6.2-STABLE #15: Mon Jan 29 > dmesg > ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > ath0: mem 0xa0000000-0xa000ffff irq 10 at device 17.0 on pci0 > ath0: [GIANT-LOCKED] > ath0: Ethernet address: 00:80:48:41:49:3d > ath0: mac 10.4 phy 6.1 radio 6.3 > > Remote station: > wifi card = Aries5354 > Wrap 2C running 6.2-PRERELEASE #9: Tue Dec 5 > dmesg > ath1: mem 0x80080000-0x8008ffff irq 9 at device 17.0 on pci0 > ath1: [GIANT-LOCKED] > ath1: Ethernet address: 00:02:6f:34:21:a0 > ath1: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3 > > RSSI stats on remote side: > ------------------------- > WLM54AG card > > FeeBSD > rodricks:~ > ifconfig ath1 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:80:48:41:49:3d 0 5 2M 15 0 17 60368 IS A > > Ubuntu > rodricks:~ > ifconfig ath1 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:80:48:41:49:3d 0 5 2M 13 0 108 61328 IS A > > > ---------------------- > WLM54AG-23 card > > FreeBSD > rodricks:~ > ifconfig ath1 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:80:48:7e:60:17 0 5 1M 13 0 38066 47824 IS A > > countrycode = 0 > rodricks:~ > ifconfig ath1 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:80:48:7e:60:17 0 5 5M 15 0 43 51008 IS A > > Ubuntu > rodricks:~ > ifconfig ath1 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 00:80:48:7e:60:17 0 5 5M 20 0 62 4672 IS A WME > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" > >