summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
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);
}