Hi Tomasz,

On Tue, Oct 18, 2011 at 05:03:12PM +0300, Tomasz Bursztyka wrote:
> This fixes the issue when given psk is incorrect as a value, not in its
> format. Agent API will then handle it as it should to request a retry or not.
> ---
>  plugins/wifi.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/plugins/wifi.c b/plugins/wifi.c
> index a9d7871..d8c2019 100644
> --- a/plugins/wifi.c
> +++ b/plugins/wifi.c
> @@ -935,6 +935,20 @@ static void interface_state(GSupplicantInterface 
> *interface)
>  
>               if (is_idle(wifi))
>                       break;
> +
> +             /* If previous state was 4way-handshake, then
> +              * it most probably means psk was incorrect */
> +             if (wifi->state == G_SUPPLICANT_STATE_4WAY_HANDSHAKE) {
> +                     /* We disable the selected network, if not then
> +                      * wpa_supplicant will loop retrying */
> +                     if (g_supplicant_interface_disable_selected_network(
2 questions here:
- Wouldn't a g_supplicant_interface_disconnect() be enough ?
- If not, do you need to enable back the selected network when the user tries
  to reconnect to the same network (via an agent API call for example) ?

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to