Use wildcard UUID when setting AP PIN for Registrar in wpa_supplicant

This commit is contained in:
Jouni Malinen 2008-12-21 17:37:40 +02:00
parent 44cd430f87
commit d6e0ce9ac8

View file

@ -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;