problem with hostap+ndiswrapper

FireStorm - gandalf_the_gray
Tue Mar 21 12:17:04 PST 2006


Hello list,

this is not a hostap related question, but it seems that the list is 
appropriate anyway (I apologize in advance if it isn't).

Here it goes:
I am trying to make my PCMCIA card work with WPA. Wpa_supplicant seems to 
work fine, but after a few minutes the connection hangs and I am not able to 
transfer anything, unless restarting the card and restarting wpa_supplicant 
again.

Some info:
- The card uses a Linksys INPROCOMM IPN 2220 chipset.
- I use ndiswrapper version 2.7 to make it work with the neti2220.inf 
driver.
- The OS is a custom Devil-Linux with 2.4.32 kernel (with grsec).
- Wpa_supplicant is version 0.4.8
- The AP is a NetGear DG834GT

Here is the wpa_supplicant.conf file:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
network={
        ssid="xxxx"
        key_mgmt=WPA-PSK
        proto=WPA
        psk="yyyy"
}

Looking through the wpa_supplicant log (pasted below), it seems that at 
17:28 the AP  starts  triggering GROUP_HANDSHAKE's. The first ones get 
COMPLETE'd, but after a while the PC starts to complain that "Key Replay 
Counter did not increase", dropping all subsequent packets. At that point, 
no packet makes its way to/from the PC.

Another clue: when starting wpa_supplicant I get:
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device

...but as I said, for a few minuted the link is up and running

So... anybody has some clue about how to solve this ?

Thanks in advance

Al

----- wpa_supplicant log-----
Mar 21 17:19:17.693290: Initializing interface 'wlan0' conf 
'/etc/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'N/A'
Mar 21 17:19:17.693660: Configuration file '/etc/wpa_supplicant.conf' -> 
'/etc/wpa_supplicant.conf'
Mar 21 17:19:17.693685: Reading configuration file 
'/etc/wpa_supplicant.conf'
Mar 21 17:19:17.693808: ctrl_interface='/var/run/wpa_supplicant'
Mar 21 17:19:17.694653: ctrl_interface_group=0 (from group name 'root')
Mar 21 17:19:17.694710: fast_reauth=1
Mar 21 17:19:17.774947: Priority group 0
Mar 21 17:19:17.774974:    id=0 ssid='xxxxx'
Mar 21 17:19:17.775011: Initializing interface (2) 'wlan0'
Mar 21 17:19:17.785767: EAPOL: SUPP_PAE entering state DISCONNECTED
Mar 21 17:19:17.785799: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
Mar 21 17:19:17.785814: EAPOL: SUPP_BE entering state INITIALIZE
Mar 21 17:19:17.785836: EAP: EAP entering state DISABLED
Mar 21 17:19:17.786016: EAPOL: External notification - portEnabled=0
Mar 21 17:19:17.786113: EAPOL: External notification - portValid=0
Mar 21 17:19:17.788090: SIOCGIWRANGE: too old (short) data - assuming WPA is 
not supported
Mar 21 17:19:17.811576: Own MAC address: 00:01:36:0a:6d:af
Mar 21 17:19:17.811673: wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 
seq_len=0 key_len=0
Mar 21 17:19:17.813384: Driver did not support SIOCSIWENCODEEXT, trying 
SIOCSIWENCODE
Mar 21 17:19:17.813446: wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 
seq_len=0 key_len=0
Mar 21 17:19:17.815025: Driver did not support SIOCSIWENCODEEXT, trying 
SIOCSIWENCODE
Mar 21 17:19:17.815062: wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 
seq_len=0 key_len=0
Mar 21 17:19:17.816622: Driver did not support SIOCSIWENCODEEXT, trying 
SIOCSIWENCODE
Mar 21 17:19:17.816657: wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 
seq_len=0 key_len=0
Mar 21 17:19:17.818224: Driver did not support SIOCSIWENCODEEXT, trying 
SIOCSIWENCODE
Mar 21 17:19:17.818322: Setting scan request: 0 sec 100000 usec
Mar 21 17:19:17.818531: Added interface wlan0
Mar 21 17:19:17.818639: Wireless event: cmd=0x8b06 len=8
Mar 21 17:19:17.818679: RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Mar 21 17:19:17.818719: RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Mar 21 17:19:17.818752: Wireless event: cmd=0x8b2a len=12
Mar 21 17:19:17.818785: Wireless event: cmd=0x8b2a len=12
Mar 21 17:19:17.818817: Wireless event: cmd=0x8b2a len=12
Mar 21 17:19:17.818849: Wireless event: cmd=0x8b2a len=12
Mar 21 17:19:17.919620: State: DISCONNECTED -> SCANNING
Mar 21 17:19:17.919639: Starting AP scan (broadcast SSID)
Mar 21 17:19:20.929631: Scan timeout - try to get results
Mar 21 17:19:20.929855: Received 316 bytes of scan results (1 BSSes)
Mar 21 17:19:20.929877: Scan results: 1
Mar 21 17:19:20.929895: Selecting BSS from priority group 0
Mar 21 17:19:20.929911: 0: 00:0f:b5:57:2e:30 ssid='xxxx' wpa_ie_len=24 
rsn_ie_len=0 caps=0x11
Mar 21 17:19:20.929945:    selected based on WPA IE
Mar 21 17:19:20.929975: Trying to associate with 00:0f:b5:57:2e:30 
(SSID='NorthernFortress' freq=2452 MHz)
Mar 21 17:19:20.929994: Cancelling scan request
Mar 21 17:19:20.930009: WPA: clearing own WPA/RSN IE
Mar 21 17:19:20.930022: Automatic auth_alg selection: 0x1
Mar 21 17:19:20.930060: WPA: using IEEE 802.11i/D3.0
Mar 21 17:19:20.930077: WPA: Selected cipher suites: group 8 pairwise 8 
key_mgmt 2
Mar 21 17:19:20.930095: WPA: set AP 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 02
Mar 21 17:19:20.930143: WPA: clearing AP RSN IE
Mar 21 17:19:20.930160: WPA: using GTK TKIP
Mar 21 17:19:20.930176: WPA: using PTK TKIP
Mar 21 17:19:20.930193: WPA: using KEY_MGMT WPA-PSK
Mar 21 17:19:20.930210: 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 02 01 00 00 50 f2 02
Mar 21 17:19:20.930260: No keys have been configured - skip key clearing
Mar 21 17:19:20.930282: State: SCANNING -> ASSOCIATING
Mar 21 17:19:20.931350: Setting authentication timeout: 10 sec 0 usec
Mar 21 17:19:20.931373: EAPOL: External notification - EAP success=0
Mar 21 17:19:20.931470: EAPOL: External notification - EAP fail=0
Mar 21 17:19:20.931608: EAPOL: External notification - portControl=Auto
Mar 21 17:19:20.949714: Wireless event: cmd=0x8c02 len=209
Mar 21 17:19:20.949744: Custom wireless event: 
'ASSOCINFO(ReqIEs=00104e6f72746865726e466f727472657373010802040b160c12182432043048606cdd160050f20101000050f20201000050f20201000050f202 
RespIEs=010882848b0c1296182432043048606cdd0900037f01010000ff7f)'
Mar 21 17:19:20.949787: Association info event
Mar 21 17:19:20.949802: req_ies - hexdump(len=58): 00 10 4e 6f 72 74 68 65 
72 6e 46 6f 72 74 72 65 73 73 01 08 02 04 0b 16 0c 12 18 24 32 04 30 48 60 
6c dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
Mar 21 17:19:20.949892: resp_ies - hexdump(len=27): 01 08 82 84 8b 0c 12 96 
18 24 32 04 30 48 60 6c dd 09 00 03 7f 01 01 00 00 ff 7f
Mar 21 17:19:20.949943: WPA: set own WPA/RSN 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 02
Mar 21 17:19:20.950014: Wireless event: cmd=0x8b15 len=20
Mar 21 17:19:20.950032: Wireless event: new AP: 00:0f:b5:57:2e:30
Mar 21 17:19:20.950053: State: ASSOCIATING -> ASSOCIATED
Mar 21 17:19:20.950091: Associated to a new BSS: BSSID=00:0f:b5:57:2e:30
Mar 21 17:19:20.950108: No keys have been configured - skip key clearing
Mar 21 17:19:20.950130: Associated with 00:0f:b5:57:2e:30
Mar 21 17:19:20.950146: WPA: Association event - clear replay counter
Mar 21 17:19:20.950168: EAPOL: External notification - portEnabled=0
Mar 21 17:19:20.950266: EAPOL: External notification - portValid=0
Mar 21 17:19:20.950362: EAPOL: External notification - EAP success=0
Mar 21 17:19:20.950457: EAPOL: External notification - portEnabled=1
Mar 21 17:19:20.950472: EAPOL: SUPP_PAE entering state CONNECTING
Mar 21 17:19:20.950486: EAPOL: SUPP_BE entering state IDLE
Mar 21 17:19:20.950552: Setting authentication timeout: 10 sec 0 usec
Mar 21 17:19:20.950706: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:19:20.950737: Setting authentication timeout: 10 sec 0 usec
Mar 21 17:19:20.950760: IEEE 802.1X RX: version=1 type=3 length=95
Mar 21 17:19:20.950777:   EAPOL-Key type=254
Mar 21 17:19:20.950814: State: ASSOCIATED -> 4WAY_HANDSHAKE
Mar 21 17:19:20.950831: WPA: RX message 1 of 4-Way Handshake from 
00:0f:b5:57:2e:30 (ver=1)
Mar 21 17:19:20.950856: WPA: WPA IE for msg 2/4 - 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 02
Mar 21 17:19:20.952630: WPA: Renewed SNonce - hexdump(len=32): bf c7 f6 67 
10 b1 9a 47 b0 76 df ad 78 d9 b4 ce 95 dc 49 8f a1 82 f0 8d a2 7f 14 6c 14 
68 38 05
Mar 21 17:19:20.952759: WPA: PMK - hexdump(len=32): [REMOVED]
Mar 21 17:19:20.952777: WPA: PTK - hexdump(len=64): [REMOVED]
Mar 21 17:19:20.952792: WPA: Sending EAPOL-Key 2/4
Mar 21 17:19:20.953182: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:19:20.953210: IEEE 802.1X RX: version=1 type=3 length=119
Mar 21 17:19:20.953227:   EAPOL-Key type=254
Mar 21 17:19:20.953259: State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
Mar 21 17:19:20.953275: WPA: RX message 3 of 4-Way Handshake from 
00:0f:b5:57:2e:30 (ver=1)
Mar 21 17:19:20.953295: WPA: IE KeyData - 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 02
Mar 21 17:19:20.953349: WPA: Sending EAPOL-Key 4/4
Mar 21 17:19:20.953402: WPA: Installing PTK to the driver.
Mar 21 17:19:20.953420: WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
Mar 21 17:19:20.953470: State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
Mar 21 17:19:20.953703: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:19:20.953729: IEEE 802.1X RX: version=1 type=3 length=127
Mar 21 17:19:20.953745:   EAPOL-Key type=254
Mar 21 17:19:20.953771: State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
Mar 21 17:19:20.953787: WPA: RX message 1 of Group Key Handshake from 
00:0f:b5:57:2e:30 (ver=1)
Mar 21 17:19:20.953829: WPA: Group Key - hexdump(len=32): [REMOVED]
Mar 21 17:19:20.953844: WPA: Installing GTK to the driver (keyidx=2 tx=0).
Mar 21 17:19:20.953859: WPA: RSC - hexdump(len=6): 26 00 00 00 00 00
Mar 21 17:19:20.953900: WPA: Sending EAPOL-Key 2/2
Mar 21 17:19:20.953979: WPA: Key negotiation completed with 
00:0f:b5:57:2e:30 [PTK=TKIP GTK=TKIP]
Mar 21 17:19:20.954027: Cancelling authentication timeout
Mar 21 17:19:20.954066: State: GROUP_HANDSHAKE -> COMPLETED
Mar 21 17:19:20.954092: CTRL-EVENT-CONNECTED - Connection to 
00:0f:b5:57:2e:30 completed (auth)
Mar 21 17:19:20.954108: EAPOL: External notification - portValid=1
Mar 21 17:19:20.954200: EAPOL: External notification - EAP success=1
Mar 21 17:19:20.954218: EAPOL: SUPP_PAE entering state AUTHENTICATING
Mar 21 17:19:20.954233: EAPOL: SUPP_BE entering state SUCCESS
Mar 21 17:19:20.954246: EAP: EAP entering state DISABLED
Mar 21 17:19:20.954261: EAPOL: SUPP_PAE entering state AUTHENTICATED
Mar 21 17:19:20.954275: EAPOL: SUPP_BE entering state IDLE
Mar 21 17:19:23.809634: EAPOL: startWhen --> 0
Mar 21 17:28:29.579797: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:28:29.579852: IEEE 802.1X RX: version=1 type=3 length=127
Mar 21 17:28:29.579870:   EAPOL-Key type=254
Mar 21 17:28:29.579911: State: COMPLETED -> GROUP_HANDSHAKE
Mar 21 17:28:29.579927: WPA: RX message 1 of Group Key Handshake from 
00:0f:b5:57:2e:30 (ver=1)
Mar 21 17:28:29.579969: WPA: Group Key - hexdump(len=32): [REMOVED]
Mar 21 17:28:29.579985: WPA: Installing GTK to the driver (keyidx=1 tx=0).
Mar 21 17:28:29.580000: WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
Mar 21 17:28:29.580063: WPA: Sending EAPOL-Key 2/2
Mar 21 17:28:29.580121: WPA: Group rekeying completed with 00:0f:b5:57:2e:30 
[GTK=TKIP]
Mar 21 17:28:29.580139: State: GROUP_HANDSHAKE -> COMPLETED
Mar 21 17:28:30.579765: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:28:30.579814: IEEE 802.1X RX: version=1 type=3 length=127
Mar 21 17:28:30.579830:   EAPOL-Key type=254
Mar 21 17:28:30.579867: State: COMPLETED -> GROUP_HANDSHAKE
Mar 21 17:28:30.579883: WPA: RX message 1 of Group Key Handshake from 
00:0f:b5:57:2e:30 (ver=1)
Mar 21 17:28:30.579924: WPA: Group Key - hexdump(len=32): [REMOVED]
Mar 21 17:28:30.579940: WPA: Installing GTK to the driver (keyidx=1 tx=0).
Mar 21 17:28:30.579955: WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
Mar 21 17:28:30.580015: WPA: Sending EAPOL-Key 2/2
Mar 21 17:28:30.580078: WPA: Group rekeying completed with 00:0f:b5:57:2e:30 
[GTK=TKIP]
Mar 21 17:28:30.580095: State: GROUP_HANDSHAKE -> COMPLETED
Mar 21 17:28:31.579757: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:28:31.579819: IEEE 802.1X RX: version=1 type=3 length=127
Mar 21 17:28:31.579836:   EAPOL-Key type=254
Mar 21 17:28:31.579878: State: COMPLETED -> GROUP_HANDSHAKE
Mar 21 17:28:31.579894: WPA: RX message 1 of Group Key Handshake from 
00:0f:b5:57:2e:30 (ver=1)
Mar 21 17:28:31.579936: WPA: Group Key - hexdump(len=32): [REMOVED]
Mar 21 17:28:31.579952: WPA: Installing GTK to the driver (keyidx=1 tx=0).
Mar 21 17:28:31.579966: WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
Mar 21 17:28:31.580029: WPA: Sending EAPOL-Key 2/2
Mar 21 17:28:31.580089: WPA: Group rekeying completed with 00:0f:b5:57:2e:30 
[GTK=TKIP]
Mar 21 17:28:31.580107: State: GROUP_HANDSHAKE -> COMPLETED
Mar 21 17:28:32.579732: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:28:32.579770: IEEE 802.1X RX: version=1 type=3 length=127
Mar 21 17:28:32.579788:   EAPOL-Key type=254
Mar 21 17:28:32.579818: State: COMPLETED -> GROUP_HANDSHAKE
Mar 21 17:28:32.579833: WPA: RX message 1 of Group Key Handshake from 
00:0f:b5:57:2e:30 (ver=1)
Mar 21 17:28:32.579872: WPA: Group Key - hexdump(len=32): [REMOVED]
Mar 21 17:28:32.579888: WPA: Installing GTK to the driver (keyidx=1 tx=0).
Mar 21 17:28:32.579902: WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
Mar 21 17:28:32.579951: WPA: Sending EAPOL-Key 2/2
Mar 21 17:28:32.580006: WPA: Group rekeying completed with 00:0f:b5:57:2e:30 
[GTK=TKIP]
Mar 21 17:28:32.580024: State: GROUP_HANDSHAKE -> COMPLETED
Mar 21 17:28:34.909991: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:28:34.910034: IEEE 802.1X RX: version=1 type=3 length=95
Mar 21 17:28:34.910052:   EAPOL-Key type=254
Mar 21 17:28:34.910068: WPA: EAPOL-Key Replay Counter did not increase - 
dropping packet
Mar 21 17:28:35.909730: RX EAPOL from 00:0f:b5:57:2e:30
Mar 21 17:28:35.909780: IEEE 802.1X RX: version=1 type=3 length=95
Mar 21 17:28:35.909797:   EAPOL-Key type=254
Mar 21 17:28:35.909853: WPA: EAPOL-Key Replay Counter did not increase - 
dropping packet
<snip>

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/





More information about the Hostap mailing list