summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 619fe5e3..fc725446 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1060,6 +1060,9 @@ int __connman_device_enable_persistent(struct connman_device *device)
device->powered_persistent = TRUE;
+ if (__connman_profile_get_offlinemode() == TRUE)
+ __connman_profile_set_offlinemode(FALSE, FALSE);
+
__connman_storage_save_device(device);
return __connman_device_enable(device);