From c45047df7b35f3d4802cedf8fe21e2a2f8610935 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Dec 2008 19:56:05 +0100 Subject: [PATCH] Restart scanning after disconnecting --- plugins/wifi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index ed3a68e..67ac993 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -190,7 +190,8 @@ static void state_change(struct connman_element *device, DBG("state %d", state); - if (state == STATE_INACTIVE && data->inactive_timer == 0) + if ((state == STATE_INACTIVE || state == STATE_DISCONNECTED) && + data->inactive_timer == 0) data->inactive_timer = g_timeout_add_seconds(INACTIVE_TIMEOUT, inactive_scan, device); -- 2.7.4