From 50b195186bf95f621a7d30858a38dee8cb18c1a9 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 1 Apr 2011 21:06:33 +0200 Subject: device: Reorder the scan_interval setting switch All scan interval are set to 0, except for WiFi. --- src/device.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index 9644670a..f54c29b1 100644 --- a/src/device.c +++ b/src/device.c @@ -499,28 +499,18 @@ struct connman_device *connman_device_create(const char *node, switch (type) { case CONNMAN_DEVICE_TYPE_UNKNOWN: - case CONNMAN_DEVICE_TYPE_VENDOR: - device->scan_interval = 0; - break; case CONNMAN_DEVICE_TYPE_ETHERNET: - case CONNMAN_DEVICE_TYPE_WIFI: - device->scan_interval = 300; - break; case CONNMAN_DEVICE_TYPE_WIMAX: - device->scan_interval = 0; - break; case CONNMAN_DEVICE_TYPE_BLUETOOTH: - device->scan_interval = 0; - break; - case CONNMAN_DEVICE_TYPE_GPS: - device->scan_interval = 0; - break; case CONNMAN_DEVICE_TYPE_CELLULAR: - device->scan_interval = 0; - break; + case CONNMAN_DEVICE_TYPE_GPS: case CONNMAN_DEVICE_TYPE_GADGET: + case CONNMAN_DEVICE_TYPE_VENDOR: device->scan_interval = 0; break; + case CONNMAN_DEVICE_TYPE_WIFI: + device->scan_interval = 300; + break; } device->networks = g_hash_table_new_full(g_str_hash, g_str_equal, -- cgit v1.2.3