diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index db24f954..89762364 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); |