diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-10-16 08:35:17 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-10-16 13:45:54 +0300 |
commit | 4e637dcb37540463bc57b9e7ab33fcd011b91728 (patch) | |
tree | 4f7465ba44ff0447a9a654e245986929792c30d8 /plugins/wifi.c | |
parent | 14fb18645d64c546f914d37bbd2d9a7a9bd27d2a (diff) | |
download | connman-4e637dcb37540463bc57b9e7ab33fcd011b91728.tar.gz connman-4e637dcb37540463bc57b9e7ab33fcd011b91728.tar.bz2 connman-4e637dcb37540463bc57b9e7ab33fcd011b91728.zip |
wifi: Do not start autoscan if interface was not ready
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r-- | plugins/wifi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 2984de0e..631d0cc3 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); } |