Station randomly losses connection to AP using ath9k

Sergio Miguel Rodriguez Padilla sergiomiguelrp
Thu Jul 5 18:33:32 PDT 2012


Hello.

My laptop gets disconected randomly. The below description is the best 
I've been able to capture.

-----------------------------------------------BEGIN 
DESCRIPTION-------------------------------------------------
STATION SAYS:

Associated with 74:ea:3a:b8:7f:3e
WPA: Key negotiation completed with 74:ea:3a:b8:7f:3e [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 74:ea:3a:b8:7f:3e completed 
(reauth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: Key negotiation completed with 74:ea:3a:b8:7f:3e [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 74:ea:3a:b8:7f:3e completed 
(reauth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: Key negotiation completed with 74:ea:3a:b8:7f:3e [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 74:ea:3a:b8:7f:3e completed 
(reauth) [id=0 id_str=]


AT THE SAME TIME, SERVER SAYS:

Data/PS-poll frame from no associated STA MAC_ADDRESS

AND: PING FROM STA TO AP

root at kepler:~# ping 172.31.0.1
PING 172.31.0.1 (172.31.0.1) 56(84) bytes of data.
 From 172.31.0.81 icmp_seq=2 Destination Host Unreachable
 From 172.31.0.81 icmp_seq=3 Destination Host Unreachable
 From 172.31.0.81 icmp_seq=5 Destination Host Unreachable

THEN, KILLED WPA_SUPPLICANT, SERVER SAID:

wlan0: deauthentication: STA=MAC_ADDRESS reason_code=3
wlan0: Station 5c:ac:4c:b9:69:62 trying to deauthenticate, but it is not 
authenticated

WHEN TRYING TO CONNECT AGAIN, SERVER SAID:

authentication: STA=MAC_ADDRESS auth_alg=0 auth_transaction=1 
status_code=0 wep=0
New STA
authentication reply: STA=MAC_ADDRESS auth_alg=0 auth_transaction=2 
resp=0 (IE len=0)

AT THE SAME TIME, STATION SAID:
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Authentication with 74:ea:3a:b8:7f:3e timed out.
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Authentication with 74:ea:3a:b8:7f:3e timed out.
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Authentication with 74:ea:3a:b8:7f:3e timed out.
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Authentication with 74:ea:3a:b8:7f:3e timed out.
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
.
.
.
.
.
REPEATS



AFTER RESTARTING HOSTAPD DAEMON, STATION SAID:

Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED bssid=74:ea:3a:b8:7f:3e reason=0
Trying to associate with 74:ea:3a:b8:7f:3e (SSID='chewbacca' freq=2422 MHz)
Associated with 74:ea:3a:b8:7f:3e
WPA: Key negotiation completed with 74:ea:3a:b8:7f:3e [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 74:ea:3a:b8:7f:3e completed (auth) 
[id=0 id_str=]



AT THE SAME TIME, SERVER SAID:

WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 
kde_len=0 keyidx=0 encr=0)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 4)
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKSTART
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 
5c:ac:4c:b9:69:62 reason 2
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=0
    addr=5c:ac:4c:b9:69:62
WPA: wpa_sm_step() called recursively
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state DISCONNECTED
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=0
    addr=5c:ac:4c:b9:69:62
mgmt::deauth cb
STA 5c:ac:4c:b9:69:62 did not acknowledge deauth
Removing STA 5c:ac:4c:b9:69:62 from kernel driver
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=0
    addr=5c:ac:4c:b9:69:62
Add randomness: count=26 entropy=22
Add randomness: count=27 entropy=23
mgmt::auth
authentication: STA=5c:ac:4c:b9:69:62 auth_alg=0 auth_transaction=1 
status_code=0 wep=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=0
    addr=5c:ac:4c:b9:69:62
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=0
    addr=5c:ac:4c:b9:69:62
authentication reply: STA=5c:ac:4c:b9:69:62 auth_alg=0 
auth_transaction=2 resp=0 (IE len=0)
Add randomness: count=28 entropy=24
mgmt::auth cb
mgmt::assoc_req
association request: STA=5c:ac:4c:b9:69:62 capab_info=0x431 
listen_interval=10
WMM IE - hexdump(len=7): 00 50 f2 02 00 01 00
Validating WMM IE: OUI 00:50:f2  OUI type 2  OUI sub-type 0  version 1  
QoS info 0x0
   old AID 1
HT: STA 5c:ac:4c:b9:69:62 HT Capabilities Info: 0x186e
update_sta_ht STA 5c:ac:4c:b9:69:62 - no greenfield, num of non-gf 
stations 1
hostapd_ht_operation_update current operation mode=0x4
hostapd_ht_operation_update new operation mode=0x4 changes=0
Add randomness: count=29 entropy=25
mgmt::assoc_resp cb
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=0
    addr=5c:ac:4c:b9:69:62
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=0
    addr=5c:ac:4c:b9:69:62
IEEE 802.1X: Ignore STA - using PSK
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state AUTHENTICATION2
WPA: Assign ANonce - hexdump(len=32): c3 14 5a 37 5a 9d 9a 27 d5 56 7a 
42 50 da 15 ab 90 5f 9c 66 f2 35 80 fc f0 83 f4 85 c5 5f 2a e0
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state INITPSK
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKSTART
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 
kde_len=0 keyidx=0 encr=0)
WPA: Use EAPOL-Key timeout of 100 ms (retry counter 1)
mgmt::action cb
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKSTART
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 
kde_len=0 keyidx=0 encr=0)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKSTART
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 
kde_len=0 keyidx=0 encr=0)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 3)
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKSTART
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 
kde_len=0 keyidx=0 encr=0)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 4)
IEEE 802.1X: 121 bytes from 5c:ac:4c:b9:69:62
    IEEE 802.1X: version=1 type=3 length=117
WPA: Received EAPOL-Key from 5c:ac:4c:b9:69:62 key_info=0x10a type=2 
key_data_length=22
WPA: Received Key Nonce - hexdump(len=32): 42 b7 79 38 98 00 96 8e ac 7b 
8e 22 b9 53 e4 37 10 9f ce 1b 79 5f 24 9c 24 38 34 82 15 d8 84 28
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 04
Add randomness: count=30 entropy=26
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=74:ea:3a:b8:7f:3e A2=5c:ac:4c:b9:69:62
WPA: Nonce1 - hexdump(len=32): c3 14 5a 37 5a 9d 9a 27 d5 56 7a 42 50 da 
15 ab 90 5f 9c 66 f2 35 80 fc f0 83 f4 85 c5 5f 2a e0
WPA: Nonce2 - hexdump(len=32): 42 b7 79 38 98 00 96 8e ac 7b 8e 22 b9 53 
e4 37 10 9f ce 1b 79 5f 24 9c 24 38 34 82 15 d8 84 28
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKINITNEGOTIATING
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8 
kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
WPA: Use EAPOL-Key timeout of 100 ms (retry counter 1)
IEEE 802.1X: 99 bytes from 5c:ac:4c:b9:69:62
    IEEE 802.1X: version=1 type=3 length=95
WPA: Received EAPOL-Key from 5c:ac:4c:b9:69:62 key_info=0x30a type=2 
key_data_length=0
WPA: Received Key Nonce - hexdump(len=32): 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 05
WPA: 5c:ac:4c:b9:69:62 WPA_PTK entering state PTKINITDONE
wpa_driver_nl80211_set_key: ifindex=4 alg=3 addr=0x8ec0b50 key_idx=0 
set_tx=1 seq_len=0 key_len=16
    addr=5c:ac:4c:b9:69:62
wlan0: AP-STA-CONNECTED 5c:ac:4c:b9:69:62
wlan0: Station 5c:ac:4c:b9:69:62 has been active 1s ago
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
mgmt::action cb
Add randomness: count=31 entropy=27
wlan0: Station 5c:ac:4c:b9:69:62 has been active 16s ago


AND GOT ECHO REPLY SEVERAL SECONDS AFTER IT.

-----------------------------------------------END 
DESCRIPTION---------------------------------------------------

----------------------------------------BEGIN HOSTAPD CONFIG 
FILE--------------------------------------------

interface=wlan0
bridge=br0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=chewbacca
country_code=VE
ieee80211d=1
hw_mode=g
channel=3
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
ieee80211n=1

ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40]
ieee8021x=1###

eapol_version=2###

eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1

auth_server_addr=172.31.0.3
auth_server_port=1812
auth_server_shared_secret=SOMESECRET
wpa=2
wpa_passphrase=SOMEKEY
wpa_key_mgmt=WPA-PSK WPA-EAP

wpa_pairwise=CCMP TKIP

wme_enabled=1


-----------------------------------------END HOSTAPD CONFIG 
FILE---------------------------------------------

---------------------------------------BEGIN WPA SUPPLICANT CONFIG 
FILE---------------------------------
# WPA-PSK/TKIP

ctrl_interface=/var/run/wpa_supplicant
country=VE

network={
         ssid="chewbacca"
         key_mgmt=WPA-PSK
         proto=WPA2 RSN
         pairwise=CCMP
         group=TKIP
         psk="SOMEKEY"
}


-----------------------------------------END WPA SUPPLICANT CONFIG 
FILE----------------------------------

-----------------------------------------BEGIN SERVER 
DETAILS---------------------------------------------------
chewbacca
     description: Computer
     width: 32 bits
     capabilities: smbios-2.1 dmi-2.1
     configuration: uuid=260408B8-D947-11D3-BEBE-0800093D6C53
   *-core
        description: Motherboard
        product: SE440BX-2
        vendor: Intel Corporation
      *-firmware
           description: BIOS
           vendor: Intel Corp.
           version: 4S4EB2X0.86A.0024.P17
      *-cpu
           description: CPU
           product: Pentium III (Katmai)
           vendor: Intel Corp.
           size: 450MHz
           width: 32 bits
           clock: 100MHz

         *-network:3
              description: Wireless interface
              product: AR5416 Wireless Network Adapter [AR5008 802.11(a)bgn]
              vendor: Atheros Communications Inc.
              physical id: 10
              bus info: pci at 0000:00:10.0
              logical name: wlan0
              version: 01
              serial: 74:ea:3a:b8:7f:3e
              width: 32 bits
              clock: 66MHz
              capabilities: bus_master cap_list ethernet physical 
wireless logical
              configuration: broadcast=yes driver=ath9k latency=168 
multicast=yes wireless=IEEE 802.11bgn
              resources: irq:9 memory:f4010000-f401ffff

Linux chewbacca 2.6.32-5-686 #1 SMP Sat May 5 01:33:08 UTC 2012 i686 
GNU/Linux

Debian Version: wheezy/sid

-----------------------------------------END SERVER 
DETAILS---------------------------------------------------

----------------------------------------BEGIN SERVER 
DETAILS------------------------------------------------
kepler
     description: Notebook
     product: 2516AEU ()
     vendor: LENOVO
     version: ThinkPad T410
     serial: R83CCDV
     width: 64 bits
     capabilities: smbios-2.6 dmi-2.6 vsyscall32
     configuration: administrator_password=enabled boot=normal 
chassis=notebook family=ThinkPad T410 frontpanel_password=unknown 
keyboard_password=disabled power-on_password=enabled 
uuid=94631501-4FFE-11CB-A52E-A58ECC78791A
   *-core
        description: Motherboard
        product: 2516AEU
        vendor: LENOVO
        physical id: 0
        version: Not Available
      *-firmware
           description: BIOS
           vendor: LENOVO
           physical id: 0
           version: 6IET72WW (1.32 )
           date: 08/27/2010
           size: 128KiB
           capacity: 8128KiB
           capabilities: pci pcmcia pnp upgrade shadowing escd cdboot 
bootselect edd int13floppy720 int5printscreen int9keyboard int14serial 
int17printer int10video acpi usb biosbootspecification
      *-cpu
           description: CPU
           product: Intel(R) Core(TM) i5 CPU       M 520  @ 2.40GHz
           vendor: Intel Corp.
           physical id: 6
           bus info: cpu at 0
           version: Intel(R) Core(TM) i5 CPU       M 520  @ 2.40GHz
           slot: None
           size: 1199MHz
           capacity: 2400MHz
           width: 64 bits
           clock: 133MHz
           capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce 
cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse 
sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon 
pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq 
dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 
sse4_2 popcnt aes lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid 
cpufreq
           configuration: cores=2 enabledcores=2 threads=4

            *-network
                 description: Wireless interface
                 product: RTL8191SEvB Wireless LAN Controller
                 vendor: Realtek Semiconductor Co., Ltd.
                 physical id: 0
                 bus info: pci at 0000:03:00.0
                 logical name: wlan0
                 version: 10
                 serial: 5c:ac:4c:b9:69:62
                 width: 32 bits
                 clock: 33MHz
                 capabilities: pm msi pciexpress bus_master cap_list 
ethernet physical wireless
                 configuration: broadcast=yes driver=rtl8192se 
driverversion=3.2.0-23-generic firmware=N/A ip=172.31.0.112 latency=0 
link=yes multicast=yes wireless=IEEE 802.11bgn
                 resources: irq:17 ioport:3000(size=256) 
memory:f2000000-f2003fff

Linux kepler 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 
2012 x86_64 x86_64 x86_64 GNU/Linux

Kubuntu 11.04

root at kepler:/tmp# lsmod | grep rtl
rtl8192se              99989  0
rtlwifi               111202  1 rtl8192se
mac80211              506816  2 rtl8192se,rtlwifi
cfg80211              205544  2 rtlwifi,mac80211
-----------------------------------------END CLIENT 
DETAILS---------------------------------------------------


Thanks in advance for the help you're able to provide.



More information about the Hostap mailing list