From owner-freebsd-mobile@FreeBSD.ORG Mon Oct 13 03:12:23 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99DCE106568C for ; Mon, 13 Oct 2008 03:12:23 +0000 (UTC) (envelope-from edwinlculp@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 4B68A8FC0C for ; Mon, 13 Oct 2008 03:12:23 +0000 (UTC) (envelope-from edwinlculp@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so421617qwb.7 for ; Sun, 12 Oct 2008 20:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Dxk8wyddRieC8D0YobbsmQbLcU0hCiI7iyhzSAaDSY4=; b=Q5VZdJ/uyLtGzLplAuFq/DqP5Yyky594JZ2oS5frNGscp5c1NU69CztUEc3jMozhFD HhLXoS8ZGkcGBxjmXwoley8GdjsRn1yy+6G+9FrBs49h+OpZShz06jqBZ9aHsgBmoTsA Qy4D8/5EOpEogtFtdxSjNQI+Emu6Q/NKs0APc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=uv5MHI9UXAcXaXOsQzWVUOWIMn/TcZxMQTElY64kV9J0ZcViD6JiMtNsKPRc1YHMYR gONO61pZktcSQH0I7tB0+j5zr5CMGYbxCCZbK0N+jB9zjSamDy3Z62AHAxxEbO5nDdNg 9dgoKNKUdx1ZVBcT0gFbyJuFLPy5idGbkGens= Received: by 10.214.12.19 with SMTP id 19mr4150115qal.43.1223867530675; Sun, 12 Oct 2008 20:12:10 -0700 (PDT) Received: by 10.214.11.12 with HTTP; Sun, 12 Oct 2008 20:12:10 -0700 (PDT) Message-ID: <7affaed60810122012n526929e1j9d38b977a029251e@mail.gmail.com> Date: Sun, 12 Oct 2008 22:12:10 -0500 From: "Edwin L. Culp W." To: "Sam Leffler" In-Reply-To: <48F2915B.6090507@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7affaed60810091639n2714fae1mbd34048bc8be89c3@mail.gmail.com> <7affaed60810100658k354550abs2754a2c1ea1b0958@mail.gmail.com> <7affaed60810120614l79670870t7e4914615094056f@mail.gmail.com> <200810122351.13564.jhugo@meraka.csir.co.za> <48F2915B.6090507@freebsd.org> Cc: Johann Hugo , freebsd-mobile@freebsd.org Subject: Re: I lost ath0 support on current sometime between Sept 20 and Sept 26. 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: Mon, 13 Oct 2008 03:12:23 -0000 On Sun, Oct 12, 2008 at 7:07 PM, Sam Leffler wrote: > Johann Hugo wrote: >> >> On Sunday 12 October 2008, Edwin L. Culp W. wrote: >> >>> >>> On Fri, Oct 10, 2008 at 8:58 AM, Edwin L. Culp W. >>> >> >> wrote: >> >>>> >>>> On Thu, Oct 9, 2008 at 9:21 PM, Sam Leffler wrote: >>>> >>>>> >>>>> Edwin L. Culp W. wrote: >>>>> >>>>>> >>>>>> I started this thread on current but I lost it to Ashish Shukla so I'm >>>>>> going to try here and see if I can explain it better and solve this >>>>>> strange issue. >>>>>> >>>>>> I was happily using Sam's ath_hal-20080528 patch and IIRC the >>>>>> committed ath_hal fixes until Sept 20. I didn't build another new >>>>>> kernel until Sept 26. From that date on I have been unable to get it >>>>>> working. The sept 20 kernel still works great. I'm using it to send >>>>>> this email. I don't have to change anything I just start kernel.old >>>>>> and run it rather than today's kernel that has no problems other than >>>>>> bringing up ath0/wlan0. >>>>>> >>>>>> Some general info for both kernels that I can find no important >>>>>> differences and now really doubt that the problem is hal_ath but >>>>>> something else that has changed and is causing the problem. I have >>>>>> thought of dhcp, ifconfig, ??? The general information for both >>>>>> follows: >>>>>> >>>>>> >>>>>> FreeBSD 8.0-CURRENT #50: Thu Oct 9 05:27:41 CDT 2008 >>>>>> root@ed.local.net.mx:/usr/obj/usr/src/sys/ENCONTACTO >>>>>> >>>>>> rc.conf that doesn't change and works for sept 20 kernel but not >>>>>> todays: >>>>>> >>>>>> wlans_ath0=wlan0 >>>>>> ifconfig_wlan0="DHCP ssid virus wepmode on wepkey 1:0x2373FE9515 >>>>>> weptxkey 1" >>>>>> >>>>>> ifconfig with todays kernel for ath0 and wlan0: >>>>>> >>>>>> >>>>>> ath0: flags=8843 metric 0 mtu >>>>>> 2290 ether 00:1d:d9:27:5c:e5 >>>>>> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >>>>>> status: associated >>>>>> wlan0: flags=8843 metric 0 mtu >>>>>> 1500 >>>>>> ether 00:1d:d9:27:5c:e5 >>>>>> media: IEEE 802.11 Wireless Ethernet OFDM/48Mbps mode 11g >>>>>> status: associated >>>>>> ssid virus channel 6 (2437 Mhz 11g) bssid 00:1d:7e:51:e1:4d >>>>>> regdomain 101 indoor ecm authmode OPEN privacy ON deftxkey 1 >>>>>> wepkey 1:40-bit txpower 16 bmiss 7 scanvalid 450 bgscan >>>>>> bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode >>>>>> CTS wme burst roaming MANUAL >>>>>> >>>>>> The part of the dmesg that show ath0 and wlan0 with hal >>>>>> >>>>>> ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, >>>>>> RF2413, RF5413, RF2133, RF2425, RF2417) >>>>>> >>>>>> ath0: mem 0xd0400000-0xd040ffff irq 19 at device >>>>>> 0.0 on pci5 >>>>>> ath0: [ITHREAD] >>>>>> ath0: WARNING: using obsoleted if_watchdog interface >>>>>> ath0: mac 14.2 phy 7.0 radio 10.2 >>>>>> >>>>>> >>>>>> >>>>>> ----------------------------------------------------------------------- >>>>>> ------------------------- >>>>>> >>>>>> The same information for the Sept 20 kernel. >>>>>> >>>>>> FreeBSD ed.local.net.mx 8.0-CURRENT FreeBSD 8.0-CURRENT #34: Sat Sep >>>>>> 20 05:37:05 CDT 2008 >>>>>> root@ed.local.net.mx:/usr/obj/usr/src/sys/ENCONTACTO i386 >>>>>> >>>>>> rc.conf is the same. >>>>>> >>>>>> If config for Sept 20 kernel: >>>>>> >>>>>> ath0: flags=8843 metric 0 mtu >>>>>> 2290 ether 00:1d:d9:27:5c:e5 >>>>>> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >>>>>> status: associated >>>>>> wlan0: flags=8843 metric 0 mtu >>>>>> 1500 >>>>>> ether 00:1d:d9:27:5c:e5 >>>>>> inet 172.16.0.7 netmask 0xffffff00 broadcast 172.16.0.255 >>>>>> media: IEEE 802.11 Wireless Ethernet DS/5.5Mbps mode 11g >>>>>> status: associated >>>>>> ssid virus channel 6 (2437 Mhz 11g) bssid 00:1d:7e:51:e1:4d >>>>>> regdomain 101 indoor ecm authmode OPEN privacy ON deftxkey 1 >>>>>> wepkey 1:40-bit txpower 16 bmiss 7 scanvalid 60 bgscan >>>>>> bgscanintvl 300 >>>>>> bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst >>>>>> >>>>>> Same parts of the dmesg form Sept 20 kernel. >>>>>> >>>>>> ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, >>>>>> RF2413, RF5413, RF2133, RF2425, RF2417) >>>>>> >>>>>> ath0: mem 0xd0400000-0xd040ffff irq 19 at device >>>>>> 0.0 on pci5 >>>>>> ath0: [ITHREAD] >>>>>> ath0: WARNING: using obsoleted if_watchdog interface >>>>>> ath0: mac 14.2 phy 7.0 radio 10.2 >>>>>> >>>>> >>>>> Does it work w/o WEP? Do you any crypto errors show up in wlanstats >>>>> and/or athstats output? >>>>> >>>>> Sam >>>>> >>>> >>>> I haven't tried it and I should have since I'm pretty sure that it is >>>> something external. I've got travel in a few minutes but I'll do it >>>> tomorrow on my AP at home to not interrupt anyone. >>>> >>> >>> Good morning, Sam. I just disabled encryption on my router and >>> changed my rc.conf to >>> ifconfig_wlan0="DHCP ssid virus2" >>> and as you probably knew, it works flawlessly. >>> >>> Now I have to ask, what I can do about wep that works on my Sept 20 >>> and earlier kernels and doesn't work on my recent kernels? >>> >>> Thanks, >>> >>> ed >>> >> >> I don't know it this is related, but something changed with the WEP-key >> index. On my EeePC I had to change my wpa_supplicant.conf file to use >> wep_tx_keyidx=0 and wep_key0=mywepkey before I could get it to work. I the >> past it always worked with wep_tx_keyidx=1 and wep_key1=xxxxx. >> >> The funny thing is that ifconfig reports it as deftxkey 1 and wepkey 1 if >> I use index 0 in wpa_supplicant and ifconfig will report deftxkey 2 and >> wepkey 2 if I use index 1 in wpa_supplicant.conf >> > > I believe it has always been true that key indices reported by ifconfig are > in the rage [1..4] while wpa_supplicant key indices specified in the config > file are [0..3]. I don't recall anything changing in that area for a long > time but I did make changes to the net80211 crypto code around that time. > > Sam Thanks, Sam. What worries me is that I seem to be alone with this problem. ed