Fix to check favorit value into service 92/106992/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen/3.0.m2/mobile/20170105.023950 accepted/tizen/3.0.m2/tv/20170105.024229 accepted/tizen/3.0.m2/wearable/20170105.024531 accepted/tizen/3.0/common/20161227.102026 accepted/tizen/3.0/ivi/20161227.010429 accepted/tizen/3.0/mobile/20161227.010335 accepted/tizen/3.0/tv/20161227.010354 accepted/tizen/3.0/wearable/20161227.010411 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161226.070114
authorhyunuktak <hyunuk.tak@samsung.com>
Mon, 26 Dec 2016 05:37:16 +0000 (14:37 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Mon, 26 Dec 2016 05:37:22 +0000 (14:37 +0900)
When AP's status is changed(ex, password),
favorite value is setted to false.
so it is returning false as not supported
with checking favorite and state of service
when remove profile mothod is called.
it should remove service profile
whether it is favorite or not,
when it's called explicit.

Change-Id: I6b59729c7c2614b9f25f56696463f4ac927f6809
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
src/service.c

index 34a37a7..001c1f8 100755 (executable)
@@ -4789,9 +4789,11 @@ bool __connman_service_remove(struct connman_service *service)
                        __connman_provider_is_immutable(service->provider))
                return false;
 
+#if !defined TIZEN_EXT
        if (!service->favorite && service->state !=
                                                CONNMAN_SERVICE_STATE_FAILURE)
                return false;
+#endif
 
        __connman_service_disconnect(service);