diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-05-31 20:47:24 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-07 23:48:28 -0700 |
commit | 0ea98e0cff37f5a63783a65c84cc5945466b9024 (patch) | |
tree | 90ccc6f1fb3c464add41c27b313471a2dd6ff8f3 | |
parent | 8615b75d70b07e357a8559352aaaf116093edcf3 (diff) | |
download | connman-0ea98e0cff37f5a63783a65c84cc5945466b9024.tar.gz connman-0ea98e0cff37f5a63783a65c84cc5945466b9024.tar.bz2 connman-0ea98e0cff37f5a63783a65c84cc5945466b9024.zip |
[connman] Notify the IPv4 Ready State signal to UI followed by IPv6 Signal.submit/tizen/20160608.101452accepted/tizen/wearable/20160609.090715accepted/tizen/tv/20160609.090732accepted/tizen/mobile/20160609.090615accepted/tizen/ivi/20160609.090754accepted/tizen/common/20160608.160928
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-x | src/service.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 9f197dd2..5dab82c8 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); } |