P2P: Enable use of WPS Requested Device Type without WPS 2.0

This commit is contained in:
Jouni Malinen 2010-07-18 14:30:24 -07:00 committed by Jouni Malinen
parent 63675def6e
commit 935a948f97

View file

@ -497,7 +497,6 @@ static int wps_set_attr(struct wps_parse_attr *attr, u16 type,
} }
attr->ap_setup_locked = pos; attr->ap_setup_locked = pos;
break; break;
#ifdef CONFIG_WPS2
case ATTR_REQUESTED_DEV_TYPE: case ATTR_REQUESTED_DEV_TYPE:
if (len != WPS_DEV_TYPE_LEN) { if (len != WPS_DEV_TYPE_LEN) {
wpa_printf(MSG_DEBUG, "WPS: Invalid Requested Device " 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->req_dev_type[attr->num_req_dev_type] = pos;
attr->num_req_dev_type++; attr->num_req_dev_type++;
break; break;
#endif /* CONFIG_WPS2 */
case ATTR_VENDOR_EXT: case ATTR_VENDOR_EXT:
if (wps_parse_vendor_ext(attr, pos, len) < 0) if (wps_parse_vendor_ext(attr, pos, len) < 0)
return -1; return -1;