WPA-PSK locks up at 4WAY_HANDSHAKE (2/4) / setting: ndiswrapper, ubuntu, WG511 (v1)

Gentoopower gentoopower
Tue Mar 14 12:20:05 PST 2006


Okay, get a newer ndiswrapper version yours is 1.1, latest is 1.10 and I
think around 1.1 there were problems with some netgear cards.

http://sourceforge.net/projects/ndiswrapper/

The installation is very easy, just extract run make and make install as
root, reboot and you should see that ndiswrapper reports the new version:

dmesg | grep ndiswrapper


Then try again.

Sebastian Eiser wrote:
> Hi again, thanks for the reply,
>
> here are the requested outputs:
>   
>>  wpa_supplicant.conf
>>     
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
>
> eapol_version=1
> ap_scan=1
> fast_reauth=1
>
> network={
> 	ssid="WG-Netz"
> 	scan_ssid=1
> #	pairwise=TKIP
> 	proto=WPA
> 	key_mgmt=WPA-PSK
> 	psk=7b3b4b.. [63 char removed]
> }
>
>   
>> dmesg | grep ndiswrapper
>>     
> seb at ubuntu-seb:~$ dmesg | grep ndiswrapper
> [4294699.902000] ndiswrapper version 1.1 loaded (preempt=no,smp=no)
> [4294710.088000] ndiswrapper: driver netwg511 (NETGEAR,02/16/2005,
> 3.03.20.0) loaded
> [4294710.089000] ndiswrapper: using irq 11
> [4294713.906000] wlan0: ndiswrapper ethernet device 00:09:5b:45:df:68
> using driver netwg511, configuration file 1260:3890:1385:4800.5.conf
>
>   
>> lsmod
>>     
> seb at ubuntu-seb:~$ lsmod
> Module                  Size  Used by
> ipv6                  251200  6
> rfcomm                 38460  0
> l2cap                  24740  5 rfcomm
> bluetooth              48356  4 rfcomm,l2cap
> speedstep_ich           5164  0
> speedstep_lib           4228  1 speedstep_ich
> cpufreq_userspace       4316  1
> cpufreq_stats           5252  0
> freq_table              4388  2 speedstep_ich,cpufreq_stats
> cpufreq_powersave       1696  0
> cpufreq_ondemand        6044  0
> cpufreq_conservative     6948  0
> pcmcia                 26568  2
> radeon                 78080  1
> drm                    64884  2 radeon
> video                  15748  0
> tc1100_wmi              6692  0
> sony_acpi               5324  0
> pcc_acpi               11104  0
> hotkey                  9284  0
> dev_acpi               11108  0
> i2c_acpi_ec             5472  0
> i2c_core               21200  1 i2c_acpi_ec
> button                  6480  0
> battery                 9348  0
> container               4384  0
> ac                      4708  0
> af_packet              21768  2
> prism54                55912  0
> firmware_class          9952  1 prism54
> rtc                    12344  0
> pcspkr                  3396  0
> irtty_sir               8512  0
> sir_dev                18444  1 irtty_sir
> irda                  187612  2 irtty_sir,sir_dev
> crc_ccitt               1984  1 irda
> floppy                 59124  0
> yenta_socket           25292  2
> rsrc_nonstatic         13376  1 yenta_socket
> pcmcia_core            49348  3 pcmcia,yenta_socket,rsrc_nonstatic
> snd_intel8x0           33248  1
> snd_ac97_codec         83932  1 snd_intel8x0
> snd_pcm_oss            52704  0
> snd_mixer_oss          19296  1 snd_pcm_oss
> snd_pcm                88840  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
> snd_timer              24164  1 snd_pcm
> snd                    54884  8
> snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
> soundcore               9600  1 snd
> snd_page_alloc         10600  2 snd_intel8x0,snd_pcm
> tpm_atmel               5536  0
> tpm_nsc                 6656  0
> tpm                     9888  2 tpm_atmel,tpm_nsc
> pci_hotplug            27508  0
> intel_agp              23164  1
> agpgart                34792  2 drm,intel_agp
> nls_utf8                2016  2
> nls_cp437               5664  2
> vfat                   13440  2
> fat                    52668  1 vfat
> dm_mod                 57692  1
> joydev                  9984  0
> tsdev                   7776  0
> evdev                   9664  1
> ndiswrapper           130824  0
> psmouse                30116  0
> mousedev               11616  1
> parport_pc             35236  1
> lp                     12292  0
> parport                35912  2 parport_pc,lp
> sd_mod                 19120  2
> md                     45584  0
> ext3                  136264  1
> jbd                    54776  1 ext3
> mbcache                 9252  1 ext3
> thermal                13000  0
> processor              22812  1 thermal
> fan                     4484  0
> usb_storage            74112  2
> scsi_mod              135688  2 sd_mod,usb_storage
> usbhid                 35264  0
> ehci_hcd               34248  0
> ohci_hcd               20644  0
> usbcore               117884  6
> ndiswrapper,usb_storage,usbhid,ehci_hcd,ohci_hcde100                  
> 34976  0
> mii                     5696  1 e100
> ide_disk               18464  4
> ide_generic             1376  0
> piix                   10372  1
> ide_core              138772  4 usb_storage,ide_disk,ide_generic,piix
> unix                   26896  656
> capability              4712  0
> commoncap               6816  1 capability
> vesafb                  7992  1
> vgastate                9664  0
> softcursor              2272  1 vesafb
> cfbimgblt               2944  1 vesafb
> cfbfillrect             3872  1 vesafb
> cfbcopyarea             4608  1 vesafb
> fbcon                  38496  72
> tileblit                2368  1 fbcon
> font                    8224  1 fbcon
> bitblit                 5632  1 fbcon
>
>  ... lsmod says that the prism54 driver is still loaded.... does this
> any good / bad? I believe it gets loaded automatically while booting.
>
>   
>> ifconfig (wpa_supplicant ist trying to connect in other terminal)
>>     
> seb at ubuntu-seb:~$ ifconfig
>
> wlan0     Link encap:Ethernet  HWaddr 00:09:5B:45:DF:68
>           inet6 addr: fe80::209:5bff:fe45:df68/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:139 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:15707 (15.3 KiB)  TX bytes:2193 (2.1 KiB)
>           Memory:20800000-20801fff
>
> seb at ubuntu-seb:~$ iwconfig
> wlan0     IEEE 802.11g  ESSID:"WG-Netz"
>           Mode:Managed  Frequency:2.447 GHz  Access Point: 00:04:0E:7E:49:32
>           Bit Rate:24 Mb/s   Tx-Power:32 dBm
>           RTS thr:2347 B   Fragment thr:2346 B
>           Power Management:off
>           Link Quality:91/100  Signal level:-66 dBm  Noise level:-256 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:46  Invalid misc:6107   Missed beacon:0
>
> thanks to both of you for your help so far. thanks!
>
> seb
>
> On 3/14/06, Gentoopower <gentoopower at yahoo.de> wrote:
>   
>> What is the output of:
>>
>> dmesg | grep ndiswrapper
>>
>> and please supply your:
>>
>>  wpa_supplicant.conf
>>
>> output of lsmod
>>
>> and the output of /sbin/ifconfig after you started wpa_supplicant
>>
>>
>>
>> Sebastian Eiser wrote:
>>     
>>> Hi all,
>>>
>>> I gratefully read on the wpa_supplicant homepage that I may use this
>>> mailing list to ask topics not only related to hostap, but also e.g.
>>> ndiswrapper in conjunction with wpa_supplicant, so I hope this is not
>>> annoying for you...actually I couldnt get help in any kind of forum
>>> for more that a week intensive posting - so I take this to the
>>> experts.
>>>  I've just searched the non-gzip'd archive, but my problem is slightly
>>> different.
>>> ---
>>>
>>> I'm trying to set up a wpa connection (Ubuntu 5.10) using the latest
>>> releases of ndiswrapper and wpa_supplicant. The driver works fine with
>>> wpa in windoze, and ndiswrapper confirms it correctly loaded (chipset
>>> Intersil ISL3890 (netgear WG511 V1)).
>>> if I do "wpa_supplicant -i wlan0 -D ndiswrapper -c
>>> /etc/wpa_supplicant.conf -ddd" the 4WAY_HANDSHAKE state never
>>> completes. when I read the output, several lines may indicate a faulty
>>> setup (full output appended):
>>>
>>> ioctl[SIOCSIWPMKSA]: No such device
>>>
>>>       
>>>>> this is not serious, afaik
>>>>>
>>>>>           
>>> SIOCGIWRANGE: too old (short) data - assuming WPA is not supported
>>>
>>>       
>>>>> ? - is this due to a faulty key? windoze successfully uses a 63char
>>>>>
>>>>>           
>>> ASCII code. I used wpa_passphrase to convert it to HEX.. anyway - it
>>> continues:
>>>
>>> ioctl[SIOCSIWENCODEEXT]: No such device
>>> Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
>>>
>>>       
>>>>> 4 times....
>>>>>
>>>>>           
>>> and in the end:
>>> WPA: Sending EAPOL-Key 2/4
>>>
>>>       
>>>>> all the time. It seems like the AP doesnt accept the key and
>>>>>
>>>>>           
>>> wouldnt let me connect. is there a way to check that in detail.
>>>
>>> I saw that Arjan van Bentem hostap at avbentem.dds.nl (post to the
>>> maillist on Tue Apr 19 12:19:07 MDT 2005) had a quite similar problem
>>> http://lists.shmoo.com/pipermail/hostap/2005-April/010113.html
>>>
>>> I hope (and still believe) I just made a dump mistake during the
>>> configuration, but I've tried so hard and it seems that I'm not yet
>>> skilled enough to solve it. that's why I'd greatly appreciate any
>>> input to this topic.
>>> actually my neighbor (I share my connection with him) is just laughing
>>> at me: "why the hell dont you wanna use windows"... well, he dosent
>>> know a thing.
>>>
>>> guys, I'm looking forward for you replies! feel free to request
>>> further information... dont let me down, for my neighbors sake ;-)
>>>
>>> seb
>>>
>>> pasting complete terminal output:
>>> ---
>>> sudo wpa_supplicant -i wlan0 -D ndiswrapper -c /etc/wpa_supplicant.conf -ddd
>>>
>>> Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver
>>> 'ndiswrapper'
>>> Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
>>> Reading configuration file '/etc/wpa_supplicant.conf'
>>> ctrl_interface='/var/run/wpa_supplicant'
>>> ctrl_interface_group=0
>>> eapol_version=1
>>> ap_scan=1
>>> fast_reauth=1
>>> Line: 17 - start of a new network block
>>> ssid - hexdump_ascii(len=7):
>>>      57 47 2d 4e 65 74 7a                              WG-Netz
>>> scan_ssid=1 (0x1)
>>> proto: 0x1
>>> key_mgmt: 0x2
>>> PSK - hexdump(len=32): [REMOVED]
>>> Priority group 0
>>>    id=0 ssid='WG-Netz'
>>> Initializing interface (2) 'wlan0'
>>> 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
>>> ioctl[SIOCSIWPMKSA]: No such device
>>> SIOCGIWRANGE: too old (short) data - assuming WPA is not supported
>>> Own MAC address: 00:09:5b:45:df:68
>>> wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
>>> ioctl[SIOCSIWENCODEEXT]: No such device
>>> Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
>>> wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
>>> ioctl[SIOCSIWENCODEEXT]: No such device
>>> Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
>>> wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
>>> ioctl[SIOCSIWENCODEEXT]: No such device
>>> Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
>>> wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
>>> ioctl[SIOCSIWENCODEEXT]: No such device
>>> Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
>>> Setting scan request: 0 sec 100000 usec
>>> Wireless event: cmd=0x8b06 len=8
>>> RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
>>> RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
>>> Wireless event: cmd=0x8b2a len=12
>>> Wireless event: cmd=0x8b2a len=12
>>> Wireless event: cmd=0x8b2a len=12
>>> Wireless event: cmd=0x8b2a len=12
>>> State: DISCONNECTED -> SCANNING
>>> Starting AP scan (specific SSID)
>>> Scan SSID - hexdump_ascii(len=7):
>>>      57 47 2d 4e 65 74 7a                              WG-Netz
>>> Scan timeout - try to get results
>>> Received 2307 bytes of scan results (9 BSSes)
>>> Scan results: 9
>>> Selecting BSS from priority group 0
>>> 0: 00:04:0e:7e:49:32 ssid='WG-Netz' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
>>>    selected
>>> Trying to associate with 00:04:0e:7e:49:32 (SSID='WG-Netz' freq=2447 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 8 key_mgmt 2
>>> WPA: set AP 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 02 00 00
>>> WPA: clearing AP RSN IE
>>> WPA: using GTK TKIP
>>> WPA: using PTK TKIP
>>> WPA: using KEY_MGMT WPA-PSK
>>> 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
>>> No keys have been configured - skip key clearing
>>> State: SCANNING -> ASSOCIATING
>>> Setting authentication timeout: 5 sec 0 usec
>>> EAPOL: External notification - EAP success=0
>>> EAPOL: External notification - EAP fail=0
>>> EAPOL: External notification - portControl=Auto
>>> Wireless event: cmd=0x8c02 len=169
>>> Custom wireless event:
>>> 'ASSOCINFO(ReqIEs=000757472d4e65747a010402040b1632080c1218243048606cdd160050f20101000050f20201000050f20201000050f202
>>> RespIEs=010482848b9632088c129824b048606c)'
>>> Association info event
>>> req_ies - hexdump(len=49): 00 07 57 47 2d 4e 65 74 7a 01 04 02 04 0b
>>> 16 32 08 0c 12 18 24 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
>>> resp_ies - hexdump(len=16): 01 04 82 84 8b 96 32 08 8c 12 98 24 b0 48 60 6c
>>> 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
>>> Wireless event: cmd=0x8b15 len=20
>>> Wireless event: new AP: 00:04:0e:7e:49:32
>>> State: ASSOCIATING -> ASSOCIATED
>>> Associated to a new BSS: BSSID=00:04:0e:7e:49:32
>>> No keys have been configured - skip key clearing
>>> Associated with 00:04:0e:7e:49:32
>>> WPA: Association event - clear replay counter
>>> EAPOL: External notification - portEnabled=0
>>> EAPOL: External notification - portValid=0
>>> EAPOL: External notification - EAP success=0
>>> EAPOL: External notification - portEnabled=1
>>> EAPOL: SUPP_PAE entering state CONNECTING
>>> EAPOL: txStart
>>> WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
>>> 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:04:0e:7e:49:32
>>> RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00
>>> 00 00 01 ba 20 39 67 e7 f2 ee 4c 67 b8 96 16 bc 0d ea 04 17 e3 13 ae
>>> c6 67 28 3d f7 a2 ab 3e 98 14 20 86 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 89 00 20 00 00
>>> 00 00 00 00 00 01 ba 20 39 67 e7 f2 ee 4c 67 b8 96 16 bc 0d ea 04 17
>>> e3 13 ae c6 67 28 3d f7 a2 ab 3e 98 14 20 86 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
>>> State: ASSOCIATED -> 4WAY_HANDSHAKE
>>> WPA: RX message 1 of 4-Way Handshake from 00:04:0e:7e:49:32 (ver=1)
>>> 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
>>> WPA: Renewed SNonce - hexdump(len=32): 1d 3d 6d 10 76 eb c3 b0 c9 4a
>>> 39 8c 03 23 77 53 9b ed 8d 45 cf 8d 17 fa 78 4d 8c 4b 60 67 65 30
>>> WPA: PMK - hexdump(len=32): [REMOVED]
>>> WPA: PTK - hexdump(len=64): [REMOVED]
>>> WPA: Sending EAPOL-Key 2/4
>>> WPA: TX EAPOL-Key - hexdump(len=123): 01 03 ...
>>> <<<<< to be repeated all the time .... (the hexdump values change, though)
>>> _______________________________________________
>>> HostAP mailing list
>>> HostAP at shmoo.com
>>> http://lists.shmoo.com/mailman/listinfo/hostap
>>>
>>>
>>>
>>>       
>>
>>
>>
>> ___________________________________________________________
>> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
>>
>>
>>     
>
>
>   



	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de




More information about the Hostap mailing list