Hi Patrik,

On Fri, Feb 04, 2011 at 03:14:19PM +0200, patrik.fl...@nokia.com wrote:
> From: Patrik Flykt <patrik.fl...@nokia.com>
> 
> Call interface_connect_data callback when an error is reported for
> wpa_supplicant AddNetwork and SelectNetwork method calls. In the case
> of WPA-PSK or WEP key being incorrectly formatted, set the callback
> result to -ENOKEY.
> ---
> v2: use strncmp, get rid of single quotes ('')
> 
>  gsupplicant/supplicant.c |   30 ++++++++++++++++++++++++++++--
>  1 files changed, 28 insertions(+), 2 deletions(-)
> 
> diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
> index 7a3fd4c..2c3e5dd 100644
> --- a/gsupplicant/supplicant.c
> +++ b/gsupplicant/supplicant.c
> @@ -2410,6 +2410,24 @@ int g_supplicant_interface_scan(GSupplicantInterface 
> *interface,
>                       interface_scan_params, interface_scan_result, data);
>  }
>  
> +static int parse_supplicant_error(DBusMessageIter *iter)
> +{
> +     int err = -ECANCELED;
> +     char *key;
> +
> +     while (dbus_message_iter_get_arg_type(iter) == DBUS_TYPE_STRING) {
> +             dbus_message_iter_get_basic(iter, &key);
> +             if (strncmp(key, "psk", 4) == 0 ||
4 ? If you meant 3 I can fix it myself and apply those patches. Otherwise,
you'll have to explain :)

Cheers,
Samuel.

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

Reply via email to