diff options
author | Jouni Malinen <j@w1.fi> | 2009-11-15 11:07:20 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-11-15 11:07:20 +0200 |
commit | 462adee5fe046a054e8fe083abda6a745bf284dc (patch) | |
tree | fda8868b7f7f9e51bbeb4c6c686d9e26f0075249 | |
parent | fcac668faa5459c3f4ad1f9837f4b0f50edc4cba (diff) | |
download | external_wpa_supplicant_8_ti-462adee5fe046a054e8fe083abda6a745bf284dc.zip external_wpa_supplicant_8_ti-462adee5fe046a054e8fe083abda6a745bf284dc.tar.gz external_wpa_supplicant_8_ti-462adee5fe046a054e8fe083abda6a745bf284dc.tar.bz2 |
WPS ER: Store AP UUID in binary format for future use
-rw-r--r-- | src/wps/wps_er.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c index 70169ba..2bd428f 100644 --- a/src/wps/wps_er.c +++ b/src/wps/wps_er.c @@ -64,6 +64,7 @@ struct wps_er_ap { char *location; struct http_client *http; + u8 uuid[WPS_UUID_LEN]; char *friendly_name; char *manufacturer; char *manufacturer_url; @@ -277,6 +278,7 @@ static void wps_er_parse_device_description(struct wps_er_ap *ap, { /* Note: reply includes null termination after the buffer data */ const char *data = wpabuf_head(reply); + char *pos; wpa_hexdump_ascii(MSG_MSGDUMP, "WPS ER: Device info", wpabuf_head(reply), wpabuf_len(reply)); @@ -309,6 +311,11 @@ static void wps_er_parse_device_description(struct wps_er_ap *ap, ap->udn = xml_get_first_item(data, "UDN"); wpa_printf(MSG_DEBUG, "WPS ER: UDN='%s'", ap->udn); + pos = os_strstr(ap->udn, "uuid:"); + if (pos) { + pos += 5; + uuid_str2bin(pos, ap->uuid); + } ap->upc = xml_get_first_item(data, "UPC"); wpa_printf(MSG_DEBUG, "WPS ER: UPC='%s'", ap->upc); |