From e64e3d245ee40f9e12a26a4f07ec3888dc87e875 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 19 Sep 2010 17:18:43 -0700 Subject: [PATCH] WPS: Fix CONFIG_WPS_OOB build The Version2 attribute was previous changed to a subelement and the OOB code was missed during the change. --- src/wps/wps_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wps/wps_common.c b/src/wps/wps_common.c index 001f7f290..82e6311c6 100644 --- a/src/wps/wps_common.c +++ b/src/wps/wps_common.c @@ -329,7 +329,7 @@ static struct wpabuf * wps_get_oob_cred(struct wps_context *wps) data.encr_type = wps->encr_types; if (wps_build_version(plain) || wps_build_cred(&data, plain) || - wps_build_version2(plain)) { + wps_build_wfa_ext(plain, 0, NULL, 0)) { wpabuf_free(plain); return NULL; } @@ -361,7 +361,7 @@ static struct wpabuf * wps_get_oob_dev_pwd(struct wps_context *wps) if (wps_build_version(data) || wps_build_oob_dev_password(data, wps) || - wps_build_version2(data)) { + wps_build_wfa_ext(data, 0, NULL, 0)) { wpa_printf(MSG_ERROR, "WPS: Build OOB device password " "attribute error"); wpabuf_free(data);