From: Tomasz Bursztyka Date: Tue, 16 Oct 2012 05:35:17 +0000 (+0300) Subject: wifi: Do not start autoscan if interface was not ready X-Git-Tag: 1.9~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e637dcb37540463bc57b9e7ab33fcd011b91728;p=platform%2Fupstream%2Fconnman.git wifi: Do not start autoscan if interface was not ready --- 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); }