Skip to contentSkip to conversation

problem with Atheros 5416 and WPA-PSK

ath9k-devel Sebastian S 3 participants 6 messages Feb 27, 2009

lore
Share & tools
lore
#0 lore raw

Hiya,

I recently aquired a D-Link DWA645 with Atheros 5416 chipset. This is a 802.11N ready device.
When I load the ath9k module I get the following in my dmesg:

[ 3890.636806] ath9k 0000:03:00.0: PCI INT A disabled
[ 3890.636836] ath9k: driver unloaded
[ 3893.367537] ath9k: 0.1
[ 3893.367598] ath9k 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 3893.866510] phy4: Selected rate control algorithm 'ath9k_rate_control'
[ 3893.868636] Registered led device: ath9k-phy4:radio
[ 3893.868684] Registered led device: ath9k-phy4:assoc
[ 3893.868725] Registered led device: ath9k-phy4:tx
[ 3893.868768] Registered led device: ath9k-phy4:rx
[ 3893.870264] phy4: Atheros 5416: mem=0xf85a0000, irq=16
[ 3893.916480] udev: renamed network interface wlan0 to wlan1
[ 3893.929225] ADDRCONF(NETDEV_UP): wlan1: link is not ready

so far so good I'd guess?
then I try to associate with my Asus RT-N15 with WPA2-PSK with the following command:
' wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_workn.conf'

/etc/wpa_workn.conf contains the following (password obscured)

          network={
               ssid="ap01"
               scan_ssid=1
               key_mgmt=WPA-PSK
               psk="safetyfirst!"
          }

This results in the following output from wpa_supplicant:
CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:22:15:1b:84:7a (SSID='ap01' freq=2422 MHz) Associated with 00:00:00:00:00:00
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys ioctl[SIOCSIWENCODEEXT]: No such file or directory CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:22:15:1b:84:7a (SSID='ap01' freq=2422 MHz) Associated with 00:00:00:00:00:00
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys ioctl[SIOCSIWENCODEEXT]: No such file or directory CTRL-EVENT-SCAN-RESULTS

going on and on...
dmesg reports the following:

[ 4296.858231] wlan1: direct probe to AP 00:22:15:1b:84:7a try 1
[ 4296.867453] wlan1 direct probe responded
[ 4296.867464] wlan1: authenticate with AP 00:22:15:1b:84:7a
[ 4297.064084] wlan1: authenticate with AP 00:22:15:1b:84:7a
[ 4297.072823] wlan1: authenticated
[ 4297.072834] wlan1: associate with AP 00:22:15:1b:84:7a
[ 4297.083954] wlan1: RX AssocResp from 00:22:15:1b:84:7a (capab=0x411
status=0 aid=2)
[ 4297.083963] wlan1: associated
[ 4297.318287] wlan1: disassociating by local choice (reason=3)
[ 4298.117297] wlan1: authenticate with AP 00:22:15:1b:84:7a
[ 4298.316041] wlan1: authenticate with AP 00:22:15:1b:84:7a
[ 4298.318378] wlan1: authenticated
[ 4298.318388] wlan1: associate with AP 00:22:15:1b:84:7a
[ 4298.321514] wlan1: RX ReassocResp from 00:22:15:1b:84:7a
(capab=0x411 status=0 aid=2)
[ 4298.321523] wlan1: associated
[ 4298.329156] wlan1: disassociating by local choice (reason=3)

going on and on...

and this is resulting in that I cannot associate, and therefor can't use the network.

I'm running debian/sid with the latest 2.6.28-1-686 kernel.

# modinfo ath9k
filename:
/lib/modules/2.6.28-1-686/kernel/drivers/net/wireless/ath9k/ath9k.ko
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
author:         Atheros Communications
alias:          pci:v0000168Cd0000002Asv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000029sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000027sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000024sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000023sv*sd*bc*sc*i*
depends:        led-class,mac80211
vermagic:       2.6.28-1-686 SMP mod_unload modversions 686

also, if I do 'iw list' it reports my card only supports bitrates up to 54Mbps and the accesspoint is set to 802.11n only.
(that has been done to ensure 802.11n mode as we have 802.11g ap's for older devices).

Anyone able to help me out with this?

TIA

Sebastian

#1 lore raw
Quoted 7 lines · Sebastian S

then I try to associate with my Asus RT-N15 with WPA2-PSK with the following command:
' wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_workn.conf'

dmesg reports the following:

[ 4297.083963] wlan1: associated
[ 4297.318287] wlan1: disassociating by local choice (reason=3)

Do you happen to have NetworkManager running? It really likes to make people's lives miserable by disconnecting immediately after the association has been completed successfully if it was not the one who started the network in the first place (e.g., when someone runs wpa_supplicant manually).

- Jouni

#2 lore raw
Quoted 9 lines · Jouni Malinen
Quoted 7 lines · Sebastian S

then I try to associate with my Asus RT-N15 with WPA2-PSK with the following command:
' wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_workn.conf'

dmesg reports the following:

[ 4297.083963] wlan1: associated
[ 4297.318287] wlan1: disassociating by local choice (reason=3)
Quoted 5 lines

Do you happen to have NetworkManager running? It really likes to make people's lives miserable by disconnecting immediately after the association has been completed successfully if it was not the one who started the network in the first place (e.g., when someone runs wpa_supplicant manually).

Thanks, I had 'wicd' running, I can now connect/associate.

But 'iw list' still claims I can only do 54Mbps, I can't get more than 900Kbyte/s over the link.
and I do get lots of packet-loss. The packet-loss is in 'bursts' not constant. I however get no notifies/disconnects from dmesg/wpa_supplicant

iwconfig tells me I'm either connected on 0 or 1 Mbps

Sebastian

#3 lore raw
Quoted 17 lines · Sebastian S
Quoted 9 lines · Jouni Malinen
Quoted 7 lines · Sebastian S

then I try to associate with my Asus RT-N15 with WPA2-PSK with the following command:
' wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_workn.conf'

dmesg reports the following:

[ 4297.083963] wlan1: associated
[ 4297.318287] wlan1: disassociating by local choice (reason=3)
Quoted 5 lines

Do you happen to have NetworkManager running? It really likes to make people's lives miserable by disconnecting immediately after the association has been completed successfully if it was not the one who started the network in the first place (e.g., when someone runs wpa_supplicant manually).

Quoted 8 lines

Thanks, I had 'wicd' running, I can now connect/associate.

But 'iw list' still claims I can only do 54Mbps, I can't get more than 900Kbyte/s over the link.
and I do get lots of packet-loss. The packet-loss is in 'bursts' not constant. I however get no notifies/disconnects from dmesg/wpa_supplicant

iwconfig tells me I'm either connected on 0 or 1 Mbps

Hello Sebastian,

Your problem seems similar to the one I have reported with the router ar9102/ar9103 chips in client mode.

iwconfig output doesn't reflect N, it is confusing. See this message:
http://www.mail-archive.com/ath9k-devel at lists.ath9k.org/msg00938.html You need to use "sudo iw dev wlan1 station dump" - but mine still shows 1Mbps or 5Mbps...

I can't get over 1.2MB/second over the link in AP or client mode, and mostly 700 to 900KB.

I have this problem against a dozen AP's I've tried. I've literally taken my device out to multiple coffee shops just be sure it isn't somehow that I'm configuring my AP's. Encryption or no encryption makes no difference.

#4 lore raw
Quoted 39 lines · Stephen Gutknecht (hilltx)
Quoted 17 lines · Sebastian S
Quoted 9 lines · Jouni Malinen
Quoted 7 lines · Sebastian S

then I try to associate with my Asus RT-N15 with WPA2-PSK with the following command:
' wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_workn.conf'

dmesg reports the following:

[ 4297.083963] wlan1: associated
[ 4297.318287] wlan1: disassociating by local choice (reason=3)
Quoted 5 lines

Do you happen to have NetworkManager running? It really likes to make people's lives miserable by disconnecting immediately after the association has been completed successfully if it was not the one who started the network in the first place (e.g., when someone runs wpa_supplicant manually).

Quoted 8 lines

Thanks, I had 'wicd' running, I can now connect/associate.

But 'iw list' still claims I can only do 54Mbps, I can't get more than 900Kbyte/s over the link.
and I do get lots of packet-loss. The packet-loss is in 'bursts' not constant. I however get no notifies/disconnects from dmesg/wpa_supplicant

iwconfig tells me I'm either connected on 0 or 1 Mbps

Hello Sebastian,

Your problem seems similar to the one I have reported with the router ar9102/ar9103 chips in client mode.

iwconfig output doesn't reflect N, it is confusing. ?See this message:
http://www.mail-archive.com/ath9k-devel at lists.ath9k.org/msg00938.html You need to use "sudo iw dev wlan1 station dump" - but mine still shows 1Mbps or 5Mbps...

Quoted 8 lines

I can't get over 1.2MB/second over the link in AP or client mode, and mostly 700 to 900KB.

I have this problem against a dozen AP's I've tried. ?I've literally taken my device out to multiple coffee shops just be sure it isn't somehow that I'm configuring my AP's. ?Encryption or no encryption makes no difference.

'sudo iw dev wlan1 station dump' gives me

Station 00:22:15:1b:84:7a (on wlan1)

	inactive time:	52 ms
	rx bytes:	67434161
	tx bytes:	76325650

which still doesn't tell me what the associated rate is. But is this is a known bug? or is there a fix for it? having a 802.11n card which doesn't perform isn't -too- useful :)

Sebastian

#5 lore raw
Quoted 10 lines · Sebastian S

'sudo iw dev wlan1 station dump' gives me

Station 00:22:15:1b:84:7a (on wlan1)
? ? ? ?inactive time: ?52 ms
? ? ? ?rx bytes: ? ? ? 67434161
? ? ? ?tx bytes: ? ? ? 76325650

which still doesn't tell me what the associated rate is. But is this is a known bug? or is there a fix for it? having a 802.11n card which doesn't perform isn't -too- useful :)

Seen this... most desktop distros keep iw and hostapd way way behind. You probably need to update your iw to 0.9.9 or newer.
http://wireless.kernel.org/en/users/Documentation/iw

You already know it doesn't perform well, the trick is determine the cause and getting new patches for compat-wireless together ;) This is a new driver, not yet mature, but feedback from patient yet persistent users is important.