From 5871159781a54b98714d0529d1b5c0c41d38df99 Mon Sep 17 00:00:00 2001 From: taesub kim Date: Tue, 12 Dec 2017 12:37:34 +0900 Subject: Fixed the keyload issue when wifi is initial connection Related link: https://review.tizen.org/gerrit/#/c/117897/ Change-Id: I8dc20e796bb7c84bb56bebb25faa609e0056fa74 Signed-off-by: Taesub Kim --- src/dhcpv6.c | 13 +++++++++++++ src/ipconfig.c | 4 ++++ 2 files changed, 17 insertions(+) (limited to 'src') diff --git a/src/dhcpv6.c b/src/dhcpv6.c index b1b2f63d..adf88273 100755 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -203,10 +203,23 @@ static int set_duid(struct connman_service *service, int duid_len; ident = __connman_service_get_ident(service); +#if defined TIZEN_EXT + if(ident != NULL) + DBG("ident : %s", ident); +#endif keyfile = connman_storage_load_service(ident); + +#if defined TIZEN_EXT + if (!keyfile) { + keyfile = g_key_file_new(); + if (!keyfile) + return -EIO; + } +#else if (!keyfile) return -EINVAL; +#endif hex_duid = g_key_file_get_string(keyfile, ident, "IPv6.DHCP.DUID", NULL); diff --git a/src/ipconfig.c b/src/ipconfig.c index a9d0b5a7..caebd393 100755 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1442,7 +1442,11 @@ int __connman_ipconfig_address_unset(struct connman_ipconfig *ipconfig) if (!ipconfig) return 0; +#if defined TIZEN_EXT + DBG("ipconfig method %d type %d", ipconfig->method, ipconfig->type); +#else DBG("method %d", ipconfig->method); +#endif switch (ipconfig->method) { case CONNMAN_IPCONFIG_METHOD_UNKNOWN: -- cgit v1.2.3