From nobody@FreeBSD.org  Tue Aug 31 13:17:32 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4E0DB10656AA
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Aug 2010 13:17:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 226E48FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Aug 2010 13:17:32 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7VDHViI079428
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 31 Aug 2010 13:17:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7VDHVX4079426;
	Tue, 31 Aug 2010 13:17:31 GMT
	(envelope-from nobody)
Message-Id: <201008311317.o7VDHVX4079426@www.freebsd.org>
Date: Tue, 31 Aug 2010 13:17:31 GMT
From: Bartek Krawczyk <bbartlomiej@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ath] Atheros 5424/2424 - AR2425 stopped working with WPA2-PSK(AES) in 8.1-RELEASE
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150148
>Category:       kern
>Synopsis:       [ath] Atheros 5424/2424 - AR2425 stopped working with WPA2-PSK(AES) in 8.1-RELEASE [regression]
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    adrian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 31 13:20:01 UTC 2010
>Closed-Date:    Sat Apr 09 03:12:13 UTC 2011
>Last-Modified:  Sat Apr 09 03:12:13 UTC 2011
>Originator:     Bartek Krawczyk
>Release:        8.1-RELASE
>Organization:
>Environment:
FreeBSD nc10 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Hello, I am using an atheros wireless card (as in subject) and it stopped working after upgrading to 8.1-release. I am using wpa_supplicant and WPA2-PSK (AES/CCMP). The log says it connected to the AP successfully but it doesn't send or recieve any data. I can't acquire a dhcp lease. I have just installed 8.0-release again and it works flawlessly. 
It's not the problem with the router (it works with linux on the same machine, and it works after reinstalling 8.0-release) nor with the IP settings (it doesn't work even if I use static IP, not the dhcp).

Here's output of /var/log/messages:
Aug 30 23:04:49 nc10 kernel: wlan0: Ethernet address: 00:24:2b:d1:9a:05
Aug 30 23:06:23 nc10 wpa_supplicant[1663]: CTRL-EVENT-SCAN-RESULTS 
Aug 30 23:06:23 nc10 wpa_supplicant[1663]: Trying to associate with 94:0c:6d:a1:71:91 (SSID='plastus' freq=2462 MHz)
Aug 30 23:06:23 nc10 kernel: wlan0: link state changed to UP
Aug 30 23:06:23 nc10 wpa_supplicant[1663]: Associated with 94:0c:6d:a1:71:91
Aug 30 23:06:24 nc10 wpa_supplicant[1663]: WPA: Key negotiation completed with 94:0c:6d:a1:71:91 [PTK=CCMP GTK=CCMP]
Aug 30 23:06:24 nc10 wpa_supplicant[1663]: CTRL-EVENT-CONNECTED - Connection to 94:0c:6d:a1:71:91 completed (auth) [id=0 id_str=]

rc.conf has:
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"

Here's my dmesg:
http://pastebin.com/7dn5W63W

Here's ifconfig wlan0 scan:
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
NETIA-DF20BB    00:23:8e:df:20:bd    6   54M -86:-96  100 EP   WPA
plastus         94:0c:6d:a1:71:91   11   54M -76:-96  100 EP   RSN
neostrada_06bc  00:1a:6b:e8:6b:0e   10   54M -93:-96  100 EP  

wpa_supplicant.conf:
ctrl_interface_group=wheel
ctrl_interface=/var/run/wpa_supplicant/

network={
ssid="plastus"
psk="xxxxxxxxxx"
}

Here is wpa_supplicant -dd output:
http://pastebin.com/AE2m5hgq
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Sep 6 06:55:54 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150148 
Responsible-Changed-From-To: freebsd-net->adrian 
Responsible-Changed-By: adrian 
Responsible-Changed-When: Sat Dec 4 13:18:56 UTC 2010 
Responsible-Changed-Why:  
This is biting me in 11n support. I'll take it over. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150148 

From: Adrian Chadd <adrian@freebsd.org>
To: bug-followup@FreeBSD.org, bbartlomiej@gmail.com
Cc:  
Subject: Re: kern/150148: [ath] Atheros 5424/2424 - AR2425 stopped working
 with WPA2-PSK(AES) in 8.1-RELEASE [regression]
Date: Sat, 4 Dec 2010 23:34:34 +0800

 Hi,
 
 Please revert r204364 and get back to me.
 
 Thanks,
 
 
 Adrian
State-Changed-From-To: open->closed 
State-Changed-By: adrian 
State-Changed-When: Sat Apr 9 03:11:30 UTC 2011 
State-Changed-Why:  
This has been fixed in -HEAD. Please test that out and let me know 
if it works for you. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=150148 
>Unformatted:
