diff options
-rw-r--r-- | src/device.c | 4 |
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); |