Help with EAP-OTP & Madwifi or hostap driver

Francis J. Hitchens fhitchen
Tue Jan 11 06:49:26 PST 2005


Hi,

I've been struggling for a few weeks trying to authenticate using PEAP
and OTP and could do with some help. I started out using the madwifi
diver for my Linksys WPC55AG V1.1 card but read that it had problems. I
have since started using the Linuxant hostap driver with no greater
success. Association using TKIP works but that's as far as I get. I'm
using the latest linuxant driver and wpa_supplicant-0.2.6 under fedora
core 3 using the linuxant 16 stack kernel.

My config file


network={
        ssid="XyzWireless"
        scan_ssid=1
        key_mgmt=WPA-EAP
        pairwise=TKIP
        group=TKIP
        eap=PEAP
        identity="foobar1"
        ca_cert="/home/foobar1/wpa_supplicant-0.2.5/ca1srv.pem"
        phase1="peapver=1"
        phase2="auth=OTP"
}

Log file

Configuration file 'wpa_supplicant.conf.old' ->
'/home/foobar1/wpa_supplicant-0.2.6/wpa_supplicant.conf.old'
Reading configuration file
'/home/foobar1/wpa_supplicant-0.2.6/wpa_supplicant.conf.old'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
Line: 190 - start of a new network block
SSID - hexdump_ascii(len=11):
     41 6d 64 57 69 72 65 6c 65 73 73                  XyzWireless     
key_mgmt: 0x1
pairwise: 0x8
group: 0x8
eap methods - hexdump(len=2): 19 00
identity - hexdump_ascii(len=8):
     66 68 69 74 63 68 65 6e                           foobar1        
ca_cert=/home/foobar1/wpa_supplicant-0.2.5/ca1srv.pem
phase1=peapver=1
phase2=auth=OTP
Priority group 0
   id=0 ssid='XyzWireless'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
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
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=11):
     41 6d 64 57 69 72 65 6c 65 73 73                  XyzWireless     
Failed to initiate AP scan.
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0
idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0
idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0
idleWhile=0
Scan timeout - try to get results
Received 272 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:11:20:78:c8:10 ssid='XyzWireless' wpa_ie_len=24 rsn_ie_len=0
   selected
Trying to associate with 00:11:20:78:c8:10 (SSID='XyzWireless' freq=2447
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 02
01 00 00 50 f2 02 01 00 00 50 f2 01
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
hostap: Failed to configure ieee_802_1x param
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=Auto
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
Wireless event: cmd=0x8c02 len=181
Custom wireless event: 'ASSOCINFO
(ReqIEs=000b416d64576972656c657373010802040b0c1216182432043048606cdd180050f20101000050f20201000050f20201000050f2010000 RespIEs=010882040b0c1216182432043048606c)'
Association info event
req_ies - hexdump(len=55): 00 0b 41 6d 64 57 69 72 65 6c 65 73 73 01 08
02 04 0b 0c 12 16 18 24 32 04 30 48 60 6c dd 18 00 50 f2 01 01 00 00 50
f2 02 01 00 00 50 f2 02 01 00 00 50 f2 01 00 00
assoc_wpa_ie - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01
00 00 50 f2 02 01 00 00 50 f2 01 00 00
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:11:20:78:c8:10
Association event - clear replay counter
Associated to a new BSS: BSSID=00:11:20:78:c8:10
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
Associated with 00:11:20:78:c8:10
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL - hexdump(len=18): 00 11 20 78 c8 10 00 0c 41 fc 90 21 88 8e 01
01 00 00
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
RX EAPOL from 00:11:20:78:c8:10
RX EAPOL - hexdump(len=46): 01 00 00 05 01 01 00 05 01 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: 70 sec 0 usec
EAPOL: Received EAP-Packet frame
EAPOL: SUPP_PAE entering state RESTART
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state REQUEST
EAPOL: getSuppRsp
EAP: EAP entering state RECEIVED
EAP: Received EAP-Request method=1 id=1
EAP: EAP entering state IDENTITY
EAP: EAP-Request Identity data - hexdump_ascii(len=0):
EAP: using real identity - hexdump_ascii(len=8):
     66 68 69 74 63 68 65 6e                           foobar1        
EAP: EAP entering state SEND_RESPONSE
EAP: EAP entering state IDLE
EAPOL: SUPP_BE entering state RESPONSE
EAPOL: txSuppRsp
TX EAPOL - hexdump(len=31): 00 11 20 78 c8 10 00 0c 41 fc 90 21 88 8e 01
00 00 0d 02 01 00 0d 01 66 68 69 74 63 68 65 6e
EAPOL: SUPP_BE entering state RECEIVE
WPA: EAPOL frame too short, len 46, expecting at least 99
RX EAPOL from 00:11:20:78:c8:10
RX EAPOL - hexdump(len=46): 01 00 00 05 01 02 00 05 01 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: Received EAP-Packet frame
EAPOL: SUPP_BE entering state REQUEST
EAPOL: getSuppRsp
EAP: EAP entering state RECEIVED
EAP: Received EAP-Request method=1 id=2
EAP: EAP entering state IDENTITY
EAP: EAP-Request Identity data - hexdump_ascii(len=0):
EAP: using real identity - hexdump_ascii(len=8):
     66 68 69 74 63 68 65 6e                           foobar1        
EAP: EAP entering state SEND_RESPONSE
EAP: EAP entering state IDLE
EAPOL: SUPP_BE entering state RESPONSE
EAPOL: txSuppRsp
TX EAPOL - hexdump(len=31): 00 11 20 78 c8 10 00 0c 41 fc 90 21 88 8e 01
00 00 0d 02 02 00 0d 01 66 68 69 74 63 68 65 6e
EAPOL: SUPP_BE entering state RECEIVE
WPA: EAPOL frame too short, len 46, expecting at least 99
RX EAPOL from 00:11:20:78:c8:10
RX EAPOL - hexdump(len=46): 01 00 00 18 01 54 00 18 11 01 00 08 a5 50 ff
c1 57 b1 41 9b 66 68 69 74 63 68 65 6e 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
EAPOL: Received EAP-Packet frame
EAPOL: SUPP_BE entering state REQUEST
EAPOL: getSuppRsp
EAP: EAP entering state RECEIVED
EAP: Received EAP-Request method=17 id=84
EAP: EAP entering state GET_METHOD
EAP: Building EAP-Nak (requested type 17 not allowed)
EAP: allowed methods - hexdump(len=1): 19
EAP: EAP entering state SEND_RESPONSE
EAP: EAP entering state IDLE
EAPOL: SUPP_BE entering state RESPONSE
EAPOL: txSuppRsp
TX EAPOL - hexdump(len=24): 00 11 20 78 c8 10 00 0c 41 fc 90 21 88 8e 01
00 00 06 02 54 00 06 03 19
EAPOL: SUPP_BE entering state RECEIVE
WPA: EAPOL frame too short, len 46, expecting at least 99
RX EAPOL from 00:11:20:78:c8:10
RX EAPOL - hexdump(len=46): 01 00 00 06 01 55 00 06 19 21 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: Received EAP-Packet frame
EAPOL: SUPP_BE entering state REQUEST
EAPOL: getSuppRsp
EAP: EAP entering state RECEIVED
EAP: Received EAP-Request method=25 id=85
EAP: EAP entering state GET_METHOD
EAP-PEAP: Forced PEAP version 1
EAP-PEAP: Phase2 type: OTP
SSL: Trusted root certificate(s) loaded
EAP: EAP entering state METHOD
EAP-PEAP: Received packet(len=6) - Flags 0x21
EAP-PEAP: Start (server ver=1, own ver=1)
EAP-PEAP: Using PEAP version 1
SSL: (where=0x10 ret=0x1)
SSL: (where=0x1001 ret=0x1)
SSL: SSL_connect:before/connect initialization
SSL: (where=0x1001 ret=0x1)
SSL: SSL_connect:SSLv3 write client hello A
SSL: (where=0x1002 ret=0xffffffff)
SSL: SSL_connect:error in SSLv3 read server hello A
SSL: SSL_connect - want more data
SSL: 100 bytes left to be sent out (of total 100 bytes)
EAP: EAP entering state SEND_RESPONSE
EAP: EAP entering state IDLE
EAPOL: SUPP_BE entering state RESPONSE
EAPOL: txSuppRsp
TX EAPOL - hexdump(len=124): 00 11 20 78 c8 10 00 0c 41 fc 90 21 88 8e
01 00 00 6a 02 55 00 6a 19 01 16 03 01 00 5f 01 00 00 5b 03 01 41 d1 f2
69 1c a9 63 cd 8d ea 14 f3 eb 96 0a 70 6c f6 05 6b e6 74 ed 12 03 38 72
c3 83 91 03 42 00 00 34 00 39 00 38 00 35 00 16 00 13 00 0a 00 33 00 32
00 2f 00 66 00 05 00 04 00 63 00 62 00 61 00 15 00 12 00 09 00 65 00 64
00 60 00 14 00 11 00 08 00 06 00 03 01 00
EAPOL: SUPP_BE entering state RECEIVE
WPA: EAPOL frame too short, len 46, expecting at least 99
EAPOL: Port Timers tick - authWhile=29 heldWhile=0 startWhen=29
idleWhile=59
EAPOL: Port Timers tick - authWhile=28 heldWhile=0 startWhen=28
idleWhile=58
EAPOL: Port Timers tick - authWhile=27 heldWhile=0 startWhen=27
idleWhile=57
EAPOL: Port Timers tick - authWhile=26 heldWhile=0 startWhen=26
idleWhile=56
EAPOL: Port Timers tick - authWhile=25 heldWhile=0 startWhen=25
idleWhile=55
EAPOL: Port Timers tick - authWhile=24 heldWhile=0 startWhen=24
idleWhile=54
EAPOL: Port Timers tick - authWhile=23 heldWhile=0 startWhen=23
idleWhile=53
EAPOL: Port Timers tick - authWhile=22 heldWhile=0 startWhen=22
idleWhile=52
EAPOL: Port Timers tick - authWhile=21 heldWhile=0 startWhen=21
idleWhile=51
EAPOL: Port Timers tick - authWhile=20 heldWhile=0 startWhen=20
idleWhile=50
EAPOL: Port Timers tick - authWhile=19 heldWhile=0 startWhen=19
idleWhile=49
EAPOL: Port Timers tick - authWhile=18 heldWhile=0 startWhen=18
idleWhile=48
EAPOL: Port Timers tick - authWhile=17 heldWhile=0 startWhen=17
idleWhile=47
EAPOL: Port Timers tick - authWhile=16 heldWhile=0 startWhen=16
idleWhile=46
EAPOL: Port Timers tick - authWhile=15 heldWhile=0 startWhen=15
idleWhile=45
EAPOL: Port Timers tick - authWhile=14 heldWhile=0 startWhen=14
idleWhile=44
EAPOL: Port Timers tick - authWhile=13 heldWhile=0 startWhen=13
idleWhile=43
EAPOL: Port Timers tick - authWhile=12 heldWhile=0 startWhen=12
idleWhile=42
EAPOL: Port Timers tick - authWhile=11 heldWhile=0 startWhen=11
idleWhile=41
EAPOL: Port Timers tick - authWhile=10 heldWhile=0 startWhen=10
idleWhile=40
EAPOL: Port Timers tick - authWhile=9 heldWhile=0 startWhen=9
idleWhile=39
EAPOL: Port Timers tick - authWhile=8 heldWhile=0 startWhen=8
idleWhile=38
EAPOL: Port Timers tick - authWhile=7 heldWhile=0 startWhen=7
idleWhile=37
EAPOL: Port Timers tick - authWhile=6 heldWhile=0 startWhen=6
idleWhile=36
EAPOL: Port Timers tick - authWhile=5 heldWhile=0 startWhen=5
idleWhile=35
EAPOL: Port Timers tick - authWhile=4 heldWhile=0 startWhen=4
idleWhile=34
EAPOL: Port Timers tick - authWhile=3 heldWhile=0 startWhen=3
idleWhile=33
EAPOL: Port Timers tick - authWhile=2 heldWhile=0 startWhen=2
idleWhile=32
EAPOL: Port Timers tick - authWhile=1 heldWhile=0 startWhen=1
idleWhile=31
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0
idleWhile=30
EAPOL: SUPP_BE entering state TIMEOUT
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL - hexdump(len=18): 00 11 20 78 c8 10 00 0c 41 fc 90 21 88 8e 01
01 00 00
EAPOL: SUPP_BE entering state IDLE
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=29
idleWhile=29
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=28
idleWhile=28
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=27
idleWhile=27
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=26
idleWhile=26
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=25
idleWhile=25
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=24
idleWhile=24
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=23
idleWhile=23
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=22
idleWhile=22
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=21
idleWhile=21
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=20
idleWhile=20
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=19
idleWhile=19
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=18
idleWhile=18
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=17
idleWhile=17
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=16
idleWhile=16
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=15
idleWhile=15
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=14
idleWhile=14
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=13
idleWhile=13
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=12
idleWhile=12
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=11
idleWhile=11
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=10
idleWhile=10
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=9
idleWhile=9
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=8
idleWhile=8
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=7
idleWhile=7
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=6
idleWhile=6
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=5
idleWhile=5
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=4
idleWhile=4
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=3
idleWhile=3
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
Wireless event: cmd=0x8c02 len=181
Custom wireless event: 'ASSOCINFO
(ReqIEs=000b416d64576972656c657373010802040b0c1216182432043048606cdd180050f20101000050f20201000050f20201000050f2010000 RespIEs=010882040b0c1216182432043048606c)'
Association info event
req_ies - hexdump(len=55): 00 0b 41 6d 64 57 69 72 65 6c 65 73 73 01 08
02 04 0b 0c 12 16 18 24 32 04 30 48 60 6c dd 18 00 50 f2 01 01 00 00 50
f2 02 01 00 00 50 f2 02 01 00 00 50 f2 01 00 00
assoc_wpa_ie - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01
00 00 50 f2 02 01 00 00 50 f2 01 00 00
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:11:20:78:c8:10
Association event - clear replay counter
Associated with 00:11:20:78:c8:10
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart






More information about the Hostap mailing list