From 14821c662c074412c9124dde33c07f49f6196525 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Mon, 16 Aug 2010 15:09:50 +0200 Subject: [PATCH] Save profile when enabling device while in offline mode The profile is no longer offline when doing so and that state change should be stored. --- src/device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 1ab2c3a..e782bb5 100644 --- a/src/device.c +++ b/src/device.c @@ -1097,8 +1097,11 @@ int __connman_device_enable_persistent(struct connman_device *device) err = __connman_device_enable(device); if (err == 0 || err == -EINPROGRESS) { device->offlinemode = FALSE; - if (__connman_profile_get_offlinemode() == TRUE) + if (__connman_profile_get_offlinemode() == TRUE) { __connman_profile_set_offlinemode(FALSE, FALSE); + + __connman_profile_save_default(); + } } return err; -- 2.7.4