summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-04-01 21:10:02 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-04-01 21:10:02 +0200
commitfe11770a25d20713d0a7cedb2255d3fbf91f9922 (patch)
tree7d43381c1a4264576314882a4dd9cfa11597c132 /src/device.c
parent50b195186bf95f621a7d30858a38dee8cb18c1a9 (diff)
downloadconnman-fe11770a25d20713d0a7cedb2255d3fbf91f9922.tar.gz
connman-fe11770a25d20713d0a7cedb2255d3fbf91f9922.tar.bz2
connman-fe11770a25d20713d0a7cedb2255d3fbf91f9922.zip
device: No need to save the scan interval
Since the scan interval can no longer be set through D-Bus, there is no need to save it anymore.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/device.c b/src/device.c
index f54c29b1..bc757c9e 100644
--- a/src/device.c
+++ b/src/device.c
@@ -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);