device: No need to save the scan interval
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 1 Apr 2011 19:10:02 +0000 (21:10 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 1 Apr 2011 19:10:02 +0000 (21:10 +0200)
Since the scan interval can no longer be set through D-Bus, there is no
need to save it anymore.

src/device.c

index f54c29b..bc757c9 100644 (file)
@@ -1269,7 +1269,6 @@ static int device_load(struct connman_device *device)
        GError *error = NULL;
        gchar *identifier;
        connman_bool_t powered;
-       int val;
 
        DBG("device %p", device);
 
@@ -1287,12 +1286,6 @@ static int device_load(struct connman_device *device)
                device->powered_persistent = powered;
        g_clear_error(&error);
 
-       val = g_key_file_get_integer(keyfile, identifier,
-                                               "ScanInterval", &error);
-       if (error == NULL)
-               device->scan_interval = val;
-       g_clear_error(&error);
-
 done:
        g_free(identifier);
 
@@ -1320,9 +1313,6 @@ static int device_save(struct connman_device *device)
        g_key_file_set_boolean(keyfile, identifier,
                                        "Powered", device->powered_persistent);
 
-       g_key_file_set_integer(keyfile, identifier,
-                                       "ScanInterval", device->scan_interval);
-
 done:
        g_free(identifier);