WPS: Add parsing of AP Setup Locked attribute
This commit is contained in:
parent
6e4f461270
commit
e9a2bca6f5
2 changed files with 9 additions and 0 deletions
|
@ -389,6 +389,14 @@ static int wps_set_attr(struct wps_parse_attr *attr, u16 type,
|
||||||
attr->eap_identity = pos;
|
attr->eap_identity = pos;
|
||||||
attr->eap_identity_len = len;
|
attr->eap_identity_len = len;
|
||||||
break;
|
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:
|
default:
|
||||||
wpa_printf(MSG_DEBUG, "WPS: Unsupported attribute type 0x%x "
|
wpa_printf(MSG_DEBUG, "WPS: Unsupported attribute type 0x%x "
|
||||||
"len=%u", type, len);
|
"len=%u", type, len);
|
||||||
|
|
|
@ -150,6 +150,7 @@ struct wps_parse_attr {
|
||||||
const u8 *selected_registrar; /* 1 octet (Bool) */
|
const u8 *selected_registrar; /* 1 octet (Bool) */
|
||||||
const u8 *request_type; /* 1 octet */
|
const u8 *request_type; /* 1 octet */
|
||||||
const u8 *response_type; /* 1 octet */
|
const u8 *response_type; /* 1 octet */
|
||||||
|
const u8 *ap_setup_locked; /* 1 octet */
|
||||||
|
|
||||||
/* variable length fields */
|
/* variable length fields */
|
||||||
const u8 *manufacturer;
|
const u8 *manufacturer;
|
||||||
|
|
Loading…
Reference in a new issue