From: Marcel Holtmann Date: Thu, 16 Jul 2009 04:42:34 +0000 (+0200) Subject: Fix issue with supplicant and async state notifications X-Git-Tag: 0.24~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93bbe3bcd7b6f0daada0b42005bee060914509b4;p=platform%2Fupstream%2Fconnman.git Fix issue with supplicant and async state notifications --- diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 66a7580..d838988 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1503,7 +1503,7 @@ static int task_connect(struct supplicant_task *task) enable_network(task); - return 0; + return -EINPROGRESS; } static void state_change(struct supplicant_task *task, DBusMessage *msg) @@ -1789,7 +1789,7 @@ int supplicant_connect(struct connman_network *network) return task_connect(task); } - return 0; + return -EINPROGRESS; } int supplicant_disconnect(struct connman_network *network) @@ -1814,7 +1814,7 @@ int supplicant_disconnect(struct connman_network *network) task->disconnecting = TRUE; - return 0; + return -EINPROGRESS; } static void supplicant_activate(DBusConnection *conn)