From: Mohamed Abbas Date: Thu, 9 Dec 2010 00:37:16 +0000 (-0800) Subject: device: Reset device->connections and device->scanning on device enable X-Git-Tag: 0.65~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6a8dc572cb2a9ea0c30d9499329b61d3a299624;p=platform%2Fupstream%2Fconnman.git device: Reset device->connections and device->scanning on device enable Make sure we reset these value since the device just enabled. --- diff --git a/src/device.c b/src/device.c index f2b8cf2..957be7c 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) {