wpa supplicant v0.3.4 and WEP issue

Zimmermann, Christopher Brian Chris cbzimmermann
Tue Jan 18 19:05:49 PST 2005


I've ported WPA supplicant v0.3.4 to VxWorks v5.5 on ARM little Endian. 

In the function wpa_supplicant_associate(), in file wpa_supplicant.c, I
believe there is a bug for static WEP keying (no 802.1x) and no
encryption modes.  I've needed to modify the block of code towards the
end of the function to include the VxWorks specific block.  Otherwise
the function wpa_supplicant_timeout() will continuously attempt to
disassociate/scan.

	if (wpa_s->key_mgmt == WPA_KEY_MGMT_WPA_NONE) {
		/* Set the key after the association just in case
association
		 * cleared the previously configured key. */
		wpa_supplicant_set_wpa_none_key(wpa_s, ssid);
		/* No need to timeout authentication since there is no
key
		 * management. */
		wpa_supplicant_cancel_auth_timeout(wpa_s);
#ifdef __VxWORKS__ /* fix for no encryption or static WEP keys */
    } else if (wpa_s->key_mgmt == WPA_KEY_MGMT_NONE) {
		/* No need to timeout authentication since there is no
key
		 * management. */
		wpa_supplicant_cancel_auth_timeout(wpa_s);
#endif /* __VxWORKS__ */
	} else {
		/* Timeout for IEEE 802.11 authentication and
association */
		wpa_supplicant_req_auth_timeout(wpa_s, 5, 0);
	}

Does anyone else see this?

Thanks in advance,
Chris

Chris Zimmermann
Agere Systems
cbzimmermann at agere.com





More information about the Hostap mailing list