Hi,

On Tue, 2014-12-16 at 14:31 +0200, pasi.sjoh...@jolla.com wrote:
> From: Pasi Sjöholm <pasi.sjoh...@jollamobile.com>
> 
> Reset ipv4/6_method to CONNMAN_IPCONFIG_METHOD_UNKNOWN when
> protocol is set ip/ipv6/dual on ofono, which can be only
> done when context is not active.
> ---
>  plugins/ofono.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/plugins/ofono.c b/plugins/ofono.c
> index 7a8442b..1617764 100644
> --- a/plugins/ofono.c
> +++ b/plugins/ofono.c
> @@ -1210,6 +1210,11 @@ static gboolean context_changed(DBusConnection *conn,
>               DBG("%s IPv6.Settings", modem->path);
>  
>               extract_ipv6_settings(&value, modem->context);
> +     } else if (g_str_equal(key, "Protocol")) {
> +             DBG("%s Protocol", modem->path);
> +
> +             modem->context->ipv4_method = CONNMAN_IPCONFIG_METHOD_UNKNOWN;
> +             modem->context->ipv6_method = CONNMAN_IPCONFIG_METHOD_UNKNOWN;
>       } else if (g_str_equal(key, "Active")) {
>               dbus_bool_t active;
>  

Why isn't the value of the oFono 'Protocol' property considered above?

Cheers,

        Patrik


_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to