From: Jouni Malinen Date: Sun, 18 Jul 2010 21:30:24 +0000 (-0700) Subject: P2P: Enable use of WPS Requested Device Type without WPS 2.0 X-Git-Tag: hostap-1-bp~1160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=935a948f97d6dd19bad0d9865e37db3ff6178ae6;p=thirdparty%2Fhostap.git P2P: Enable use of WPS Requested Device Type without WPS 2.0 --- diff --git a/src/wps/wps_attr_parse.c b/src/wps/wps_attr_parse.c index 5b8ce1423..d68e8540b 100644 --- a/src/wps/wps_attr_parse.c +++ b/src/wps/wps_attr_parse.c @@ -497,7 +497,6 @@ static int wps_set_attr(struct wps_parse_attr *attr, u16 type, } attr->ap_setup_locked = pos; break; -#ifdef CONFIG_WPS2 case ATTR_REQUESTED_DEV_TYPE: if (len != WPS_DEV_TYPE_LEN) { wpa_printf(MSG_DEBUG, "WPS: Invalid Requested Device " @@ -513,7 +512,6 @@ static int wps_set_attr(struct wps_parse_attr *attr, u16 type, attr->req_dev_type[attr->num_req_dev_type] = pos; attr->num_req_dev_type++; break; -#endif /* CONFIG_WPS2 */ case ATTR_VENDOR_EXT: if (wps_parse_vendor_ext(attr, pos, len) < 0) return -1;