[email protected] writes:
> From: Patrik Flykt <[email protected]>
>
> Change password query to use RequestInput method call instead of
> RequestPassphrase. The supplied passphrase_cb_t function sets the password
> returned via Agent API and tries to reconnect to the service.
>
> A connman_service_set_passphrase helper function has been added by factoring
> out the password setting code from set_property.
[...]
> +static void request_input_cb (struct connman_service *service,
> + const char *passphrase, void *user_data)
> +{
> + DBG ("RequestInput return, %p", service);
> +
> + if (passphrase == NULL)
> + return;
> + connman_service_set_passphrase(service, passphrase);
> + __connman_service_connect(service);
> +}
Sorry, I wasn't able to test your patches yet. But the service will go
back to idle state while the passphrase is requested from the agent,
right?
I actually like to have the service in some active state (ie. != idle)
so that the UI can show that something is happening. If the service
state goes back to idle it will be problematic for the UI.
--
Kalle Valo
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman