diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-07-29 20:10:02 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-07-29 20:10:02 +0200 |
commit | 6d223212daa782df716b5a449476d137cd181fa2 (patch) | |
tree | 310ebd88fe03624c96016567e8f674501f2f50a8 /src/device.c | |
parent | f0031470e7467e7ef3c1c483c2599eee3d9be130 (diff) | |
download | connman-6d223212daa782df716b5a449476d137cd181fa2.tar.gz connman-6d223212daa782df716b5a449476d137cd181fa2.tar.bz2 connman-6d223212daa782df716b5a449476d137cd181fa2.zip |
Disable offline mode when enabling a technology from offline mode
When enabling a technology in offline mode ConnMan now enables said
technology, set offline mode to false while keeping the other technologies
off.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 3 |
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); |