summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-05-31 15:17:24 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-08 06:48:28 (GMT)
commit0ea98e0cff37f5a63783a65c84cc5945466b9024 (patch)
tree90ccc6f1fb3c464add41c27b313471a2dd6ff8f3
parent8615b75d70b07e357a8559352aaaf116093edcf3 (diff)
downloadconnman-accepted/tizen/mobile/20160609.090615.zip
connman-accepted/tizen/mobile/20160609.090615.tar.gz
connman-accepted/tizen/mobile/20160609.090615.tar.bz2
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 <niraj.g@samsung.com>
-rwxr-xr-xsrc/service.c13
1 files changed, 13 insertions, 0 deletions
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);
}