From owner-freebsd-mobile@FreeBSD.ORG Sun Oct 3 08:57:48 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 AD85B16A4CE for ; Sun, 3 Oct 2004 08:57:48 +0000 (GMT) Received: from grunt14.ihug.co.nz (grunt14.ihug.co.nz [203.109.254.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id A106A43D39 for ; Sun, 3 Oct 2004 08:57:47 +0000 (GMT) (envelope-from mjl@luckie.org.nz) Received: from 203-118-173-23.adsl.ihug.co.nz (lycra.luckie.org.nz) [203.118.173.23] by grunt14.ihug.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1CE2Bd-00041N-00; Sun, 03 Oct 2004 21:57:46 +1300 Received: from mjl (helo=localhost) by lycra.luckie.org.nz with local-esmtp (Exim 4.42 (FreeBSD)) id 1CE2BQ-000Lt7-Vk for freebsd-mobile@freebsd.org; Sun, 03 Oct 2004 21:57:32 +1300 Date: Sun, 3 Oct 2004 21:57:32 +1300 (NZDT) From: Matthew Luckie To: freebsd-mobile@freebsd.org Message-ID: <20041003203548.S83317@lycra.luckie.org.nz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: 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 08:57:48 -0000 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. 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. 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 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 know that I could use project evil, but I thought I'd try and get the source driver going if I could. Thanks Matthew