From: Jouni Malinen Date: Fri, 11 Sep 2009 14:13:59 +0000 (+0300) Subject: WPS: Add parsing of AP Setup Locked attribute X-Git-Tag: hostap_0_7_0~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9a2bca6f5e5dd7ef7aa62f6954b3877f41a1e34;p=thirdparty%2Fhostap.git WPS: Add parsing of AP Setup Locked attribute --- diff --git a/src/wps/wps_attr_parse.c b/src/wps/wps_attr_parse.c index 34057c922..f86097008 100644 --- a/src/wps/wps_attr_parse.c +++ b/src/wps/wps_attr_parse.c @@ -389,6 +389,14 @@ static int wps_set_attr(struct wps_parse_attr *attr, u16 type, attr->eap_identity = pos; attr->eap_identity_len = len; break; + case ATTR_AP_SETUP_LOCKED: + if (len != 1) { + wpa_printf(MSG_DEBUG, "WPS: Invalid AP Setup Locked " + "length %u", len); + return -1; + } + attr->ap_setup_locked = pos; + break; default: wpa_printf(MSG_DEBUG, "WPS: Unsupported attribute type 0x%x " "len=%u", type, len); diff --git a/src/wps/wps_i.h b/src/wps/wps_i.h index c5a9d9f91..3ee20510a 100644 --- a/src/wps/wps_i.h +++ b/src/wps/wps_i.h @@ -150,6 +150,7 @@ struct wps_parse_attr { const u8 *selected_registrar; /* 1 octet (Bool) */ const u8 *request_type; /* 1 octet */ const u8 *response_type; /* 1 octet */ + const u8 *ap_setup_locked; /* 1 octet */ /* variable length fields */ const u8 *manufacturer;