WPS: Parse Registrar Configuration Methods
This new subelement was added into the WFA Vendor Extension. Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
This commit is contained in:
parent
b89c43d36a
commit
8714caa1c2
3 changed files with 11 additions and 1 deletions
|
@ -59,6 +59,14 @@ static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr,
|
||||||
}
|
}
|
||||||
attr->settings_delay_time = pos;
|
attr->settings_delay_time = pos;
|
||||||
break;
|
break;
|
||||||
|
case WFA_ELEM_REGISTRAR_CONFIGURATION_METHODS:
|
||||||
|
if (len != 2) {
|
||||||
|
wpa_printf(MSG_DEBUG, "WPS: Invalid Registrar Configuration Methods length %u",
|
||||||
|
len);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
attr->registrar_configuration_methods = pos;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
wpa_printf(MSG_MSGDUMP, "WPS: Skipped unknown WFA Vendor "
|
wpa_printf(MSG_MSGDUMP, "WPS: Skipped unknown WFA Vendor "
|
||||||
"Extension subelement %u", id);
|
"Extension subelement %u", id);
|
||||||
|
|
|
@ -55,6 +55,7 @@ struct wps_parse_attr {
|
||||||
const u8 *network_key_shareable; /* 1 octet (Bool) */
|
const u8 *network_key_shareable; /* 1 octet (Bool) */
|
||||||
const u8 *request_to_enroll; /* 1 octet (Bool) */
|
const u8 *request_to_enroll; /* 1 octet (Bool) */
|
||||||
const u8 *ap_channel; /* 2 octets */
|
const u8 *ap_channel; /* 2 octets */
|
||||||
|
const u8 *registrar_configuration_methods; /* 2 octets */
|
||||||
|
|
||||||
/* variable length fields */
|
/* variable length fields */
|
||||||
const u8 *manufacturer;
|
const u8 *manufacturer;
|
||||||
|
|
|
@ -146,7 +146,8 @@ enum {
|
||||||
WFA_ELEM_AUTHORIZEDMACS = 0x01,
|
WFA_ELEM_AUTHORIZEDMACS = 0x01,
|
||||||
WFA_ELEM_NETWORK_KEY_SHAREABLE = 0x02,
|
WFA_ELEM_NETWORK_KEY_SHAREABLE = 0x02,
|
||||||
WFA_ELEM_REQUEST_TO_ENROLL = 0x03,
|
WFA_ELEM_REQUEST_TO_ENROLL = 0x03,
|
||||||
WFA_ELEM_SETTINGS_DELAY_TIME = 0x04
|
WFA_ELEM_SETTINGS_DELAY_TIME = 0x04,
|
||||||
|
WFA_ELEM_REGISTRAR_CONFIGURATION_METHODS = 0x05
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Device Password ID */
|
/* Device Password ID */
|
||||||
|
|
Loading…
Reference in a new issue