Bug 13218 - ath5k cannot connect to WPA networks with a AR242x (or AR5007) chipset
Summary: ath5k cannot connect to WPA networks with a AR242x (or AR5007) chipset
Status: CLOSED OBSOLETE
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-30 23:25 UTC by Mark Grandi
Modified: 2012-05-30 16:40 UTC (History)
7 users (show)

See Also:
Kernel Version: 2.6.29-ARCH
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
dmesg (37.11 KB, text/plain)
2009-04-30 23:25 UTC, Mark Grandi
Details
kern.log (62.57 KB, application/octet-stream)
2009-04-30 23:28 UTC, Mark Grandi
Details
kern.log <FIXED> (62.57 KB, text/plain)
2009-04-30 23:30 UTC, Mark Grandi
Details
lspci-vvnn.log (24.14 KB, text/plain)
2009-04-30 23:31 UTC, Mark Grandi
Details
uname -a .log (146 bytes, text/plain)
2009-04-30 23:32 UTC, Mark Grandi
Details
version.log (115 bytes, text/plain)
2009-04-30 23:33 UTC, Mark Grandi
Details
output of cat /proc/net/wireless (238 bytes, application/octet-stream)
2009-05-04 00:52 UTC, Mark Grandi
Details
output of sudo iwlist wlan0 scan (3.67 KB, application/octet-stream)
2009-05-04 00:52 UTC, Mark Grandi
Details
output of sudo iwlist wlan0 scan (different network) (4.55 KB, application/octet-stream)
2009-05-05 16:14 UTC, Mark Grandi
Details
output of iwlist wlan0 scan (working wpa network, OKMARK) (7.00 KB, text/plain)
2009-09-01 19:58 UTC, Mark Grandi
Details
dmesg file running on a kernel with CONFIG_MAC80211_VERBOSE_DEBUG=y (38.38 KB, text/plain)
2009-09-03 03:52 UTC, Mark Grandi
Details
dmesg output (when i successfully connected to uawifi) (54.40 KB, text/plain)
2009-09-08 17:05 UTC, Mark Grandi
Details
iwconfig wlan0 output (when connected to UAWiFi) (600 bytes, text/plain)
2009-09-08 17:08 UTC, Mark Grandi
Details
wpa_supplicant output (when it tried and eventually connected to UAWiFi) (3.88 KB, text/plain)
2009-09-08 17:13 UTC, Mark Grandi
Details
sorry, i fail at copy/paste, this is the 'complete' wpa_supplicant when it successfully connected to UAWiFi (5.68 KB, text/plain)
2009-09-08 17:18 UTC, Mark Grandi
Details

Description Mark Grandi 2009-04-30 23:25:59 UTC
Created attachment 21176 [details]
dmesg

Hi, previous versions of ath5k have worked with my wireless card (AR242x), but some update broke it, and now it cannot connect to WPA networks (possibly all networks, i do not have any WEP networks to test on, only a WPA2 personal and WPA2 enterprise

Anyway, yeah, it just tries to connect and then fails. I am using network manager with gnome, the way it worked in the past. It does not work in both arch linux, and ubuntu jaunty.

Attached are some log files that might help

~Mark
Comment 1 Mark Grandi 2009-04-30 23:28:44 UTC
Created attachment 21177 [details]
kern.log

kern.log file
Comment 2 Mark Grandi 2009-04-30 23:30:44 UTC
Created attachment 21178 [details]
kern.log <FIXED>

fixed kern.log
Comment 3 Mark Grandi 2009-04-30 23:31:33 UTC
Created attachment 21179 [details]
lspci-vvnn.log

lspci -vvnn log
Comment 4 Mark Grandi 2009-04-30 23:32:50 UTC
Created attachment 21180 [details]
uname -a .log

uname -a .log
Comment 5 Mark Grandi 2009-04-30 23:33:28 UTC
Created attachment 21181 [details]
version.log

version .log
Comment 6 Mark Grandi 2009-04-30 23:34:57 UTC
And one other comment, i realized that i still had ath_pci in my kernel (not loaded) because i was trying the special HAL branch of the madwifi drivers, it does not work with ath_pci or ath_5k, even after i removed ath_pci
Comment 7 Tulio Magno Quites Machado Filho 2009-05-01 22:04:18 UTC
Hello Mark,

I'm not sure, but I think I've got this already within a really noisy room.
Could you send us the data of /proc/net/wireless when you're trying to connect?

If you can't get values different from 0 there (normally they appear when the system is ending the authentication), could you send us the values of your cell from the output of "iwlist wlan0 scan" (only as root).
Comment 8 Mark Grandi 2009-05-04 00:48:19 UTC
Hi,

i have attached what /proc/net/wirless contains when i am trying to connect (proc_net_wireless.log)
Comment 9 Mark Grandi 2009-05-04 00:50:55 UTC
and...(sorry , i pressed commit too early) attached is iwlist_wlan0_scan.log as well, which is the output of sudo iwlist wlan0 scan. 7610-net is the network that i am trying to connect to, 'zikes' and 'actiontec' are just random network my laptop picks up
Comment 10 Mark Grandi 2009-05-04 00:52:02 UTC
Created attachment 21204 [details]
output of cat /proc/net/wireless
Comment 11 Mark Grandi 2009-05-04 00:52:45 UTC
Created attachment 21205 [details]
output of sudo iwlist wlan0 scan
Comment 12 Tulio Magno Quites Machado Filho 2009-05-04 05:57:57 UTC
In this file you have 3 ESSID:
- ACTIONTEC
- 7610-net
- zikes

Which one is yours, please?
Comment 13 Mark Grandi 2009-05-04 06:26:09 UTC
7610-net is the network at my house
Comment 14 Mark Grandi 2009-05-05 16:14:38 UTC
Created attachment 21233 [details]
output of sudo iwlist wlan0 scan (different network)

Here is another location which i cannot connect to with my laptop. The network UAWiFi is the one i am referring to. I can connect to UAPublic however, just not UAWiFi.
Comment 15 Bob Copeland 2009-05-05 16:34:04 UTC
Does "modprobe ath5k nohwcrypt=1" help?
Comment 16 ppandpupu 2009-05-15 04:40:26 UTC
dear guys,

I have a ar5212 chipset and i can connect to WPA personal networks but not WPA enterprise networks at my university using ath_hal/pci or ath5k.

I will try the above modprobe.

Is there anything else i can do to aid development of a fix?

the university network i am trying to connect to is PEAP/TKIP/MSHAPV2.

I'm using an ibm r31 with 2.6.28 kernel.

thanks.
Comment 17 Mark Grandi 2009-05-21 17:49:14 UTC
no, modprobe ath5k nohwcrypt=1 does not fix the problem.
Comment 18 Mark Grandi 2009-06-26 19:05:12 UTC
still does not work with 2.6.30-ARCH
Comment 19 matrix 2009-07-16 23:42:48 UTC
Hi,
confirm this bug for my card:

03:00.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Multiprotocol MAC/baseband processor (rev 01)

03:00.0 0200: 168c:0013 (rev 01)

I try to connect with my ap in WPA2, it connect but after few second got disconnect for ever... but led support work on this version.

I try with the driver included in last compat-wireless (compat-wireless-2009-07-16)
My current kernel is: 2.6.31-rc3

With the driver included in 2.6.31-rc3 it work great (only led support don't work)
Good work
Comment 20 Mark Grandi 2009-07-30 17:54:41 UTC
matrix is using a different wireless card then me (ar5252 as opposed to ar5007) but once arch gets the 2.6.31 kernel i shall try it out. 

Also...this is a regression.... (and i'm marking this bug as such)  my wireless has worked before...and i would really like it to work now =/
Comment 21 Bob Copeland 2009-08-05 03:41:15 UTC
Do you have a dmesg from when it did work?  What userspace tools are you using to connect (network manager, wicd, wpa_supplicant)?  

The following looks suspect... reason 2 means previous authentication is not valid.  The AP is telling you that only 3 ms after authenticating.  

Apr 30 15:55:55 Polygon kernel: wlan0: authenticate with AP 00:23:6c:bf:38:fb
Apr 30 15:55:55 Polygon kernel: wlan0: authenticated
Apr 30 15:55:55 Polygon kernel: wlan0: associate with AP 00:23:6c:bf:38:fb
Apr 30 15:55:55 Polygon kernel: wlan0: RX ReassocResp from 00:23:6c:bf:38:fb (capab=0x431 status=0 aid=4)
Apr 30 15:55:55 Polygon kernel: wlan0: associated
Apr 30 15:55:58 Polygon kernel: wlan0: deauthenticated (Reason: 2)
Comment 22 Bob Copeland 2009-08-05 03:43:11 UTC
(In reply to comment #21)
> The following looks suspect... reason 2 means previous authentication is not
> valid.  The AP is telling you that only 3 ms after authenticating.  

Sorry can't read - that's 3 secs.  A log with CONFIG_MAC80211_VERBOSE_DEBUG and iw event output may help.  FWIW I can use WPA networks here without problems.
Comment 23 curious@bwv190.internetdsl.tpnet.pl 2009-08-14 02:36:54 UTC
i have two atheros cards,
reported like :
06:02.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)

one is cardbus, another is pci-e or minipci (integrated in asus aspire 3690) . 

with same kernel (2.6.31-rc3) , same utils, etc, plugged to same machine (asus aspire in question) one card works with wpa2-aes (psk) , and the other... do not. 

the one not working is cardbus card (branded as tp-link) 

WPA2 without AES works fine on both... :S indeed confusing. 

i've recently tried like two other cards to make connection with wpa2-aes AP,
and all failed (!) except the atheros in asus. under winXP it works with some random ralink . 

i've tried like :
prism2 based (three different cards with three different firmware versions, latest STA was like 1.7.4) - gave up, concluding it might be somehow firmware issue (even though hostap driver does not use firmware fror WPA) 

rt61 - epic fail. this one also freezed during APM idle states, and driver looked unmaintained... 

so i got that atheros, which seemed identical to the one in asus. i would be glad to at least know what differs those atheros cards ?
Comment 24 curious@bwv190.internetdsl.tpnet.pl 2009-08-14 02:38:49 UTC
ah, btw. tried also madwifi-hal with 2.6.31-rc3 and rc5 , same 'result' - on asus integrated it works, on that cardbus atheros - no luck , and after try to connect card hard-locks (it can scan networks, but not associate even to non-encrypted ones)
Comment 25 Mark Grandi 2009-08-14 18:52:30 UTC
@bob: i don't have a dmesg from when it did work, since i have upgraded since then, but i can try booting various live cds from various distros until i find one that did work

and i am using network manager to try and connect 

and do you mean i should try recompiling my kernel with CONFIG_MAC80211_VERBOSE_DEBUG? Im not sure what that means otherwise
Comment 26 Bob Copeland 2009-08-31 13:51:34 UTC
Yes, recompile your kernel with that option.  Mark, can you confirm WPA personal (PSK) does not work (conversely with comment #16)?  I think there may be a problem with EAP and reassoc specifically.
Comment 27 Mark Grandi 2009-09-01 19:58:27 UTC
Created attachment 22960 [details]
output of iwlist wlan0 scan (working wpa network, OKMARK)

output of iwlist wlan0 scan of a working wpa personal network ('OKMARK')
Comment 28 Mark Grandi 2009-09-01 20:00:13 UTC
Hi bob,

i managed to recompile my kernel with CONFIG_MAC80211_VERBOSE_DEBUG=y, and as soon as i can bring my laptop to school, i will generate the log files again. But, where is this extra output supposed to appear? kern.log?

also, i guess WPA Personal networks do infact work after all. I am connected to one right now in fact, and above is the output of iwlist wlan0 scan, in case you are interested (The network that i am connecting to that does work is 'OKMARK')
Comment 29 Mark Grandi 2009-09-03 03:52:01 UTC
Created attachment 22983 [details]
dmesg file running on a kernel with CONFIG_MAC80211_VERBOSE_DEBUG=y

And here is my dmesg with the custom compiled kernel with CONFIG_MAC80211_VERBOSE_DEBUG=y. let me know if you need more information or somehow i screwed up with compiling my kernel with that option enabled, and that actually isn't the verbose output =)
Comment 30 Bob Copeland 2009-09-07 13:10:12 UTC
Ok, I replicated a similar issue recently.  I haven't had time to fully troubleshoot, but I recommend trying the following:

1) disable network manager (killall -9 NetworkManager)
2) create a wpa_supplicant.conf that works with your network, e.g.:

network={
	ssid="my_ap"
	key_mgmt=WPA-EAP
	eap=PEAP
	phase2="auth=MSCHAPV2"
	identity="my_account"
	password="my_password"
}

3) Make sure there is no ap_scan or scan_ssid directive in #2.
4) start the network manually:

# ifconfig wlan0 down
# ifconfig wlan0 up
# wpa_supplicant -i wlan0 -Dwext -c wpa_supplicant.conf
(in another terminal)
# dhclient wlan0
Comment 31 Mark Grandi 2009-09-08 17:05:14 UTC
Created attachment 23041 [details]
dmesg output (when i successfully connected to uawifi)

Hmm....it seems that did the trick, i am now connected to UAWiFi (the one with the WPA-EAP/PEAP/MSCHAPV2 Security)

It took wpa_supplicant a couple minutes, and it seemed it was just doing what it was doing before (trying to associate, associate for like 3 seconds, then disconnect again) but then after a couple of minutes it associated and now i am connected to the internet.

I will attach my dmesg / iwconfig wlan0 / wpasupplicant logs......but what does this mean? that this is a bug with network manager?
Comment 32 Mark Grandi 2009-09-08 17:08:59 UTC
Created attachment 23042 [details]
iwconfig wlan0 output (when connected to UAWiFi)

(above post is my dmesg output)

this post is the iwconfig wlan0 output
Comment 33 Mark Grandi 2009-09-08 17:13:44 UTC
Created attachment 23043 [details]
wpa_supplicant output (when it tried and eventually connected to UAWiFi)

wpa_supplicant -i wlan0 -Dwext -c /etc/wpa_supplicant.conf output, when it tried and eventually connected to UAWiFi successfully.
Comment 34 Mark Grandi 2009-09-08 17:18:11 UTC
Created attachment 23044 [details]
sorry, i fail at copy/paste, this is the 'complete' wpa_supplicant when it  successfully connected to UAWiFi

sorry, didn't copy and paste the entire wpa_supplicant output, here is the -complete- output.
Comment 35 Mark Grandi 2009-10-12 16:13:05 UTC
Any News? This still does not work with the latest stable Arch kernel version, "2.6.31-ARCH".
Comment 36 Bob Copeland 2009-10-14 14:03:36 UTC
Sorry, totally swamped with school work.  I think it is a bug with either the supplicant or mlme not being able to work well with the long scan times in ath5k.  But I really haven't had the free cycles to pull apart nm, wpa_supplicant, and the wext code to find out what's going on (it's still on my list, though).
Comment 37 John W. Linville 2010-03-02 16:26:39 UTC
Hey, Bob!  Any word on this?  Mark, is this still an issue w/ 2.6.33?
Comment 38 Mark Grandi 2010-03-02 16:34:50 UTC
Well, I believe the whole point of me doing the tests above was that the kernel is in fact able to use my wireless card to connect to the WPA networks, but something else along the lines (wpa_supplicant or network-manager perhaps) is causing things to break.

I will have to reinstall arch linux when I have a free moment and see if the latest kernel has any other effects, as the ubuntu bug report is asking about this as well. (https://bugs.launchpad.net/bugs/344611)
Comment 39 Bob Copeland 2010-03-03 04:24:56 UTC
Yeah, I did set up an EAP server here and didn't have problems, but I do have problems if there are a lot of servers around.  I believe Jouni noticed a similar issue a month or two ago and he may have submitted related patches for cfg/mac80211.
Comment 40 John W. Linville 2010-10-04 19:39:36 UTC
No new info for a long time...please reopen if/when requested information becomes available...
Comment 41 Mark Grandi 2010-11-16 19:22:47 UTC
What new info do you need? I've given everything you guys have asked for.

I still cannot connect to WPA enterprise networks with the latest version of ubuntu (10.10)
Comment 42 Bob Copeland 2010-11-17 03:07:54 UTC
I guess I should forward port the tracing patches and we can get a trace dump.

Note You need to log in before you can comment on or make changes to this bug.