Problem with WPA-PSK

Actinium at iocaine.com Actinium at iocaine.com
Mon Sep 20 00:30:21 EDT 2004


I wonder who can help me with this problem. I was setting up a WPA-PSK 
connection. my config for
wpa_supplicant are as follow:
network={
        ssid="test"
        scan_ssid=1
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        psk=1234567890123456789012345678901234567890123456789012345678901234
        priority=2
}

my config for hostapd are as follow:
ssid=test
auth_algs=3
wpa=1
wpa_psk=1234567890123456789012345678901234567890123456789012345678901234
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_group_rekey=600
wpa_gmk_rekey=86400

debug message from wpa_supplicant as follow:
# ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
ap_scan=1
Line: 186 - start of a new network block
SSID - hexdump_ascii(len=4):
     74 65 73 74                                       test
proto: 0x1
key_mgmt: 0x2
pairwise: 0x10
group: 0x10
PSK - hexdump(len=32): 12 34 56 78 90 12 34 56 78 90 12 34 56 78 90 12 
34 56 78
90 12 34 56 78 90 12 34 56 78 90 12 34
priority=2
Priority group 2
   id=0 ssid='test'
wpa_driver_hostap_set_wpa: enabled=1
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_countermeasures: enabled=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Disconnect event - remove keys
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=4):
     74 65 73 74                                       test
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Disconnect event - remove keys
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
Wireless event: cmd=0x8b19 len=12
Received 234 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 2
0: 00:60:b3:8b:ea:0b ssid='test' wpa_ie_len=28 rsn_ie_len=0
   selected
Trying to associate with 00:60:b3:8b:ea:0b (SSID='test' freq=2412 MHz)
Cancelling scan request
WPA: using IEEE 802.11i/D3.0
WPA: Own WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 04 
01 00 00
50 f2 04 01 00 00 50 f2 02
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
wpa_driver_hostap_associate
Setting authentication timeout: 5 sec 0 usec
Wireless event: cmd=0x8b04 len=12
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Disconnect event - remove keys
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
Wireless event: cmd=0x8b1a len=16
RX EAPOL from 00:60:b3:8b:ea:0b
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 
00 01 a8 5e dd 78 9e 8a fb 49 7e cc 55 9b 1f 37 53 e5 c8 79 bf 47 8f 03 
ab d8 9a 02 ba
79 19 16 21 9c 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 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00
Setting authentication timeout: 10 sec 0 usec
EAPOL frame received in disassociated state - dropped
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Disconnect event - remove keys
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:60:b3:8b:ea:0b
Association event - clear replay counter
Associated to a new BSS: BSSID=00:60:b3:8b:ea:0b
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
Setting authentication timeout: 10 sec 0 usec
RX EAPOL from 00:60:b3:8b:ea:0b
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 
00 02 a8 5e dd 78 9e 8a fb 49 7e cc 55 9b 1f 37 53 e5 c8 79 bf 47 8f 03 
ab d8 9a 02 ba
79 19 16 21 9c 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 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 8a 00 10 00 00 00 
00 00 00 00 02 a8 5e dd 78 9e 8a fb 49 7e cc 55 9b 1f 37 53 e5 c8 79 bf 
47 8f 03 ab d8
9a 02 ba 79 19 16 21 9c 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 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00
WPA: RX message 1 of 4-Way Handshake from 00:60:b3:8b:ea:0b (ver=2)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 
f2 04 01 00 00 50 f2 04 01 00 00 50 f2 02
WPA: Renewed SNonce - hexdump(len=32): 77 6c 61 6e 30 20 20 20 20 20 4c 
69 6e 6b 20 65 6e 63 61 70 3a 45 74 68 65 72 6e 65 74 20 20 48
WPA: PMK - hexdump(len=32): 12 34 56 78 90 12 34 56 78 90 12 34 56 78 90 
12 34 56 78 90 12 34 56 78 90 12 34 56 78 90 12 34
WPA: PTK - hexdump(len=64): 49 36 2b 87 b7 6f 6f ed c8 e8 da 73 18 4a 7b 
87 d3 bc ea f0 e9 1f 64 4e 05 27 58 55 38 32 e3 d7 47 f4 4c b6 ed 63 56 
d6 e2 3e 16 b6
a4 e3 f1 b3 e0 3f de 53 4e f7 ff 9d 06 a4 c1 ac 29 98 d1 cf
WPA: EAPOL-Key MIC - hexdump(len=16): bb fa c6 08 81 1b 81 6f b9 65 99 
bd 29 2c
f5 e3
WPA: Sending EAPOL-Key 2/4
WPA: TX EAPOL-Key 2/4 - hexdump(len=137): 00 60 b3 8b ea 0b 00 0c 84 01 
23 60 88 8e 01 03 00 77 fe 01 0a 00 10 00 00 00 00 00 00 00 02 77 6c 61 
6e 30 20 20 20 20 20 4c 69 6e 6b 20 65 6e 63 61 70 3a 45 74 68 65 72 6e 
65 74 20 20 48 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 bb fa c6 08 81 1b 81 6f b9 65 99 bd 29 2c f5 e3 00 18 dd 
16 00 50 f2 01 01 00 00 50 f2 04 01 00 00 50 f2 04 01 00 00 50 f2 02
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Disconnect event - remove keys
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
RX EAPOL from 00:60:b3:8b:ea:0b
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 
00 03 a8 5e dd 78 9e 8a fb 49 7e cc 55 9b 1f 37 53 e5 c8 79 bf 47 8f 03 
ab d8 9a 02 ba
79 19 16 21 9c 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 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00
EAPOL frame received in disassociated state - dropped
Starting AP scan (broadcast SSID)
RX EAPOL from 00:60:b3:8b:ea:0b
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 
00 04 a8 5e dd 78 9e 8a fb 49 7e cc 55 9b 1f 37 53 e5 c8 79 bf 47 8f 03 
ab d8 9a 02 ba
79 19 16 21 9c 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 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00
EAPOL frame received in disassociated state - dropped


    Thank you for the helps...
Regards,
Lim Yew Chai




More information about the HostAP mailing list