From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 23 19:17:00 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4BC6E78; Tue, 23 Jul 2013 19:17:00 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A9FE201C; Tue, 23 Jul 2013 19:16:59 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id y10so3825263wgg.2 for ; Tue, 23 Jul 2013 12:16:57 -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:cc:content-type; bh=MjZVE4qE8jFbTwlcidm5BEaN2Pjc680Uiolwq0JKgKo=; b=bZ5ydVft8/RAMdKlxF6neAVVjtLHBIdJn7wPrzICZygC8JE3sdGaSm/Fm5L+uhJIUJ CtYgbOeRPYPaxZqLmnOC0jZQ2t0UDeNIkkjLKL1PeWvXIu0dIlIWHaMSJAQH8GuALEvD hkLv/N0fGoNqge7NLg9L2xkkmL3IKyJjj5ll56cH/2+O48pIpMp5l9ZCglPA7csL4tJB 3hgxgdQHyqliiyERawl712d25chUcJsC2la09D7F1benVRy5506ep/+TDoQ4Qopd3TYw GeLBS6LnN7AWPv58Hq0rRPTSMwr0Pav50XSw/5fLTesDzmQ+yUY/eb9pMPCG39rbXOLN q/Ew== MIME-Version: 1.0 X-Received: by 10.194.234.100 with SMTP id ud4mr24132682wjc.44.1374607017834; Tue, 23 Jul 2013 12:16:57 -0700 (PDT) Received: by 10.194.240.132 with HTTP; Tue, 23 Jul 2013 12:16:57 -0700 (PDT) Date: Tue, 23 Jul 2013 23:16:57 +0400 Message-ID: Subject: Re: Not work ATH (AR9285) after update [SOLVED] From: Andrey Fesenko To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" , freebsd-current X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 19:17:00 -0000 On Tue, Jul 23, 2013 at 6:21 PM, Adrian Chadd wrote: > Ok, so. > > On 23 July 2013 07:12, Andrey Fesenko wrote: > >>>> i'm horrible news, after update my notebook not nave wi-fi :( >>>> full update system, build and install world and kernel. > > What did it used to run? > > # grep wlan0 /etc/rc.conf wlans_ath0="wlan0" ifconfig_wlan0="WPA DHCP" ifconfig_wlan0_ipv6="inet6 accept_rtadv" >>>> Jul 23 15:34:27 x220 wpa_supplicant[2572]: wlan0: Failed to initiate AP scan >>>> Jul 23 15:34:29 x220 wpa_supplicant[2572]: ioctl[SIOCS80211, op=103, >>>> val=0, arg_len=128]: Operation now in progress >>>> Jul 23 15:34:29 x220 kernel: ath0: ath_reset_grablock: didn't finish >>>> after 10 iterations >>>> Jul 23 15:34:29 x220 kernel: ath0: ath_reset_grablock: warning, >>>> recursive reset path! > > Your previous log indicated multiple copies of wpa_supplicant. That > should be investigated. > >> Not, >> root@x220:~ # ps -A | grep wpa >> 671 - Ss 0:00.73 /usr/sbin/wpa_supplicant -s -B -i wlan0 -c /etc/wpa_suppl >> >> Start, or restart work standart >> # /etc/rc.d/netif restart >> this scheme work fine ~year or half year. >> Although of course the chip AR9285 is not very stable, especially in >> combination with some AP. > > That's why I updated the support. It's much more stable now. Except if > you somehow get >1 wpa_supplicant instances running. > >> >> Hm... intresting boot messages >> ... >> Jul 23 17:47:06 x220 kernel: ath0: mem >> 0xf2400000-0xf240ffff irq 17 at device 0.0 on pci3 >> Jul 23 17:47:06 x220 kernel: [ath] AR9285 Main LNA config: LNA1 >> Jul 23 17:47:06 x220 kernel: [ath] AR9285 Alt LNA config: LNA2 >> Jul 23 17:47:06 x220 kernel: [ath] LNA diversity disabled, Diversity disabled >> Jul 23 17:47:06 x220 kernel: ath0: [HT] enabling HT modes >> Jul 23 17:47:06 x220 kernel: ath0: [HT] 1 stream STBC receive enabled >> Jul 23 17:47:06 x220 kernel: ath0: [HT] 1 RX streams; 1 TX streams >> Jul 23 17:47:06 x220 kernel: ath0: AR9285 mac 192.2 RF5133 phy 14.0 >> Jul 23 17:47:06 x220 kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > > x220 - is this a thinkpad? Or what kind of laptop is it? > > Have you added this card in yourself? Are both antennas connected? > > The EEPROM settings disable diversity. Thus, the transmit path is > always LNA1, the receive path is always LNA1. So, it should at least > have that antenna connected. > Yes it's thinkpad X220 :) :( hacked BIOS for remove wite list, yes antenna connected card installed near yea ago and all this time working for startup on the rc.conf >> old log >> Jul 2 13:30:02 x220 kernel: ath0: mem >> 0xf2400000-0xf240ffff irq 17 at device 0.0 on pci3 >> Jul 2 13:30:02 x220 kernel: ath0: [HT] enabling HT modes >> Jul 2 13:30:02 x220 kernel: ath0: [HT] 1 stream STBC receive enabled >> Jul 2 13:30:02 x220 kernel: ath0: [HT] 1 RX streams; 1 TX streams >> Jul 2 13:30:02 x220 kernel: ath0: AR9285 mac 192.2 RF5133 phy 14.0 >> Jul 2 13:30:02 x220 kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > > What's the svn revision on that? > FreeBSD 10.0-CURRENT #0 r249991 >> and old style reconnect >> Jul 2 14:15:33 x220 wpa_supplicant[516]: CTRL-EVENT-DISCONNECTED >> bssid=58:6d:8f:fa:d9:50 reason=0 >> Jul 2 14:15:33 x220 kernel: wlan0: link state changed to DOWN >> Jul 2 14:15:35 x220 wpa_supplicant[516]: Trying to associate with >> 58:6d:8f:fa:d9:50 (SSID='hometest' freq=2472 MHz) >> Jul 2 14:15:35 x220 wpa_supplicant[516]: Associated with 58:6d:8f:fa:d9:50 >> Jul 2 14:15:35 x220 kernel: wlan0: link state changed to UP >> Jul 2 14:15:35 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 14:15:35 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 >> Jul 2 14:15:35 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 14:15:35 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 >> Jul 2 14:15:35 x220 wpa_supplicant[516]: WPA: Key negotiation >> completed with 58:6d:8f:fa:d9:50 [PTK=CCMP GTK=CCMP] >> Jul 2 14:15:35 x220 wpa_supplicant[516]: CTRL-EVENT-CONNECTED - >> Connection to 58:6d:8f:fa:d9:50 completed (reauth) [id=0 id_str=] >> Jul 2 14:15:35 x220 dhclient: New IP Address (wlan0): 192.168.1.22 >> Jul 2 14:15:35 x220 dhclient: New Subnet Mask (wlan0): 255.255.255.0 >> Jul 2 14:15:35 x220 dhclient: New Broadcast Address (wlan0): 192.168.1.255 >> Jul 2 14:15:35 x220 dhclient: New Routers (wlan0): 192.168.1.1 >> Jul 2 14:19:57 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 14:19:57 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 >> Jul 2 14:20:00 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 14:20:00 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 >> Jul 2 14:22:21 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 14:22:21 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 >> Jul 2 15:10:13 x220 wpa_supplicant[516]: WPA: Group rekeying >> completed with 58:6d:8f:fa:d9:50 [GTK=CCMP] >> Jul 2 15:10:13 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 15:10:13 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 >> Jul 2 15:12:00 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 15:12:00 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 >> Jul 2 15:12:13 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 >> ts_finaltsi=0 >> Jul 2 15:12:13 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 >> ts_status 0x0 > > These are likely because your AP disables the low CCK rates, but the > rate control code currently tries to transmit on them. It succeeds in > transmitting, but then it gets angry because that rate isn't in said > rate table negotiated with the AP. > > Please try it manually: > > # ifconfig wlan0 destroy > # pkill -9 wpa_supplicant > # ifconfig wlan0 create wlandev ath0 > # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf & > > .. and see what happens. > Hm... manual start OK # ifconfig wlan0 destroy ifconfig: interface wlan0 does not exist # pkill -9 wpa_supplicant # ifconfig wlan0 create wlandev ath0 # wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant.conf wpa_supplicant v2.0 Successfully initialized wpa_supplicant Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' full debug log http://pastebin.com/ie599AvH EUREKA changes in the IPv6 with out IPv6 starts /etc/rc.d/netif restar log Jul 23 23:09:34 x220 root: /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant Jul 23 23:09:36 x220 wpa_supplicant[8465]: wlan0: Trying to associate with 58:6d:8f:fa:d9:50 (SSID='hometest' freq=2472 MHz) Jul 23 23:09:36 x220 kernel: wlan0: link state changed to UP Jul 23 23:09:36 x220 wpa_supplicant[8465]: wlan0: Associated with 58:6d:8f:fa:d9:50 Jul 23 23:09:36 x220 devd: Executing '/etc/rc.d/dhclient quietstart wlan0' Jul 23 23:09:36 x220 wpa_supplicant[8465]: wlan0: WPA: Key negotiation completed with 58:6d:8f:fa:d9:50 [PTK=CCMP GTK=CCMP] Jul 23 23:09:36 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 ts_finaltsi=0 Jul 23 23:09:36 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 ts_status 0x0 Jul 23 23:09:36 x220 wpa_supplicant[8465]: wlan0: CTRL-EVENT-CONNECTED - Connection to 58:6d:8f:fa:d9:50 completed [id=0 id_str=] Jul 23 23:09:36 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 ts_finaltsi=0 Jul 23 23:09:36 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 ts_status 0x0 Jul 23 23:09:36 x220 dhclient: New IP Address (wlan0): 192.168.1.23 Jul 23 23:09:36 x220 dhclient: New Subnet Mask (wlan0): 255.255.255.0 Jul 23 23:09:36 x220 dhclient: New Broadcast Address (wlan0): 192.168.1.255 Jul 23 23:09:36 x220 dhclient: New Routers (wlan0): 192.168.1.1 Jul 23 23:10:20 x220 kernel: ath0: ath_rate_tx_complete: ts_rate=27 ts_finaltsi=0 Jul 23 23:10:20 x220 kernel: ath0: bad series0 hwrate 0x1b, tries 1 ts_status 0x0 Thank, Adrian!!! :)