From d6e0ce9ac8d77fcf0646b8cb9fbebd193eb4c3fd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 21 Dec 2008 17:37:40 +0200 Subject: [PATCH] Use wildcard UUID when setting AP PIN for Registrar in wpa_supplicant --- src/eap_peer/eap_wsc.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/eap_peer/eap_wsc.c b/src/eap_peer/eap_wsc.c index a22c5d6d9..552137143 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;