This cleans up debug log by keeping the WSC IE attributes for Beacon
frames before starting to build the Probe Response frame.
return -1;
}
+#ifdef CONFIG_P2P
+ if (wps_build_dev_name(®->wps->dev, beacon) ||
+ wps_build_primary_dev_type(®->wps->dev, beacon)) {
+ wpabuf_free(beacon);
+ wpabuf_free(probe);
+ return -1;
+ }
+#endif /* CONFIG_P2P */
+
wpa_printf(MSG_DEBUG, "WPS: Build Probe Response IEs");
if (wps_build_version(probe) ||
return -1;
}
-#ifdef CONFIG_P2P
- if (wps_build_dev_name(®->wps->dev, beacon) ||
- wps_build_primary_dev_type(®->wps->dev, beacon)) {
- wpabuf_free(beacon);
- wpabuf_free(probe);
- return -1;
- }
-#endif /* CONFIG_P2P */
-
beacon = wps_ie_encapsulate(beacon);
probe = wps_ie_encapsulate(probe);