Parcourir la source

Fixed NDIS AuthMode configuration for WPS connection

Jouni Malinen il y a 16 ans
Parent
commit
723763cba0
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/drivers/driver_ndis.c

+ 5 - 0
src/drivers/driver_ndis.c

@@ -1043,6 +1043,11 @@ wpa_driver_ndis_associate(void *priv,
 			auth_mode = Ndis802_11AuthModeWPA2PSK;
 		else
 			auth_mode = Ndis802_11AuthModeWPA2;
+#ifdef CONFIG_WPS
+	} else if (params->key_mgmt_suite == KEY_MGMT_WPS) {
+		auth_mode = Ndis802_11AuthModeOpen;
+		priv_mode = Ndis802_11PrivFilterAcceptAll;
+#endif /* CONFIG_WPS */
 	} else {
 		priv_mode = Ndis802_11PrivFilter8021xWEP;
 		if (params->key_mgmt_suite == KEY_MGMT_WPA_NONE)