WPS: Cleanup UUID and MAC address configuration

No need to configure these separately for each Enrollee in wps_config
since wps_context is now used both for Registrar and Enrollee.
This commit is contained in:
Jouni Malinen 2009-01-01 22:56:02 +02:00
parent e834272f73
commit 84f5b41fc1
4 changed files with 5 additions and 10 deletions

View file

@ -162,7 +162,6 @@ static void * eap_wsc_init(struct eap_sm *sm)
cfg.authenticator = 0;
cfg.wps = wps;
cfg.registrar = registrar ? data->wps_ctx->registrar : NULL;
cfg.enrollee_mac_addr = registrar ? NULL : wps->dev.mac_addr;
phase1 = eap_get_config_phase1(sm);
if (phase1 == NULL) {
@ -192,7 +191,6 @@ static void * eap_wsc_init(struct eap_sm *sm)
return NULL;
}
cfg.uuid = registrar ? NULL : wps->uuid;
data->wps = wps_init(&cfg);
if (data->wps == NULL) {
os_free(data);