summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@linux.intel.com>2011-08-24 16:44:14 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-08-25 11:14:21 +0200
commitfa0e75c2255edd7cecd8a1d63390e7e000cc7d83 (patch)
tree388b4b0d8bdacc132623fcffc414e01e4575e42d /src/device.c
parenteca384a6167bd4b90d229c3fe9ba7d23d020e68b (diff)
downloadconnman-fa0e75c2255edd7cecd8a1d63390e7e000cc7d83.tar.gz
connman-fa0e75c2255edd7cecd8a1d63390e7e000cc7d83.tar.bz2
connman-fa0e75c2255edd7cecd8a1d63390e7e000cc7d83.zip
technology: Redo offlinemode logic
Traverse the list of technologies and enable/disable each instead of traversing the device list.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/device.c b/src/device.c
index 669c6a8c..60c50fde 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1015,49 +1015,6 @@ const char *connman_device_get_string(struct connman_device *device,
return NULL;
}
-static void set_offlinemode(struct connman_device *device,
- connman_bool_t offlinemode)
-{
- connman_bool_t powered;
-
- DBG("device %p name %s", device, device->name);
-
- if (device == NULL)
- return;
-
- device->offlinemode = offlinemode;
-
- if (device->blocked == TRUE)
- return;
-
- powered = (offlinemode == TRUE) ? FALSE : TRUE;
-
- if (device->powered == powered)
- return;
-
- if (device->powered_persistent == FALSE)
- powered = FALSE;
-
- set_powered(device, powered);
-}
-
-int __connman_device_set_offlinemode(connman_bool_t offlinemode)
-{
- GSList *list;
-
- DBG("offlinmode %d", offlinemode);
-
- for (list = device_list; list != NULL; list = list->next) {
- struct connman_device *device = list->data;
-
- set_offlinemode(device, offlinemode);
- }
-
- __connman_notifier_offlinemode(offlinemode);
-
- return 0;
-}
-
void __connman_device_increase_connections(struct connman_device *device)
{
if (device == NULL)