From e6e415100f46339257f1fa6d8596f64f1f9d6082 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 18 Jul 2009 09:16:03 +0200 Subject: [PATCH] Revert supplicant change to always set scanning false after results --- plugins/supplicant.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index c9db8b8..56efadf 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1349,7 +1349,8 @@ static void get_properties(struct supplicant_task *task) return; noscan: - connman_device_set_scanning(task->device, FALSE); + if (task->noscan == FALSE) + connman_device_set_scanning(task->device, FALSE); } static void scan_results_reply(DBusPendingCall *call, void *user_data) @@ -1406,7 +1407,8 @@ done: dbus_message_unref(reply); noscan: - connman_device_set_scanning(task->device, FALSE); + if (task->noscan == FALSE) + connman_device_set_scanning(task->device, FALSE); } static void scan_results_available(struct supplicant_task *task) -- 2.7.4