summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2009-10-27 17:51:07 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-10-27 19:35:22 +0900
commit3ff4b7697b40c744fd540350fc53a448eb813c27 (patch)
tree0affbbf84092dd9b5a3937fc6b4ffdbc1f16d6ab /src/device.c
parentd9917138ca1c51f6b4e2f1259cbcc2828ac6ef1a (diff)
downloadconnman-3ff4b7697b40c744fd540350fc53a448eb813c27.tar.gz
connman-3ff4b7697b40c744fd540350fc53a448eb813c27.tar.bz2
connman-3ff4b7697b40c744fd540350fc53a448eb813c27.zip
Set reconnect to FALSE when power off or disabling the device
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 6b669f2e..21ba4275 100644
--- a/src/device.c
+++ b/src/device.c
@@ -326,6 +326,8 @@ static int set_powered(struct connman_device *device, connman_bool_t powered)
} else {
device->powered_pending = powered;
+ device->reconnect = FALSE;
+
clear_scan_trigger(device);
g_hash_table_remove_all(device->networks);
@@ -1349,6 +1351,8 @@ int __connman_device_disable(struct connman_device *device)
device->powered_pending = FALSE;
+ device->reconnect = FALSE;
+
clear_scan_trigger(device);
g_hash_table_remove_all(device->networks);