Fixed a typo in a debug message
[wpasupplicant] / src / eap_peer / eap_wsc.c
index e80b7c6..19b946a 100644 (file)
@@ -70,8 +70,8 @@ static int eap_wsc_new_psk_cb(void *ctx, const u8 *mac_addr, const u8 *psk,
 {
        /* 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 */
@@ -107,7 +107,6 @@ static void * eap_wsc_init(struct eap_sm *sm)
        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;
@@ -201,23 +200,10 @@ static void * eap_wsc_init(struct eap_sm *sm)
                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);