Nikki Chumakov | 4 Jan 2010 12:22
Picon

AR9280 cannot associate with AP

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 <at> bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2482000 KHz <at> 40000 KHz), (N/A, 2000 mBm)
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
    (start_freq - end_freq <at> bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz <at> 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz <at> 40000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz <at> 40000 KHz), (300 mBi, 2000 mBm)
    (5490000 KHz - 5600000 KHz <at> 40000 KHz), (300 mBi, 2000 mBm)
    (5650000 KHz - 5710000 KHz <at> 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz <at> 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
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Luis R. Rodriguez | 4 Jan 2010 16:55
Favicon

Re: throughput is unstable

On Wed, Dec 30, 2009 at 12:58:51PM -0800, rootkit85 <at> yahoo.it wrote:
> 2009/12/29 Björn Smedman <bjorn.smedman <at> venatech.se>:
> > Nope, haven't solved it. I think I've patched the driver in 50 places
> > and it still goes up and down up and down in perfect cycles. Who needs
> > an atomic clock when you can just count the throughput cycles and know
> > exactly what time it is? :)
> >
> > My current theory is that it's some sort of tx beamforming algo that
> > screws up once signal gets below -78 dBm or so. But you see the stalls
> > even with perfect signal, right? That never happens to me (which is
> > fortunate as I would be in an asylum by now if it did).
> >
> > Does anybody know which register to fiddle with to turn off all
> > adaptive tx stuff (to debug)? It's an AR5416 MAC/BB with AR2133 radio.
> > Is it possible to get some hw documentation somewhere?
> >
> > BTW, my setup is an unencrypted HT20 access point.
> >
> > /Björn
> >
> > 2009/12/26  <rootkit85 <at> yahoo.it>:
> >> 2009/12/24 Björn Smedman <bjorn.smedman <at> venatech.se>:
> >>> Do the stalls occur at regular intervals? I have a similar problem on
> >>> an AR9103 in AP mode. See my previous post 'Cyclic throughput at a
> >>> distance'.
> >>>
> >>> /Björn
> >>>
> >>> On Thu, Dec 24, 2009 at 2:31 PM,  <rootkit85 <at> yahoo.it> wrote:
> >>>> On Thu, Dec 24, 2009 at 2:27 PM,  <rootkit85 <at> yahoo.it> wrote:
> >>>>> Hi,
> >>>>> I'm using an AR9223 in AP mode with latest compat-wireless-2009-12-11
> >>>>> drivers but I get bad performances.
> >>>>> SSH is unusable.
> >>>>> The link is fine when it works but sometimes it stalls for a few
> >>>>> seconds, which kills tcp performances:
> >>>>>
> >>>>> iperf -sui1
> >>>>> ------------------------------------------------------------
> >>>>> Server listening on UDP port 5001
> >>>>> Receiving 1470 byte datagrams
> >>>>> UDP buffer size:   106 KByte (default)
> >>>>> ------------------------------------------------------------
> >>>>> [  3] local 192.168.0.1 port 5001 connected with 192.168.0.79 port 33066
> >>>>> [ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
> >>>>> [  3]  0.0- 1.0 sec  7.98 MBytes  66.9 Mbits/sec  0.117 ms 1423/ 7115 (20%)
> >>>>> [  3]  1.0- 2.0 sec  11.3 MBytes  94.5 Mbits/sec  0.085 ms 2811/10849 (26%)
> >>>>> [  3]  2.0- 3.0 sec  11.1 MBytes  92.9 Mbits/sec  0.119 ms 2734/10632 (26%)
> >>>>> [  3]  3.0- 4.0 sec  6.63 MBytes  55.6 Mbits/sec  0.135 ms 1257/ 5986 (21%)
> >>>>> [  3]  4.0- 5.0 sec  1.95 MBytes  16.3 Mbits/sec  0.113 ms  186/ 1575 (12%)
> >>>>> [  3]  5.0- 6.0 sec  1.17 MBytes  9.81 Mbits/sec  0.083 ms  254/ 1088 (23%)
> >>>>> [  3]  6.0- 7.0 sec  0.00 Bytes  0.00 bits/sec  0.083 ms    0/    0 (nan%)
> >>>>> [  3]  7.0- 8.0 sec  0.00 Bytes  0.00 bits/sec  0.083 ms    0/    0 (nan%)
> >>>>> [  3]  8.0- 9.0 sec  0.00 Bytes  0.00 bits/sec  0.083 ms    0/    0 (nan%)
> >>>>> [  3]  9.0-10.0 sec  1.86 MBytes  15.6 Mbits/sec  0.144 ms  649/ 1973 (33%)
> >>>>> [  3] 10.0-11.0 sec  2.38 MBytes  19.9 Mbits/sec  0.097 ms  609/ 2304 (26%)
> >>>>> [  3] 11.0-12.0 sec    652 KBytes  5.34 Mbits/sec  0.068 ms  198/  652 (30%)
> >>>>> [  3] 12.0-13.0 sec  9.69 MBytes  81.3 Mbits/sec  0.085 ms 2563/ 9476 (27%)
> >>>>> [  3] 13.0-14.0 sec  6.38 MBytes  53.5 Mbits/sec  0.249 ms 1426/ 5977 (24%)
> >>>>> [  3] 14.0-15.0 sec  8.45 MBytes  70.9 Mbits/sec  1.677 ms 1940/ 7971 (24%)
> >>>>> [  3] 15.0-16.0 sec  8.03 MBytes  67.4 Mbits/sec  2.580 ms 1899/ 7628 (25%)
> >>>>> [  3] 16.0-17.0 sec  6.91 MBytes  57.9 Mbits/sec  0.157 ms  905/ 5832 (16%)
> >>>>> [  3] 17.0-18.0 sec    233 KBytes  1.91 Mbits/sec  0.788 ms   32/  194 (16%)
> >>>>> [  3] 18.0-19.0 sec  1.12 MBytes  9.38 Mbits/sec  0.620 ms  210/ 1008 (21%)
> >>>>> [  3] 19.0-20.0 sec  7.06 MBytes  59.3 Mbits/sec  0.159 ms 1027/ 6066 (17%)
> >>>>> [  3] 20.0-21.0 sec  6.07 MBytes  50.9 Mbits/sec  0.322 ms  720/ 5047 (14%)
> >>>>> [  3] 21.0-22.0 sec  6.13 MBytes  51.4 Mbits/sec  0.109 ms  619/ 4989 (12%)
> >>>>> [  3] 22.0-23.0 sec  4.84 MBytes  40.6 Mbits/sec  0.154 ms  365/ 3814 (9.6%)
> >>>>> [  3] 23.0-24.0 sec  5.26 MBytes  44.1 Mbits/sec  0.308 ms  224/ 3978 (5.6%)
> >>>>> [  3] 24.0-25.0 sec  6.06 MBytes  50.9 Mbits/sec  0.167 ms  757/ 5083 (15%)
> >>>>> [  3] 25.0-26.0 sec  6.84 MBytes  57.4 Mbits/sec  0.148 ms  902/ 5779 (16%)
> >>>>> [  3] 26.0-27.0 sec  7.66 MBytes  64.3 Mbits/sec  0.152 ms 1288/ 6755 (19%)
> >>>>> [  3] 27.0-28.0 sec  0.00 Bytes  0.00 bits/sec  0.152 ms    0/    0 (nan%)
> >>>>> [  3] 28.0-29.0 sec  84.7 KBytes    694 Kbits/sec  14.385 ms  141/  200 (70%)
> >>>>> [  3]  0.0-30.0 sec    145 MBytes  40.7 Mbits/sec  0.290 ms 27599/131272 (21%)
> >>>>> [  3]  0.0-30.0 sec  1 datagrams received out-of-order
> >>>>>
> >>>>>
> >>>>> $ ping 192.168.0.1
> >>>>> PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
> >>>>>
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=280 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=1.95 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=1002 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=5 ttl=64 time=50.3 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=6 ttl=64 time=264 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=7 ttl=64 time=322 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=8 ttl=64 time=1232 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=10 ttl=64 time=5.11 ms
> >>>>> 64 bytes from 192.168.0.1: icmp_seq=11 ttl=64 time=1.96 ms
> >>>>> ^C
> >>>>> --- 192.168.0.1 ping statistics ---
> >>>>> 11 packets transmitted, 9 received, 18% packet loss, time 10021ms
> >>>>> rtt min/avg/max/mdev = 1.957/351.321/1232.350/430.558 ms, pipe 2
> >>>>>
> >>>>>
> >>>>> there are no errors in the master and client syslog, all the clients
> >>>>> are using the same ath9k with an AR5416 card.
> >>>>> signal level is around -61 dBm at 3 meters, without walls.
> >>>>>
> >>>>
> >>>> This is an iperf from the AP to the client, definitely worse:
> >>>>
> >>>> ------------------------------------------------------------
> >>>> Server listening on UDP port 5001
> >>>> Receiving 1470 byte datagrams
> >>>> UDP buffer size:   112 KByte (default)
> >>>> ------------------------------------------------------------
> >>>> [  3] local 192.168.0.79 port 5001 connected with 192.168.0.1 port 59087
> >>>> [ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
> >>>> [  3]  0.0- 1.0 sec    159 KBytes  1.31 Mbits/sec  9.106 ms  100/  211 (47%)
> >>>> [  3]  1.0- 2.0 sec  2.83 MBytes  23.7 Mbits/sec  14.785 ms  221/ 2240 (9.9%)
> >>>> [  3]  2.0- 3.0 sec    876 KBytes  7.17 Mbits/sec  0.210 ms   45/  655 (6.9%)
> >>>> [  3]  3.0- 4.0 sec  2.29 MBytes  19.2 Mbits/sec  0.137 ms  122/ 1753 (7%)
> >>>> [  3]  4.0- 5.0 sec  4.36 MBytes  36.6 Mbits/sec  0.663 ms  231/ 3341 (6.9%)
> >>>> [  3]  5.0- 6.0 sec  1.59 MBytes  13.3 Mbits/sec  1.107 ms   16/ 1150 (1.4%)
> >>>> [  3]  6.0- 7.0 sec    705 KBytes  5.77 Mbits/sec  25.142 ms   87/  578 (15%)
> >>>> [  3]  7.0- 8.0 sec    924 KBytes  7.57 Mbits/sec  0.454 ms   36/  680 (5.3%)
> >>>> [  3]  8.0- 9.0 sec    577 KBytes  4.73 Mbits/sec  15.732 ms   55/  457 (12%)
> >>>> [  3]  9.0-10.0 sec  1.81 MBytes  15.2 Mbits/sec  0.297 ms   58/ 1352 (4.3%)
> >>>> [  3] 10.0-11.0 sec    728 KBytes  5.96 Mbits/sec  0.449 ms    0/  507 (0%)
> >>>> [  3] 11.0-12.0 sec  0.00 Bytes  0.00 bits/sec  0.449 ms    0/    0 (nan%)
> >>>> [  3] 12.0-13.0 sec  1.99 MBytes  16.7 Mbits/sec  0.545 ms   54/ 1472 (3.7%)
> >>>> [  3] 13.0-14.0 sec  2.13 MBytes  17.9 Mbits/sec  0.321 ms   62/ 1583 (3.9%)
> >>>> [  3] 14.0-15.0 sec  1.03 MBytes  8.64 Mbits/sec  0.716 ms   29/  764 (3.8%)
> >>>> [  3] 15.0-16.0 sec  2.14 MBytes  18.0 Mbits/sec  0.252 ms  214/ 1743 (12%)
> >>>> [  3] 16.0-17.0 sec  2.96 MBytes  24.8 Mbits/sec  19.672 ms   61/ 2170 (2.8%)
> >>>> [  3] 17.0-18.0 sec  40.2 KBytes    329 Kbits/sec  18.868 ms   16/   44 (36%)
> >>>> [  3] 18.0-19.0 sec  4.47 MBytes  37.5 Mbits/sec  0.185 ms  130/ 3316 (3.9%)
> >>>> [  3] 19.0-20.0 sec  7.84 MBytes  65.7 Mbits/sec  0.210 ms  359/ 5949 (6%)
> >>>> [  3] 20.0-21.0 sec  7.71 MBytes  64.7 Mbits/sec  0.149 ms  412/ 5914 (7%)
> >>>> [  3] 21.0-22.0 sec  7.46 MBytes  62.6 Mbits/sec  0.674 ms  398/ 5721 (7%)
> >>>> [  3] 22.0-23.0 sec  7.45 MBytes  62.5 Mbits/sec  0.725 ms  405/ 5719 (7.1%)
> >>>> [  3] 23.0-24.0 sec  6.80 MBytes  57.0 Mbits/sec  0.374 ms  256/ 5106 (5%)
> >>>> [  3] 24.0-25.0 sec  8.07 MBytes  67.7 Mbits/sec  0.163 ms  390/ 6145 (6.3%)
> >>>> [  3] 25.0-26.0 sec  7.56 MBytes  63.4 Mbits/sec  0.230 ms  417/ 5809 (7.2%)
> >>>> [  3] 26.0-27.0 sec  6.59 MBytes  55.3 Mbits/sec  1.414 ms  377/ 5080 (7.4%)
> >>>> [  3] 27.0-28.0 sec  6.83 MBytes  57.3 Mbits/sec  0.224 ms  438/ 5308 (8.3%)
> >>>> [  3] 28.0-29.0 sec  6.33 MBytes  53.1 Mbits/sec  7.292 ms  438/ 4954 (8.8%)
> >>>> [  3]  0.0-29.7 sec    105 MBytes  29.7 Mbits/sec  1.346 ms 5453/80421 (6.8%)
> >>>> [  3]  0.0-29.7 sec  1 datagrams received out-of-order
> >>>> _______________________________________________
> >>>> ath9k-devel mailing list
> >>>> ath9k-devel <at> lists.ath9k.org
> >>>> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> >>>>
> >>>
> >>
> >> yes it does at soem intervals as you can see.
> >> Have you solved or found the issue?
> >>
> >
> 
> Does the link quality drop when the throughput goes down?
> I have -81 dBm at ~5 meters from the AP, no walls...
> Is the AR922X a single chip device as the AR928X?

AR9280 is the PCI express device, but PCI devices exist as well
and those get the AR922x name, there should be no difference
other than the bus used so yes these are single chip as well.

  Luis
Brian Walker | 5 Jan 2010 17:49
Favicon

Re: trouble with DWA-552 and ath9k

Any update on getting this card working with the ath9k?

Brian

Pavel Roskin wrote:
> Quoting Brian Walker <walkerbm <at> charter.net>:
>
>> Ok, so you're going to do testing/tracing and then perhaps submit a
>> patch to get these cards to work based on findings?
>
> Only if I find time for that.
>
Sujith | 8 Jan 2010 05:34
Favicon

Re: trouble with DWA-552 and ath9k

Brian Walker wrote:
> Any update on getting this card working with the ath9k?

The logs that you posted earlier didn't contain debug information.
Can you make sure that you load the driver with debug=0x601 and
post the dmesg output on doing 'ifconfig wlan0 up' ?

Please see: http://wireless.kernel.org/en/users/Drivers/ath9k/debug

That would show what exactly goes wrong when bringing up the interface.

Sujith
Mika Arasola | 8 Jan 2010 10:24
Picon

ath9k / base station compatibility

I recently acquired a computer that has a Atheros 9285 mini-pci wireless adapter. I installed Ubuntu 9.10 (2.6.31-16) and the wireless network functioned as expected (connected to HP WL-420 basestation with WPA TKIP). Next I attempted connecting to an Apple Airport Extreme base station August 2007 revision of the .n compatible base station, WPA encryption).

The Airport Extreme gave decent throughput for 5-10 seconds, then stall completely for 60-90 seconds. Seems like the problem would get worse the more data I transfered. I tested installing the linux-backports-modules packages and things got slightly more stable. Problem is that I can only transfer at 5-10KB/s. Removing encryption gives transfer rates of 100-300KB/s. I also experimented with commenting out the "blacklist ath_pci" row from /etc/modprobe.d/blacklist-ath_pci.conf, but it does not make a big difference. I tested forcing .g connections from the base station but there was no difference. If I force .n connections I can not connect at all.

Remembering it worked fine with the HP base station I tested with an older Apple Airport Express (.g), and it works just fine, so the problem seems to only affect the airport extreme.

In my logs I seem to be getting a lot of entries such as these:

wpa_supplicant[979]: CTRL-EVENT-SCAN-RESULTS

kernel: [50914.259695] ath9k: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x00000020
kernel: [50945.283650] ath9k: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x00000020

While setting up the connection there is these two errors every time:

NetworkManager: <info>  Config: added 'key_mgmt' value 'WPA-PSK'
NetworkManager: <info>  Config: added 'psk' value '<omitted>'
NetworkManager: nm_setting_802_1x_get_pkcs11_engine_path: assertion `NM_IS_SETTING_802_1X (setting)' failed
NetworkManager: nm_setting_802_1x_get_pkcs11_module_path: assertion `NM_IS_SETTING_802_1X (setting)' failed
NetworkManager: <info>  Activation (wlan0) Stage 2 of 5 (Device Configure) complete.


---------------------------------------------------

04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
    Subsystem: Device 1a3b:1089
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 18
    Region 0: Memory at fbff0000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: ath9k
    Kernel modules: ath9k

Any idea how to debug this further? I was unable to find anyone else reporting problems with this base station (though I did find others with the same error messages).

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Khashayar Naderehvandi | 8 Jan 2010 13:42
Picon
Gravatar

D-Link DWA-547 completely freezes system

Dear all,

I recently purchased a wireless-n card, namely the D-link DWA-547. It
has an atheros chipset and is nicely detected by the ath9k driver. I
have been trying to get this card working with the Ubuntu 9.10 kernel
(which is based on 2.6.31), as well as linux 2.6.32. I have also tried
Ubuntu 9.10 backport wireless modules.

lspci reports:
07:02.0 Network controller [0280]: Atheros Communications Inc. AR922X
Wireless Network Adapter [168c:0029] (rev 01)
    Subsystem: D-Link System Inc Device [1186:3a78]
    Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 12
    Memory at fbae0000 (32-bit, non-prefetchable) [size=64K]
    Capabilities: [44] Power Management version 2
    Kernel modules: ath9k

The problem is that after a few minutes - sometimes seconds - the
system halts to a complete freeze where the reset button is the only
way out. Sometimes this happens before X has started, sometimes it
happens right after a connection is established. There is no way for
me to gather any information after the freeze and I haven't found
anything in the logs. So, unfortunately, at the moment I have no clue
as of how to provide this list with more information (and that's why
this ended up being an email to the list, rather than a bug report).

The only thing that helped was to modprobe -r ath9k as soon as the
system booted up (the module is now blacklisted).

I also happened to have a windows 7 license, so I decided to try the
card under Windows 7 for comparison. Interestingly, the system behaved
in precisely the same way: Complete freeze. Later, I noticed that the
problem wasn't uncommon [1]. The retailer, however, insists that the
card I have worked flawlessly under Windows XP for them (I purchased a
demo ex for a discounted price), and that there simply are no Windows
7 drivers. About linux support, they had nothing to say.

So, is this a known issue? And more importantly, how can I even start
trouble shooting?

Best regards,
Khashayar

[1] http://www.google.se/search?sourceid=chrome&ie=UTF-8&q=d-link+dwa-547+complete+freeze
Henning Moll | 9 Jan 2010 15:28
Picon
Picon

Transfer rate issue

Hello

My laptop has a AR928X. Connections to an AVM3270 ("fritzbox") usually have a transfer rate of 216 MBit. The
maximal value i ever noticed so far has been 243MBit. If i run Windows 7, the connection is set up on 300MBit.
Please note, that all of these values are reported by the AP, so there should no "cosmetic effect" involved.

$ uname -a
Linux rubin 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

i use the version from linux-backports-modules-wireless-karmic-generic 2.6.31.17.30

$ modinfo ath9k
filename:       /lib/modules/2.6.31-17-generic/updates/cw/ath9k.ko
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
author:         Atheros Communications
srcversion:     918698AEA3CBE61D0E996E6

Is it possible to get the full 300Mbit with ath9k, too?

Another question:
Whenever i use ssh on my laptop to work on a remote system, the network connection (and therefore my shell
too) hangs for about 5 seconds every 120 seconds. Just in the moment when syslog reports a
"CTRL-EVENT-SCAN-RESULTS". As far as i understand this is because of a scan of all channels, which needs
much more time in the 802.11n system. Is this correct?
I also read that it should be possible to scan all the channels independently with a newer version of
wpa_supplicant, which should at least reduce the effect. Are there any "tutorials" how to achieve this?

kind regards
Henning
--

-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
Brian Walker | 9 Jan 2010 16:14
Favicon

Re: trouble with DWA-552 and ath9k

This is what I have in /etc/modprobe.d/local.conf (I run Fedora 11):

options ath9k debug=0xffffffff

In config.mk I have:

CONFIG_ATH9K_DEBUG=y
CONFIG_ATH9K_DEBUGFS=y

Is there something else I need to do to get the debugging information 
you're interested in?

Brian

On 01/07/2010 11:34 PM, Sujith wrote:
> Brian Walker wrote:
>    
>> Any update on getting this card working with the ath9k?
>>      
> The logs that you posted earlier didn't contain debug information.
> Can you make sure that you load the driver with debug=0x601 and
> post the dmesg output on doing 'ifconfig wlan0 up' ?
>
> Please see: http://wireless.kernel.org/en/users/Drivers/ath9k/debug
>
> That would show what exactly goes wrong when bringing up the interface.
>
> Sujith
>    
Andrey Korolyov | 9 Jan 2010 15:57
Picon

AR5008 and master mode

Hello,

I`ve recently bought WN951N card from TP-LINK that shows following output in lspci:

05:01.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01)
        Subsystem: Atheros Communications Inc. Device 3071
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 168, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 17
        Region 0: Memory at febf0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [40] #80 [0000]
        Kernel driver in use: ath9k
        Kernel modules: ath9k

When i tried to set card in master mode, iwconfig gives me an error but nothing in dmesg
iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Invalid argument.

I am using 2.6.32 with CONFIG_ATH9K=m ; CONFIG_ATH9K_DEBUG=y. The only one way that gives me functional AP was latest svn snapshot from madwifi trunk. There are some issues like slow transfer speed and kernel panics from which i have decided to return to ath9k and wait patch for my card. On mailing lists many people says that 5008 and 5416 are equal but seems that this card is not really works as described(at least, for ath9k). If whoever want to spend some time for fixing this issue, i will be very appreciate and may create root-accessible xen guest with card dedicated to them. Also i will be very thankful for any help to setting my card in mastermode.

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Pavel Roskin | 9 Jan 2010 16:34
Picon

Re: AR5008 and master mode

On Sat, 2010-01-09 at 17:57 +0300, Andrey Korolyov wrote:

> When i tried to set card in master mode, iwconfig gives me an error
> but nothing in dmesg
> iwconfig wlan0 mode master
> Error for wireless request "Set Mode" (8B06) :
>     SET failed on device wlan0 ; Invalid argument.

You can only set master mode in mac80211 based drivers by running
hostapd.

--

-- 
Regards,
Pavel Roskin

Gmane