3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

client: WSC start-user-pin command

This commit is contained in:
Tim Kourt 2017-05-01 10:23:50 -07:00 committed by Denis Kenzior
parent c6045ff100
commit e4261d164d

View File

@ -59,7 +59,18 @@ static enum cmd_status cmd_push_button(const char *device_name, char *args)
static enum cmd_status cmd_start_user_pin(const char *device_name, char *args)
{
return CMD_STATUS_UNSUPPORTED;
const struct proxy_interface *proxy = device_wsc_get(device_name);
if (!proxy) {
display("Invalid device name '%s'\n", device_name);
return CMD_STATUS_INVALID_VALUE;
}
proxy_interface_method_call(proxy, "StartPin", "s",
check_errors_method_callback, args);
return CMD_STATUS_OK;
}
static enum cmd_status cmd_start_pin(const char *device_name, char *args)