external/wpa_supplicant_6
Revision | a12fdfe7081a569335ae45c9c679ab144d85e3b3 (tree) |
---|---|
Zeit | 2011-01-20 07:08:03 |
Autor | Irfan Sheriff <isheriff@goog...> |
Commiter | Irfan Sheriff |
Fix for WPS certification test 5.1.5
The test verifies that the device can be configured to use open network
settings to join an AP’s WLAN using PIN method through WLAN external Registrar.
Bug: 3368598
Change-Id: Id6b9a1cb97f0b35a584b304426af9836d74e0570
@@ -177,6 +177,15 @@ static int wps_process_cred_network_key(struct wps_credential *cred, | ||
177 | 177 | if (key == NULL) { |
178 | 178 | wpa_printf(MSG_DEBUG, "WPS: Credential did not include " |
179 | 179 | "Network Key"); |
180 | + /* Fix WPS certification case #5.1.5 */ | |
181 | + if ((cred->auth_type == WPS_AUTH_OPEN) && | |
182 | + (cred->encr_type == WPS_ENCR_NONE)) { | |
183 | + wpa_printf(MSG_DEBUG, "WPS: Skip Network Key checking " | |
184 | + "When security is None."); | |
185 | + cred->key[0] = '\0'; | |
186 | + cred->key_len = 0; | |
187 | + return 0; | |
188 | + } | |
180 | 189 | return -1; |
181 | 190 | } |
182 | 191 |