WPS (with WPA2) using wpa_supplicant0.6.10

Jouni Malinen j
Tue Dec 14 01:28:02 PST 2010


On Fri, Dec 10, 2010 at 03:33:36PM +0530, Pragya Gupta wrote:
> I am trying to connect to a linksys AP (WRT54G2) using WPS PIN
> mechanism. I am using wpa_cli over wpa_supplicant0.6.10 . While the
> connection is successful when the security is set to WPA-Personal on
> AP, I see a failure when the security is WPA2-Personal.

Which driver are you using?

> The function "wpa_driver_wext_associate" in Driver_Wext.c sets the
> WPA_VERSION based on following check:
> 
> if (params->wpa_ie == NULL || params->wpa_ie_len == 0)
> 		value = IW_AUTH_WPA_VERSION_DISABLED;
> else if (params->wpa_ie[0] == WLAN_EID_RSN)
> 		value = IW_AUTH_WPA_VERSION_WPA2;
> else
> 		value = IW_AUTH_WPA_VERSION_WPA;

This code is from the time before support for WPS was added.. Most
drivers don't really use the IW_AUTH_WPA_VERSION configuration and as
such, they are unlikely to care. This should really be replaced with use
of params->key_mgmt_suite, though.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list