3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

wscutil: move extract_wsc_state

To proper alphabetical order
This commit is contained in:
Denis Kenzior 2016-08-16 12:25:55 -05:00
parent 62e485839f
commit 0f1372f866

View File

@ -433,6 +433,15 @@ static bool extract_version(struct wsc_attr_iter *iter, void *data)
return true; return true;
} }
static bool extract_uuid(struct wsc_attr_iter *iter, void *data)
{
if (wsc_attr_iter_get_length(iter) != 16)
return false;
memcpy(data, wsc_attr_iter_get_data(iter), 16);
return true;
}
static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data) static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data)
{ {
uint8_t *out = data; uint8_t *out = data;
@ -448,15 +457,6 @@ static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data)
return true; return true;
} }
static bool extract_uuid(struct wsc_attr_iter *iter, void *data)
{
if (wsc_attr_iter_get_length(iter) != 16)
return false;
memcpy(data, wsc_attr_iter_get_data(iter), 16);
return true;
}
static attr_handler handler_for_type(enum wsc_attr type) static attr_handler handler_for_type(enum wsc_attr type)
{ {
switch (type) { switch (type) {