From: Samuel Ortiz Date: Wed, 8 Sep 2010 17:23:51 +0000 (+0200) Subject: Set the devices offline mode to FALSE when setting the Powered property X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~2453 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8186de4ecb4f3c8de194597b03260d60fee247b;p=profile%2Fivi%2Fconnman.git Set the devices offline mode to FALSE when setting the Powered property --- diff --git a/src/device.c b/src/device.c index db24f95..8976236 100644 --- a/src/device.c +++ b/src/device.c @@ -218,13 +218,20 @@ int __connman_device_enable(struct connman_device *device) err = device->driver->enable(device); if (err < 0) { - if (err == -EINPROGRESS) + if (err == -EINPROGRESS) { device->powered_pending = TRUE; + device->offlinemode = FALSE; + if (__connman_profile_get_offlinemode() == TRUE) + __connman_profile_set_offlinemode(FALSE, FALSE); + } return err; } device->powered_pending = TRUE; device->powered = TRUE; + device->offlinemode = FALSE; + if (__connman_profile_get_offlinemode() == TRUE) + __connman_profile_set_offlinemode(FALSE, FALSE); __connman_technology_enable_device(device);