diff options
author | Alok Barsode <alok.barsode@linux.intel.com> | 2011-08-24 16:44:19 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-08-25 11:14:23 +0200 |
commit | c5d6d86b2fe8a7e173aa0cd6938caf277d4fd9a9 (patch) | |
tree | 82efa31805314709c6c3e5e290794a8f3df9dcbf /src/device.c | |
parent | 7d36f6e5da4e98317ecdfd8c4e66d073c88d784f (diff) | |
download | connman-c5d6d86b2fe8a7e173aa0cd6938caf277d4fd9a9.tar.gz connman-c5d6d86b2fe8a7e173aa0cd6938caf277d4fd9a9.tar.bz2 connman-c5d6d86b2fe8a7e173aa0cd6938caf277d4fd9a9.zip |
device: Remove caching of offlinemode in device structure
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/device.c b/src/device.c index 59321239..6ccd477a 100644 --- a/src/device.c +++ b/src/device.c @@ -43,7 +43,6 @@ struct connman_device { enum connman_device_type type; enum connman_pending_type powered_pending; /* Indicates a pending enable/disable request */ - connman_bool_t offlinemode; connman_bool_t powered; connman_bool_t powered_persistent; connman_bool_t scanning; @@ -672,9 +671,6 @@ int connman_device_set_powered(struct connman_device *device, device->pending_timeout = 0; device->powered_pending = PENDING_NONE; - if (device->offlinemode == TRUE && powered == TRUE) - return __connman_device_disable(device); - device->powered = powered; type = __connman_device_get_service_type(device); @@ -1140,8 +1136,6 @@ int connman_device_register(struct connman_device *device) { __connman_storage_load_device(device); - device->offlinemode = __connman_profile_get_offlinemode(); - return device_probe(device); } |