From f8186de4ecb4f3c8de194597b03260d60fee247b Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 8 Sep 2010 19:23:51 +0200 Subject: [PATCH] Set the devices offline mode to FALSE when setting the Powered property --- src/device.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 2.7.4