Update the ofono plugin to set the proper ipconfig method.
---

        Hi,

According to the spec, address autoconfiguration is used for IPv6
contexts. Let's start by doing this part correctly and checking
what needs fixing after this.

Cheers,

        Patrik

 plugins/ofono.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/plugins/ofono.c b/plugins/ofono.c
index fa3cfc2..56fb58b 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -293,11 +293,10 @@ static void set_connected(struct modem_data *modem)
        }
 
        method = modem->context->ipv6_method;
-       if (method == CONNMAN_IPCONFIG_METHOD_FIXED) {
+       if (method == CONNMAN_IPCONFIG_METHOD_AUTO) {
                connman_service_create_ip6config(service, index);
                connman_network_set_ipv6_method(modem->network, method);
-               connman_network_set_ipaddress(modem->network,
-                                               modem->context->ipv6_address);
+
                setip = true;
        }
 
@@ -919,7 +918,7 @@ static void extract_ipv6_settings(DBusMessageIter *array,
        if (index < 0)
                goto out;
 
-       context->ipv6_method = CONNMAN_IPCONFIG_METHOD_FIXED;
+       context->ipv6_method = CONNMAN_IPCONFIG_METHOD_AUTO;
 
        context->ipv6_address =
                connman_ipaddress_alloc(CONNMAN_IPCONFIG_TYPE_IPV6);
-- 
2.1.4

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to