From b2026562b838070a34970ce42e36b870b68adff1 Mon Sep 17 00:00:00 2001 From: Lucio Maciel Date: Tue, 21 Sep 2010 17:20:40 +0200 Subject: [PATCH] Call remove_network() on unsolicited disconnect When receiving an unsolicited disconnect (turn-off the AP) wpa_supplicant starts scanning every 5 seconds looking for the previously connected ssid. This causes the grow of the network list since connman will not remove the unavailable networks if it is not the initiator of the scan. --- plugins/supplicant.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 6bfcd45..a81eb04 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -2319,7 +2319,9 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg) task_connect(task); } else task->network = NULL; - } + } else + remove_network(task); + break; default: -- 2.7.4