From: Jouni Malinen Date: Tue, 6 Jul 2010 23:31:46 +0000 (-0700) Subject: P2P: Fix WSC IE not to include two Device Name attrs with WPS 2.0 is used X-Git-Tag: hostap-1-bp~1104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e4377093d936823f296ba046106213b0361570;p=thirdparty%2Fhostap.git P2P: Fix WSC IE not to include two Device Name attrs with WPS 2.0 is used --- diff --git a/src/wps/wps.c b/src/wps/wps.c index 2a25c6a50..99a73babe 100644 --- a/src/wps/wps.c +++ b/src/wps/wps.c @@ -488,10 +488,12 @@ struct wpabuf * wps_build_probe_req_ie(int pbc, struct wps_device_data *dev, return NULL; } +#ifndef CONFIG_WPS2 if (dev->p2p && wps_build_dev_name(dev, ie)) { wpabuf_free(ie); return NULL; } +#endif /* CONFIG_WPS2 */ return wps_ie_encapsulate(ie); }