From 0ea98e0cff37f5a63783a65c84cc5945466b9024 Mon Sep 17 00:00:00 2001 From: Niraj Kumar Goit Date: Tue, 31 May 2016 20:47:24 +0530 Subject: [PATCH] [connman] Notify the IPv4 Ready State signal to UI followed by IPv6 Signal. Description: First ready state was notified when IP Address was obtained using IPv6 and at that time IPv4 Addresses were not available. and Application called to check gateway address before IPv4 Addresses were available so CAPI returned with error NO_CONNECTION. So sent a ready signal again after IPv4 address available. Change-Id: If7ac89e8de920f144ea5d11fba65370622ce1572 Signed-off-by: Niraj Kumar Goit --- src/service.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/service.c b/src/service.c index 9f197dd..5dab82c 100755 --- a/src/service.c +++ b/src/service.c @@ -6846,6 +6846,19 @@ int __connman_service_ipconfig_indicate_state(struct connman_service *service, is_connected_state(service, new_state)) nameserver_add_all(service); +#if defined TIZEN_EXT + int ret = service_indicate_state(service); + /*Sent the Ready changed signal again in case IPv4 IP set + after IPv6 IP set*/ + + if(ret == -EALREADY && type == CONNMAN_IPCONFIG_TYPE_IPV4 + && new_state == CONNMAN_SERVICE_STATE_READY) { + DBG("Notify IPv4 state new/old %d/%d", new_state,old_state); + state_changed(service); + } + + return ret; +#endif return service_indicate_state(service); } -- 2.7.4