From owner-freebsd-mobile@FreeBSD.ORG Sun Oct 3 16:28:55 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4980B16A4CE for ; Sun, 3 Oct 2004 16:28:55 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE8D543D49 for ; Sun, 3 Oct 2004 16:28:54 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.93] ([66.127.85.93]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i93GSqWi049091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 3 Oct 2004 09:28:54 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <416028D5.4020803@errno.com> Date: Sun, 03 Oct 2004 09:29:09 -0700 From: Sam Leffler User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Luckie References: <20041003203548.S83317@lycra.luckie.org.nz> In-Reply-To: <20041003203548.S83317@lycra.luckie.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-mobile@freebsd.org Subject: Re: ath driver on thinkpad R50p X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 16:28:55 -0000 Matthew Luckie wrote: > Hi > > I'm running BETA7 on a new ThinkPad R50p and have the issue (which i've > seen others having on -mobile). > > http://lists.freebsd.org/pipermail/freebsd-mobile/2004-September/004833.html > > > Here's what is dumped by the ath driver: > > ath0: mem 0xc0210000-0xc021ffff irq 11 at device 2.0 on pci2 > ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3 > ath0: Ethernet address: 00:05:4e:4a:bd:34 > ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps > 24Mbps 36Mbps 48Mbps 54Mbps > > I'm also having trouble compiling the BETA7 code with the patch in > http://people.freebsd.org/~sam/net80211+ath-20040818.tgz > > the patch applies cleanly but it doesn't compile, like > > http://lists.freebsd.org/pipermail/freebsd-mobile/2004-September/004785.html > > > But I thought I'd try and get the 11b modes detected. I did not > succeed, but here's what I saw: > > For the ath_rate_setup call with MODE_11A, the dot11Rate returned in > rs_rates are 130, 132, 139, and 150. I presume they are supposed to be > 2, 4, 10, 22 > > I tried hacking the rs_rates to those values (by subtracting 128 from > dot11Rate), but that did not apparently help detect the 11b modes either. 128 is the bit that indicates the rate is a basic rate. However the issue is in the hal and no amount of hacking rates will help you. > > So I looked at merging some of the extra code in ath_attach before the > calls to ath_rate_setup, but I got stuck at the call to > ath_hal_init_channels. It appears that the prototype is missing the > last parameter - xchanmode, and that appears to depend on what the hal.o > provides. Just set xchanmod to "true" (1); it controls whether to enable channels 13+14 when possible. > > I notice that the HAL has changed and that NetBSD has a more recent HAL, > one with that xchanmode parameter. FreeBSD has 0.9.6.3 while NetBSD has > 0.9.9.13 and perhaps my bug will be fixed with a more recent hal.o Your problem is indeed in the hal and what you need to do is get a more up to date hal. > > I'm happy to test any patches to the ath driver, and I'm also happy to > have a spare clue on where I might focus my efforts in getting the ath > driver going for my particular system. Is there demand for some grunt > work in merging netbsd's changes back to FreeBSD, or has that mostly > been handled for now and will be committed once 5.3 is out the door? I'm trying to update the patch to a more current -current but don't have an updated patch available yet. You can try bringing over code from netbsd or wait for me. > > I know that I could use project evil, but I thought I'd try and get the > source driver going if I could. If you're hungup the ndis driver is an excellent alternative. Sam