This is similar to setting the Favorite property
to false, but that is currently not supported.
+ In the case a connection attempt failed and the
+ service is in the State=failure, this method can
+ also be used to reset the service.
+
Calling this method on Ethernet devices will cause
an error message. It is not possible to remove these
kind of devices.
if (service->type == CONNMAN_SERVICE_TYPE_ETHERNET)
return __connman_error_not_supported(msg);
- if (service->favorite == FALSE)
+ if (service->favorite == FALSE &&
+ service->state != CONNMAN_SERVICE_STATE_FAILURE)
return __connman_error_not_supported(msg);
if (service->network != NULL) {
apn_changed(service);
+ set_idle(service);
+
connman_service_set_favorite(service, FALSE);
__connman_storage_save_service(service);