aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-21 15:37:40 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-21 15:37:40 (GMT)
commitd6e0ce9ac8d77fcf0646b8cb9fbebd193eb4c3fd (patch)
treee2e433b1e73ae813272a69b630029ad58557c39d /src/eap_peer
parent44cd430f877a558744def067ab38c4f9e4b283fc (diff)
downloadhostap-06-d6e0ce9ac8d77fcf0646b8cb9fbebd193eb4c3fd.zip
hostap-06-d6e0ce9ac8d77fcf0646b8cb9fbebd193eb4c3fd.tar.gz
hostap-06-d6e0ce9ac8d77fcf0646b8cb9fbebd193eb4c3fd.tar.bz2
Use wildcard UUID when setting AP PIN for Registrar in wpa_supplicant
Diffstat (limited to 'src/eap_peer')
-rw-r--r--src/eap_peer/eap_wsc.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/eap_peer/eap_wsc.c b/src/eap_peer/eap_wsc.c
index a22c5d6..5521371 100644
--- a/src/eap_peer/eap_wsc.c
+++ b/src/eap_peer/eap_wsc.c
@@ -200,17 +200,9 @@ static void * eap_wsc_init(struct eap_sm *sm)
}
data->fragment_size = WSC_FRAGMENT_SIZE;
-
- if (registrar) {
- /* Testing */
- wpa_printf(MSG_INFO, "EAP-WSC: Registrar functionality not "
- "yet fully supported - using test values");
- u8 uuid_e[UUID_LEN];
- os_memset(uuid_e, 0, UUID_LEN);
- if (cfg.pin) {
- wps_registrar_add_pin(data->wps_ctx->registrar, uuid_e,
- cfg.pin, cfg.pin_len);
- }
+ if (registrar && cfg.pin) {
+ wps_registrar_add_pin(data->wps_ctx->registrar, NULL,
+ cfg.pin, cfg.pin_len);
}
return data;