diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-11-26 11:54:37 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-11-26 11:54:37 +0200 |
commit | ed45947e9bd86b512a36059f444c56d12827aee4 (patch) | |
tree | 8420130a6f728556ae697f57b76926f4020c4808 /src/wps | |
parent | 96750ea5e549a3c6ae9b6b8114b43408ae5705aa (diff) | |
download | external_wpa_supplicant_8_ti-ed45947e9bd86b512a36059f444c56d12827aee4.zip external_wpa_supplicant_8_ti-ed45947e9bd86b512a36059f444c56d12827aee4.tar.gz external_wpa_supplicant_8_ti-ed45947e9bd86b512a36059f444c56d12827aee4.tar.bz2 |
WPS: Update couple of missed Primary Device Type uses
Diffstat (limited to 'src/wps')
-rw-r--r-- | src/wps/wps.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wps/wps.c b/src/wps/wps.c index 6b0c6c7..cc5baab 100644 --- a/src/wps/wps.c +++ b/src/wps/wps.c @@ -419,11 +419,12 @@ int wps_attr_text(struct wpabuf *data, char *buf, char *end) } if (attr.primary_dev_type) { + char devtype[WPS_DEV_TYPE_BUFSIZE]; ret = os_snprintf(pos, end - pos, - "wps_primary_device_type=%u-%08x-%u\n", - WPA_GET_BE16(attr.primary_dev_type), - WPA_GET_BE32(&attr.primary_dev_type[2]), - WPA_GET_BE16(&attr.primary_dev_type[6])); + "wps_primary_device_type=%s\n", + wps_dev_type_bin2str(attr.primary_dev_type, + devtype, + sizeof(devtype))); if (ret < 0 || ret >= end - pos) return pos - buf; pos += ret; |