From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 25 08:13:29 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6339E1065670; Wed, 25 Jan 2012 08:13:29 +0000 (UTC) (envelope-from mvanco@di-vision.sk) Received: from mail.forza.sk (mail.forza.sk [92.240.234.106]) by mx1.freebsd.org (Postfix) with ESMTP id F23048FC08; Wed, 25 Jan 2012 08:13:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.forza.sk (Postfix) with ESMTP id A4B6A8031C; Wed, 25 Jan 2012 09:13:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=di-vision.sk; h= x-mailer:references:message-id:content-transfer-encoding:date :date:in-reply-to:from:from:content-type:content-type :mime-version:subject:subject:received:received; s=mail; t= 1327479207; bh=69zYYVa3NT5euIyJsYT7ZW5tvalVXaiT8L+iGKHfR+4=; b=d ihE1LjswTeZtVcDwNL81E1pYWnowtlmNeVgrG8CcZwU+0Uy1+rQbwW9p9I7ZVaVK j4GxSMmp6Swv9tJbZ/jWwQNLdUiiBGMOM3ZXcXwuF/skU2HTElCWOHZtCiqrrJPH VNKqGRWwRRk2Acs19We2p9hxtGg26etMlVWs4eLXY4= X-Virus-Scanned: amavisd-new at forza.sk Received: from mail.forza.sk ([127.0.0.1]) by localhost (mail.forza.sk [127.0.0.1]) (amavisd-new, port 10026) with LMTP id WDN0KT6Nalgn; Wed, 25 Jan 2012 09:13:27 +0100 (CET) Received: from [192.168.0.11] (unknown [178.143.101.64]) by mail.forza.sk (Postfix) with ESMTPSA id 2028B802F2; Wed, 25 Jan 2012 09:13:26 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=utf-8 From: =?utf-8?Q?Michal_Van=C4=8Do?= In-Reply-To: Date: Wed, 25 Jan 2012 09:13:26 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <2FBABAB8-A464-4A66-9753-20D72C6A7CB0@di-vision.sk> References: <43606099-9A1E-4B56-87FB-FB1CD23E9A8F@di-vision.sk> To: Adrian Chadd X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-wireless@freebsd.org, freebsd-stable@freebsd.org Subject: Re: ath0: device timeout on 9.0-STABLE X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 25 Jan 2012 08:13:29 -0000 Hi, thanks for your response. Though there is one more thing. Is my adapter supposed to work in 5GHz = band? I'm sure it works in windows and linux. Trying to switch to a = different SSID (5GHz one) on the same AP, wlan0 stay unassociated = (status: no carrier): # ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu = 1500 ether 00:19:7e:52:1c:c4 nd6 options=3D29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "XXX (5 GHz)" channel 36 (5180 MHz 11a) regdomain ETSI2 country SK indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF txpower 17 bmiss 7 mcastrate 6 = mgmtrate 6 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 12 wme burst roaming MANUAL =09 # /usr/src/tools/tools/ath/athstats/athstats -i ath0 3245 data frames received 1102 data frames transmit 652 mib overflow interrupts 6M current transmit rate 116 rx failed 'cuz of bad CRC 46 rx failed 'cuz of PHY err 46 CCK restart -0/+0 TDMA slot adjust (usecs, smoothed) 23 rssi of last ack 25 avg recv rssi -96 rx noise floor 1102 tx frames through raw api 1 spur immunity level 1 first step level 14 ANI increased spur immunity 889 ANI enabled OFDM weak signal detect 889 ANI disabled CCK weak signal threshold 10 ANI increased first step level 180060 cumulative OFDM phy error count 1709 cumulative CCK phy error count 113 bad FCS 25 average rssi (beacons only) 32 average rssi (all rx'd frames) 23 average rssi (ACKs only) Antenna profile: [0] tx 1056 rx 200 [1] tx 0 rx 3045 With these messages in dmesg: ar5212StopDmaReceive: dma failed to stop in 10ms AR_CR=3D0x00000024 AR_DIAG_SW=3D0x42000020 ar5212StopDmaReceive: dma failed to stop in 10ms AR_CR=3D0x00000024 AR_DIAG_SW=3D0x42000020 Michal On 25.1.2012, at 8:52, Adrian Chadd wrote: > Hi, >=20 > The LED stuff may be a bit broken for 9.0. I'll try to fix it up and = backport the GPIO and LED fixes. >=20 >=20 > Adrian >=20 > On 24 January 2012 23:51, Michal Van=C4=8Do = wrote: > Adrian, >=20 > believe or not =E2=80=A6 it simply started to work. I just left my = thinkpad turned off during the night and now when I booted, almost = everything works as expected: >=20 > # ifconfig wlan0 > wlan0: flags=3D8843 metric 0 = mtu 1500 > ether 00:19:7e:52:1c:c4 > inet 192.168.0.17 netmask 0xffffff00 broadcast 192.168.0.255 > nd6 options=3D29 > media: IEEE 802.11 Wireless Ethernet OFDM/48Mbps mode 11g > status: associated > ssid XXX channel 9 (2452 MHz 11g) bssid 10:9a:dd:88:2a:5d > regdomain ETSI2 country SK indoor ecm authmode WPA2/802.11i > privacy ON deftxkey UNDEF AES-CCM 3:128-bit txpower 30 bmiss 7 > scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 > roam:rate 5 protmode CTS wme burst roaming MANUAL >=20 > # /usr/src/tools/tools/ath/athstats/athstats -i ath0 > 4228 data frames received > 818 data frames transmit > 3 tx frames with an alternate rate > 126 long on-chip tx retries > 29480 mib overflow interrupts > 24M current transmit rate > 730 tx frames with short preamble > 210 rx failed 'cuz of bad CRC > 18 rx failed 'cuz of PHY err > 18 CCK restart > 10 periodic calibrations > -0/+0 TDMA slot adjust (usecs, smoothed) > 37 rssi of last ack > 37 avg recv rssi > -96 rx noise floor > 90 tx frames through raw api > 1 spur immunity level > 1 first step level > 9 ANI increased spur immunity > 2 ANI decrease spur immunity > 103 ANI enabled OFDM weak signal detect > 4 ANI disabled OFDM weak signal detect > 102 ANI disabled CCK weak signal threshold > 3 ANI increased first step level > 7392282 cumulative OFDM phy error count > 34526 cumulative CCK phy error count > 20 ANI forced listen time to zero > 126 missing ACK's > 291 bad FCS > 2928 beacons received > 39 average rssi (beacons only) > 37 average rssi (all rx'd frames) > 37 average rssi (ACKs only) > Antenna profile: > [0] tx 817 rx 65 > [1] tx 0 rx 4163 >=20 > I say "almost" because that small WiFi-LED doesn't blink as it should. = Is there any way to fix this? I see these sysctls: >=20 > dev.ath.0.softled: 0 > dev.ath.0.ledpin: 0 > dev.ath.0.ledon: 0 > dev.ath.0.ledidle: 2700 >=20 > but I'm lost with them :) >=20 > regards > michal >=20 > On 25.1.2012, at 4:46, Adrian Chadd wrote: >=20 > > Sure, can you please: > > > > * compile with the following options: > > > > options ATH_DEBUG > > options AH_DEBUG > > options ATH_DIAGAPI > > > > * compile /usr/src/sys/tools/tools/ath/athstats/ > > > > * run athstats -i ath0 and email them to me + = freebsd-wireless@freebsd.org > > > > Thanks! > > > > > > > > Adrian > > > > > > On 24 January 2012 04:01, Michal Van=C4=8Do = wrote: > > Hi there, > > > > I've installed 9.0-STABLE (also tried on 9.0-RELEASE) on my Thinkpad = T60 and I'm not able to use WiFi. Kernel is GENERIC. > > > > pciconf -lv: > > ath0@pci0:3:0:0: class=3D0x028000 card=3D0x0033168c = chip=3D0x0024168c rev=3D0x01 hdr=3D0x00 > > vendor =3D 'Atheros Communications Inc.' > > device =3D 'AR5008 Wireless Network Adapter' > > class =3D network > > > > relevant part of rc.conf: > > wlans_ath0=3D"wlan0" > > create_args_wlan0=3D"country SK" > > ifconfig_wlan0=3D"WPA DHCP" > > > > and wpa_supplicant.conf: > > ctrl_interface=3D/var/run/wpa_supplicant > > > > network=3D{ > > ssid=3D"XXX" > > psk=3D"XXX" > > } > > > > dmesg just fills with "ath0: device timeout" messages and wifi just = doesn't work. > > > > any clue? > > > > regards > > michal > > > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org" > > >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org" >=20