{
/* struct eap_wsc_data *data = ctx; */
- wpa_printf(MSG_DEBUG, "EAP-SC: Received new WPA/WPA2-PSK from WPS for "
- "STA " MACSTR, MAC2STR(mac_addr));
+ wpa_printf(MSG_DEBUG, "EAP-WSC: Received new WPA/WPA2-PSK from WPS for"
+ " STA " MACSTR, MAC2STR(mac_addr));
wpa_hexdump_key(MSG_DEBUG, "Per-device PSK", psk, psk_len);
/* TODO */
size_t identity_len;
int registrar;
struct wps_config cfg;
- u8 uuid[UUID_LEN];
const char *pos;
const char *phase1;
struct wps_context *wps = NULL;
return NULL;
}
- pos = os_strstr(phase1, "uuid=");
- if (pos == NULL) {
- wpa_printf(MSG_INFO, "EAP-WSC: UUID not set in phase1 "
- "configuration data");
- os_free(data);
- return NULL;
- }
- if (uuid_str2bin(pos + 5, uuid)) {
- wpa_printf(MSG_INFO, "EAP-WSC: Invalid UUID in phase1 "
- "configuration data");
- os_free(data);
- return NULL;
- }
if (registrar && wps)
- os_memcpy(wps->uuid, uuid, UUID_LEN);
+ os_memcpy(wps->uuid, sm->uuid, UUID_LEN);
else
- cfg.uuid = uuid;
+ cfg.uuid = sm->uuid;
cfg.wps_cred_cb = sm->eapol_cb->wps_cred;
cfg.cb_ctx = sm->eapol_ctx;
data->wps = wps_init(&cfg);