aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_er.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wps/wps_er.c')
-rw-r--r--src/wps/wps_er.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wps/wps_er.c b/src/wps/wps_er.c
index 9f5074a..51306cb 100644
--- a/src/wps/wps_er.c
+++ b/src/wps/wps_er.c
@@ -1351,9 +1351,11 @@ static int wps_er_build_sel_reg_config_methods(struct wpabuf *msg,
static int wps_er_build_uuid_r(struct wpabuf *msg, const u8 *uuid_r)
{
+#ifdef CONFIG_WPS2
wpabuf_put_be16(msg, ATTR_UUID_R);
wpabuf_put_be16(msg, WPS_UUID_LEN);
wpabuf_put_data(msg, uuid_r, WPS_UUID_LEN);
+#endif /* CONFIG_WPS2 */
return 0;
}