summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-10-16 05:35:17 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-16 10:45:54 (GMT)
commit4e637dcb37540463bc57b9e7ab33fcd011b91728 (patch)
tree4f7465ba44ff0447a9a654e245986929792c30d8 /plugins
parent14fb18645d64c546f914d37bbd2d9a7a9bd27d2a (diff)
downloadconnman-4e637dcb37540463bc57b9e7ab33fcd011b91728.zip
connman-4e637dcb37540463bc57b9e7ab33fcd011b91728.tar.gz
connman-4e637dcb37540463bc57b9e7ab33fcd011b91728.tar.bz2
wifi: Do not start autoscan if interface was not ready
Diffstat (limited to 'plugins')
-rw-r--r--plugins/wifi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 2984de0..631d0cc 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -516,7 +516,10 @@ static void scan_callback(int result, GSupplicantInterface *interface,
connman_device_reset_scanning(device);
connman_device_set_scanning(device, FALSE);
- start_autoscan(device);
+
+ if (result != -ENOLINK)
+ start_autoscan(device);
+
connman_device_unref(device);
}