3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-24 15:22:34 +01:00

wscutil: Add extractor for AUTHENTICATOR

This commit is contained in:
Denis Kenzior 2016-08-16 16:11:51 -05:00
parent b8e54d2834
commit e91846bbc5

View File

@ -238,6 +238,15 @@ static bool extract_association_state(struct wsc_attr_iter *iter, void *data)
return true; return true;
} }
static bool extract_authenticator(struct wsc_attr_iter *iter, void *data)
{
if (wsc_attr_iter_get_length(iter) != 8)
return false;
memcpy(data, wsc_attr_iter_get_data(iter), 8);
return true;
}
static bool extract_configuration_error(struct wsc_attr_iter *iter, void *data) static bool extract_configuration_error(struct wsc_attr_iter *iter, void *data)
{ {
enum wsc_configuration_error *out = data; enum wsc_configuration_error *out = data;
@ -466,6 +475,8 @@ static attr_handler handler_for_type(enum wsc_attr type)
return extract_association_state; return extract_association_state;
case WSC_ATTR_AUTHENTICATION_TYPE_FLAGS: case WSC_ATTR_AUTHENTICATION_TYPE_FLAGS:
return extract_uint16; return extract_uint16;
case WSC_ATTR_AUTHENTICATOR:
return extract_authenticator;
case WSC_ATTR_CONFIGURATION_ERROR: case WSC_ATTR_CONFIGURATION_ERROR:
return extract_configuration_error; return extract_configuration_error;
case WSC_ATTR_CONFIGURATION_METHODS: case WSC_ATTR_CONFIGURATION_METHODS: