Comment 67 for bug 207446

Revision history for this message
williamh (mail-williamhicklin) wrote : Re: [Bug 207446] Re: [ndiswrapper] [wg511] fails to associate

this sounds right. I've swapped out my wireless card now so don't need to
use ndiswrapper but when i was using it it seemed (by looking at the icon in
the tray) that it would connect then get bumped off immediately... it still
seems to happen occaisionally even without using ndiswrapper. should this
be added to the next release of Ubuntu??

2008/9/20 Christof <email address hidden>

> Hi! I have the same problem with wpasuplicant and ndiswrapper. Renice
> often works, but not every time and it is uncomfortable with
> Networkmanager. So I searched in the source.
>
> My conclusion: After the last handshake packet from the access point
> has arrived, the computer sends its last packet and than sets the wpa
> key. But at this time sending of the last handshake packet is still in
> progress and setting the key disturbs this process. Inserting a pause
> between this two actions solves the problem.
>
> wpa.c:
>
> void wpa_supplicant_process_3_of_4(..)
> {
> .
> .
> wpa_supplicant_send_4_of_4()
> -> wpa_eapol_key_send()
> -> wpa_sm_ether_send()
> -> wpa_ether_send()
> -> l2_packet_send()
> -> sendto()
> .
> .
> usleep(10);
> .
> .
> wpa_supplicant_install_ptk()
> -> wpa_sm_set_key()
> -> wpa_driver_wext_set_key()
> -> ioctl()
> .
> .
> }
>
> --
> [ndiswrapper] [wg511] fails to associate
> https://bugs.launchpad.net/bugs/207446
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "linux" source package in Ubuntu: Triaged
> Status in "wpasupplicant" source package in Ubuntu: Confirmed
> Status in "wpasupplicant" source package in Debian: Confirmed
>
> Bug description:
> Binary package hint: wpasupplicant
>
> After upgrading from gutsy to hardy, wpa_supplicant can no longer
> authenticate. It seems to try repeatedly until I kill it.
>
> The results of sudo wpa_supplicant -Dwext -iwlan0
> -c/etc/wpa_supplicant.conf -dd are in the attachment.
>
> I can get a wireless connection if I disable WPA; wpa_supplicant still
> works fine if I boot with kernel 2.6.22.
>
> wpasupplicant version is 0.6.0+0.5.8-0ubuntu2.
>
> Wireless is netgear wg511v2/ndiswrapper.
>
> /etc/wpa_supplicant.conf is
>
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> ap_scan=2
>
> network={
> ssid="MySSID"
> scan_ssid=1
> proto=WPA
> key_mgmt=WPA-PSK
> pairwise=TKIP
> group=TKIP
> psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> }
>