• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

external/wpa_supplicant_6


Commit MetaInfo

Revisiona12fdfe7081a569335ae45c9c679ab144d85e3b3 (tree)
Zeit2011-01-20 07:08:03
AutorIrfan Sheriff <isheriff@goog...>
CommiterIrfan Sheriff

Log Message

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

Ändern Zusammenfassung

Diff

--- a/wpa_supplicant/src/wps/wps_attr_process.c
+++ b/wpa_supplicant/src/wps/wps_attr_process.c
@@ -177,6 +177,15 @@ static int wps_process_cred_network_key(struct wps_credential *cred,
177177 if (key == NULL) {
178178 wpa_printf(MSG_DEBUG, "WPS: Credential did not include "
179179 "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+ }
180189 return -1;
181190 }
182191