Make sure we reset these value since the device just enabled.
---
 src/device.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/device.c b/src/device.c
index 50f6723..896946f 100644
--- a/src/device.c
+++ b/src/device.c
@@ -200,6 +200,9 @@ int __connman_device_enable(struct connman_device *device)
        if (device->blocked == TRUE)
                return -ENOLINK;
 
+       connman_device_set_disconnected(device, FALSE);
+       device->scanning = FALSE;
+
        err = device->driver->enable(device);
        if (err < 0 && err != -EALREADY) {
                if (err == -EINPROGRESS) {
-- 
1.7.2.3

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to