Skip to contentSkip to conversation

AR9280 cannot associate with AP

ath9k-devel Nikki Chumakov 1 participant 1 message Jan 4, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I have Zotac Atom/ION based motherboard and AzureWave AR5891 (Atheros 9280) 802.11bgn PCI-E card.

04:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
Subsystem: Device 1a3b:1067
Flags: bus master, fast devsel, latency 0, IRQ 19 Memory at febf0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [90] MSI-X: Enable- Count=1 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel <?>
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00 Kernel driver in use: ath9k
Kernel modules: ath9k

I'm using Fedora 11, recently upgraded it to Fedora 12 and today I finally upgraded ath9k driver to compat-wireless-2.6.33-rc1.
Linux outback 2.6.31.9-174.fc12.x86_64 #1 SMP Mon Dec 21 05:33:33 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux

It cannot associate with APs, I constantly got "connection timeout" in logs.

I have several APs based on WRT54g (openwrt) and Buffalo (DD-WRT), authorization method is WPA-TLS. Works perfectly with several notebooks, Macbook Pro and iPhone. But not with Zotac/Azurewave.

I never could connect this card to AP with any kernel I've tried. I tried to change authorization to WPA-PSK and WEP once with no luck either. Can you please help me? I can provide any additional information and/or remote ssh access.

Here is my iw scan output just in case

iw wlan0 scan
BSS 00:1d:73:74:5f:84 (on wlan0)
TSF: 41110630775 usec (0d, 11:25:10)
freq: 2412
beacon interval: 100
capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
signal: -51.00 dBm
SSID: malakhovka-n
Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0 DS Parameter set: channel 1
Extended supported rates: 6.0 12.0 24.0 48.0
Country: DE (in/outdoor), data: 01 0b 14
ERP: <no flags>
Extended capabilities: HT Information Exchange Supported
WPA: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: TKIP CCMP
* Authentication suites: IEEE 802.1X
WMM: * Parameter version 1
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
BSS 00:0f:66:31:b6:48 (on wlan0)
TSF: 1281205045080 usec (14d, 19:53:25)
freq: 2432
beacon interval: 100
capability: ESS Privacy ShortSlotTime (0x0411)
signal: -83.00 dBm
SSID: malakhovka
Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 DS Parameter set: channel 5
ERP: <no flags>
RSN: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: CCMP TKIP
* Authentication suites: IEEE 802.1X
* Capabilities: PreAuth 16-PTKSA-RC (0x000d)
Extended supported rates: 6.0 9.0 12.0 48.0
WPA: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: CCMP TKIP
* Authentication suites: IEEE 802.1X
* Capabilities: PreAuth 16-PTKSA-RC (0x000d)
WMM: * Parameter version 1
* u-APSD
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
BSS 00:0c:41:cb:91:74 (on wlan0)
TSF: 2414513050097 usec (27d, 22:41:53)
freq: 2432
beacon interval: 100
capability: ESS Privacy ShortSlotTime (0x0411)
signal: -41.00 dBm
SSID: malakhovka
Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 DS Parameter set: channel 5
ERP: <no flags>
RSN: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: CCMP TKIP
* Authentication suites: IEEE 802.1X
* Capabilities: PreAuth 16-PTKSA-RC (0x000d)
Extended supported rates: 6.0 9.0 12.0 48.0
WPA: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: CCMP TKIP
* Authentication suites: IEEE 802.1X
* Capabilities: PreAuth 16-PTKSA-RC (0x000d)
WMM: * Parameter version 1
* u-APSD
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec

For the purpose of making this bug report I turned Fedora's NetworkManager off and created wpa_supplicant.conf manually.

network={
        ssid="malakhovka-n"
        # scan_ssid=1
        proto=WPA
        key_mgmt=WPA-EAP
        pairwise=CCMP TKIP
        group=CCMP TKIP
        eap=TLS
        identity="outback"
        ca_cert="/home/carpc/certs/cacert.pem"
        client_cert="/home/carpc/certs/cert.pem"
        private_key="/home/carpc/certs/key.pem"
        private_key_passwd="***"
}
network={
        ssid="malakhovka"
        # scan_ssid=1
        proto=WPA2
        key_mgmt=WPA-EAP
        pairwise=CCMP TKIP
        group=CCMP TKIP
        eap=TLS
        identity="outback"
        ca_cert="/home/carpc/certs/cacert.pem"
        client_cert="/home/carpc/certs/cert.pem"
        private_key="/home/carpc/certs/key.pem"
        private_key_passwd="***"
}

Here is typical picture from wpa_supplicant messages:
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=16
Received 1505 bytes of scan results (3 BSSes) CTRL-EVENT-SCAN-RESULTS
wpa_supplicant_select_bss_and_associate: qual 0 (0) qv=0 bv=0 Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1d:73:74:5f:84 ssid='malakhovka-n' wpa_ie_len=26 rsn_ie_len=0 caps=0x10
selected based on WPA IE
selected WPA AP 00:1d:73:74:5f:84 ssid='malakhovka-n'
Trying to associate with 00:1d:73:74:5f:84 (SSID='malakhovka-n' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 1 proto 1
WPA: set AP WPA IE - hexdump(len=28): dd 1a 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 01
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK CCMP
WPA: using KEY_MGMT 802.1X
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 01
No keys have been configured - skip key clearing wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5 wpa_driver_wext_associate
wpa_driver_wext_set_psk
Setting authentication timeout: 20 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=16
Authentication with 00:1d:73:74:5f:84 timed out.
BSSID 00:1d:73:74:5f:84 blacklist count incremented to 2
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING

iw event -f:
wlan0 (phy #0): scan started
wlan0 (phy #0): failed to connect, status: 1: Unspecified failure
wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484, "g\xc6isQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2T\xf8\x1b\xe8\xe7\x8dvZ.c3\x9f\xc9\x9a" wlan0 (phy #0): scan started
wlan0 (phy #0): failed to connect, status: 1: Unspecified failure
wlan0 (phy #0): scan finished: 2412, "g\xc6isQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2T\xf8\x1b\xe8\xe7\x8dvZ.c3\x9f\xc9\x9a" wlan0 (phy #0): auth: timed out
wlan0 (phy #0): failed to connect to 00:1d:73:74:5f:84, status: 1:
Unspecified failure
wlan0 (phy #0): scan started
wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484, ""
wlan0 (phy #0): auth: timed out
wlan0 (phy #0): failed to connect to 00:1d:73:74:5f:84, status: 1:
Unspecified failure
wlan0 (phy #0): scan started
wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484, ""
wlan0 (phy #0): failed to connect, status: 1: Unspecified failure
wlan0 (phy #0): scan started
wlan0 (phy #0): scan finished: 2432, "malakhovka"
wlan0 (phy #0): auth: timed out
wlan0 (phy #0): failed to connect to 00:0c:41:cb:91:74, status: 1:
Unspecified failure
wlan0 (phy #0): failed to connect, status: 1: Unspecified failure
wlan0 (phy #0): scan started
wlan0 (phy #0): scan aborted: 2432, "f2\x0d\xb71X\xa3Z%]\x05\x17X\xe9^\xd4\xab\xb2\xcd\xc6\x9b\xb4T\x11\x0e\x82tA!=\xdc\x87" wlan0 (phy #0): scan started
wlan0 (phy #0): failed to connect, status: 1: Unspecified failure
wlan0 (phy #0): scan finished: 2432, "f2\x0d\xb71X\xa3Z%]\x05\x17X\xe9^\xd4\xab\xb2\xcd\xc6\x9b\xb4T\x11\x0e\x82tA!=\xdc\x87" wlan0 (phy #0): scan started
wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484, ""

and relevant kernel messages:
ath9k 0000:04:00.0: PCI INT A -> Link[LN3A] -> GSI 19 (level, low) -> IRQ 19 ath9k 0000:04:00.0: setting latency timer to 64
ath: EEPROM regdomain: 0x60
ath: EEPROM indicates we should expect a direct regpair map
ath: Country alpha2 being used: 00
ath: Regpair used: 0x60
phy0: Selected rate control algorithm 'ath9k_rate_control' Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR9280 Rev:2 mem=0xffffc900029c0000, irq=19
cfg80211: Calling CRDA for country: RU
cfg80211: Regulatory domain changed to country: RU
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US

    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)

ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: direct probe to AP 00:1d:73:74:5f:84 (try 1)
wlan0: direct probe to AP 00:1d:73:74:5f:84 (try 2)
wlan0: direct probe to AP 00:1d:73:74:5f:84 (try 3)
wlan0: direct probe to AP 00:1d:73:74:5f:84 timed out
wlan0: direct probe to AP 00:1d:73:74:5f:84 (try 1)
wlan0: direct probe to AP 00:1d:73:74:5f:84 (try 2)
wlan0: direct probe to AP 00:1d:73:74:5f:84 (try 3)
wlan0: direct probe to AP 00:1d:73:74:5f:84 timed out
wlan0: direct probe to AP 00:0c:41:cb:91:74 (try 1)
wlan0: direct probe to AP 00:0c:41:cb:91:74 (try 2)
wlan0: direct probe to AP 00:0c:41:cb:91:74 (try 3)
wlan0: direct probe to AP 00:0c:41:cb:91:74 timed out
wlan0: direct probe to AP 00:0f:66:31:b6:48 (try 1) ADDRCONF(NETDEV_UP): wlan0: link is not ready

/etc/modprobe.d/80211.conf:
options cfg80211 ieee80211_regdom=US
#options ath9k btcoex_enable=1
install ath9k /sbin/modprobe --ignore-install ath9k $CMDLINE_OPTS; (/bin/sleep 1; /sbin/iw reg set US) &

Regards, Nikki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100104/d716e4c9/attachment-0001.htm