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 /wpa_supplicant | |
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 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/wps_supplicant.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index f5a96b1..938ad89 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -414,14 +414,12 @@ static void wpa_supplicant_wps_event_er_ap_add(struct wpa_supplicant *wpa_s, struct wps_event_er_ap *ap) { char uuid_str[100]; - char dev_type[20]; + char dev_type[WPS_DEV_TYPE_BUFSIZE]; uuid_bin2str(ap->uuid, uuid_str, sizeof(uuid_str)); if (ap->pri_dev_type) - os_snprintf(dev_type, sizeof(dev_type), "%u-%08X-%u", - WPA_GET_BE16(ap->pri_dev_type), - WPA_GET_BE32(ap->pri_dev_type + 2), - WPA_GET_BE16(ap->pri_dev_type + 6)); + wps_dev_type_bin2str(ap->pri_dev_type, dev_type, + sizeof(dev_type)); else dev_type[0] = '\0'; @@ -450,14 +448,12 @@ static void wpa_supplicant_wps_event_er_enrollee_add( struct wpa_supplicant *wpa_s, struct wps_event_er_enrollee *enrollee) { char uuid_str[100]; - char dev_type[20]; + char dev_type[WPS_DEV_TYPE_BUFSIZE]; uuid_bin2str(enrollee->uuid, uuid_str, sizeof(uuid_str)); if (enrollee->pri_dev_type) - os_snprintf(dev_type, sizeof(dev_type), "%u-%08X-%u", - WPA_GET_BE16(enrollee->pri_dev_type), - WPA_GET_BE32(enrollee->pri_dev_type + 2), - WPA_GET_BE16(enrollee->pri_dev_type + 6)); + wps_dev_type_bin2str(enrollee->pri_dev_type, dev_type, + sizeof(dev_type)); else dev_type[0] = '\0'; |