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>
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);
}