From owner-freebsd-mobile@FreeBSD.ORG Sat Jun 8 13:49:49 2013 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2D7AEB7D for ; Sat, 8 Jun 2013 13:49:49 +0000 (UTC) (envelope-from l.yotov@gmail.com) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id EB2181721 for ; Sat, 8 Jun 2013 13:49:48 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id o10so2956045qcv.35 for ; Sat, 08 Jun 2013 06:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=xTZjjQ3lymaZaE2LX1ZSQniQH0Ox4h8DQAxSfNJ+a2k=; b=zYpz5SGS+K6p56cwx/iYLDX1lh6MW0BmIONNZoYa5AgHOdnD6kAX81OexUtGsbE8XK 12cpNrMuFyd8P4dVaGv89kZCu1vc8Jbgv/HKac8CzygOxJQzj2auFTxAotvz6QctriGs I1gnTP15c8c0gSMFidxjZeDIQirdVuQCaUicgyFme8VBCe1519y09ENjd7lK/ncepFFY k4WtAQV8hvJyHv1uewJUFVFbSHoLK3HQL7KwMUATENd7Ck2RCLbURnexdD+szPENOv2u t7H+mx03KKa27EKPKC8AIwYNVP33exw4kZ9twgKhOR9uYHoLkBqLk1Ujdj2cw3xBjrh0 O8jg== MIME-Version: 1.0 X-Received: by 10.229.148.204 with SMTP id q12mr1140251qcv.32.1370699388456; Sat, 08 Jun 2013 06:49:48 -0700 (PDT) Received: by 10.224.55.194 with HTTP; Sat, 8 Jun 2013 06:49:48 -0700 (PDT) Date: Sat, 8 Jun 2013 16:49:48 +0300 Message-ID: Subject: Thinkpad T60 with Atheros working only after restart from Windows From: Lyubomir Yotov To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jun 2013 13:49:49 -0000 Hello, I have a Thinkpad T60 with dual boot between Windows XP and FreeBSD 9.1-Release: uname -a FreeBSD T60.workgroup 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 I am trying to use my wifi card which is: dmesg .... ath0: mem 0xedf00000-0xedf0ffff irq 17 at device 0.0 on pci3 ath0: AR5418 mac 12.10 RF5133 phy 8.1 .... pciconf -lv .... ath0@pci0:3:0:0: class=0x028000 card=0x0033168c chip=0x0024168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5008 Wireless Network Adapter' class = network ..... I followed several HOW-TOs in order to make it work. Unfortunately I it is working only after I reboot from my Windows installation (regardless of the position of the wifi switch on the front panel of the notebook). After restart from Windows everything is fine - the wifi associates with the AP and I can use it. If I reboot the system during the boot and afterwards I constantly get: ath0: device timeout When I get the device status through ifconfig I can see that ath0 is associated but wlan0 is not associated. ifconfig ath0 ath0: flags=8843 metric 0 mtu 2290 ether 00:19:7e:91:xx:xx nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated ifconfig wlan0 wlan0: flags=8843 metric 0 mtu 1500 ether 00:19:7e:91:xx:xx nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 5 (2432 MHz 11g) regdomain 98 indoor ecm authmode WPA privacy ON deftxkey UNDEF txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL In /var/log/messages I get: Jun 8 16:39:16 PC wpa_supplicant[3463]: Trying to associate with 54:e6:fc:ae:xx:xx (SSID='access1' freq=2432 MHz) Jun 8 16:39:20 PC kernel: ath0: device timeout Jun 8 16:39:26 PC wpa_supplicant[3463]: Authentication with 54:e6:fc:ae:xx:xx timed out. If I scan for wireless networks I get a list and my ap is in the list ifconfig wlan0 scan SSID/MESH ID BSSID CHAN RATE S:N INT CAPS net1 00:11:11:01:xx:xx 6 54M -68:-96 100 EP 5edf9c 70:71:bc:26:xx:xx 11 54M -68:-96 100 EP WPS WPA WME access1 54:e6:fc:ae:xx:xx 5 54M -66:-96 100 EP WPA HTCAP WME In rc.local I have: wlans_ath0="wlan0" ifconfig_wlan0="WPA DHCP" In wpa_supplicant I have: ctrl_interface=/var/run/wpa_supplicant eapol_version=2 ap_scan=1 fast_reauth=1 network={ ssid="access1" psk="secret1" priority=5 } network={ ssid="access2" psk="secret2" priority=5 } I searched the net for solution to my problem but I couldn't find one. Can you help me with this? Regards, Lyubomir From owner-freebsd-mobile@FreeBSD.ORG Sat Jun 8 15:28:40 2013 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2D1112A7; Sat, 8 Jun 2013 15:28:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-f45.google.com (mail-qe0-f45.google.com [209.85.128.45]) by mx1.freebsd.org (Postfix) with ESMTP id D7AEB113D; Sat, 8 Jun 2013 15:28:39 +0000 (UTC) Received: by mail-qe0-f45.google.com with SMTP id w7so458720qeb.18 for ; Sat, 08 Jun 2013 08:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=c3vKGuuHL40oZVRtqT85dMZEo8edZkkEW/izyewlarM=; b=zASkf/tQmt5WW6RXT3ig6jCQmn1PUwJNogOixPFT3RAtSBpW6mYSgjNfrsAb0ngYpG 2MBGcnj5HS4EDPtEjyHe4lrdrgZNtfZyikKw5w6+lgFzkHWWjIu9yizRvAtY1r/jxiC+ cPkBnMiofDUgYEGo2z0a6Q+J+h8fKNaLhEvzYiRIAJMEiPQqaf2JM7jFu9E16KYmfYRT L/Ca0THz9Zf9zkfOUEsLhtviQZqpEetu9tu2qbr++t5saR+n10NmDvL9xlVhrUJc4J/Z X5WX7Go+u15KDD3TyKB/c6WTNjOr8dmokzXvcDIQ44O6wHmvP38LFgC5usH3cctpxRMk EZKA== MIME-Version: 1.0 X-Received: by 10.224.87.200 with SMTP id x8mr2136807qal.7.1370705318862; Sat, 08 Jun 2013 08:28:38 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.5.65 with HTTP; Sat, 8 Jun 2013 08:28:38 -0700 (PDT) In-Reply-To: References: Date: Sat, 8 Jun 2013 08:28:38 -0700 X-Google-Sender-Auth: DbZrBM5U-JWNij0rt53kPrI3Ex0 Message-ID: Subject: Re: Thinkpad T60 with Atheros working only after restart from Windows From: Adrian Chadd To: Lyubomir Yotov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-mobile@freebsd.org X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jun 2013 15:28:40 -0000 Hm! Ok, this should be working. I frequently test (read: every other day) with the AR5416. But you're not the first person to report this bug. Unfortunately when this happens, the interrupts aren't actually making it to the OS. Can you check the output of vmstat -i whilst you're doing it? The ath0 counter should be increasing. adrian On 8 June 2013 06:49, Lyubomir Yotov wrote: > Hello, > I have a Thinkpad T60 with dual boot between Windows XP and FreeBSD > 9.1-Release: > > uname -a > FreeBSD T60.workgroup 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec > 4 06:55:39 UTC 2012 > root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC > i386 > > I am trying to use my wifi card which is: > > dmesg > .... > ath0: mem 0xedf00000-0xedf0ffff irq 17 at device 0.0 on pci3 > ath0: AR5418 mac 12.10 RF5133 phy 8.1 > .... > > pciconf -lv > .... > ath0@pci0:3:0:0: class=0x028000 card=0x0033168c chip=0x0024168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR5008 Wireless Network Adapter' > class = network > ..... > > I followed several HOW-TOs in order to make it work. Unfortunately I it is > working only after I reboot from my Windows installation (regardless of the > position of the wifi switch on the front panel of the notebook). After > restart from Windows everything is fine - the wifi associates with the AP > and I can use it. If I reboot the system during the boot and afterwards I > constantly get: > > ath0: device timeout > > When I get the device status through ifconfig I can see that ath0 is > associated but wlan0 is not associated. > > ifconfig ath0 > ath0: flags=8843 metric 0 mtu 2290 > ether 00:19:7e:91:xx:xx > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > > ifconfig wlan0 > wlan0: flags=8843 metric 0 mtu 1500 > ether 00:19:7e:91:xx:xx > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 5 (2432 MHz 11g) > regdomain 98 indoor ecm authmode WPA privacy ON deftxkey UNDEF > txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle > 250 > roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL > > > In /var/log/messages I get: > > Jun 8 16:39:16 PC wpa_supplicant[3463]: Trying to associate with > 54:e6:fc:ae:xx:xx (SSID='access1' freq=2432 MHz) > Jun 8 16:39:20 PC kernel: ath0: device timeout > Jun 8 16:39:26 PC wpa_supplicant[3463]: Authentication with > 54:e6:fc:ae:xx:xx timed out. > > If I scan for wireless networks I get a list and my ap is in the list > > ifconfig wlan0 scan > SSID/MESH ID BSSID CHAN RATE S:N INT CAPS > net1 00:11:11:01:xx:xx 6 54M -68:-96 100 EP > 5edf9c 70:71:bc:26:xx:xx 11 54M -68:-96 100 EP WPS WPA WME > access1 54:e6:fc:ae:xx:xx 5 54M -66:-96 100 EP WPA HTCAP WME > > > In rc.local I have: > > wlans_ath0="wlan0" > ifconfig_wlan0="WPA DHCP" > > In wpa_supplicant I have: > > ctrl_interface=/var/run/wpa_supplicant > eapol_version=2 > ap_scan=1 > fast_reauth=1 > > network={ > ssid="access1" > psk="secret1" > priority=5 > } > network={ > ssid="access2" > psk="secret2" > priority=5 > } > > I searched the net for solution to my problem but I couldn't find one. Can > you help me with this? > > > Regards, > > Lyubomir > _______________________________________________ > 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"