--- plugins/wifi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
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); } -- 1.7.12.3 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman