summaryrefslogtreecommitdiff
path: root/plugins/wifi.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-15 03:41:03 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-15 03:41:03 +0100
commit8a714e90ed686264d17e4eddd343c91075d10f27 (patch)
tree4a5722da4f73a883ef357fb4254ee956a71118c0 /plugins/wifi.c
parent91b02d3430e53b5bf7d974e37cd60102a93f92ad (diff)
downloadconnman-8a714e90ed686264d17e4eddd343c91075d10f27.tar.gz
connman-8a714e90ed686264d17e4eddd343c91075d10f27.tar.bz2
connman-8a714e90ed686264d17e4eddd343c91075d10f27.zip
Only connect known networks when in inactive state
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r--plugins/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index b7eea7b1..9cddb61d 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -247,7 +247,7 @@ static void state_change(struct connman_element *device,
}
reconnect:
- if (state == STATE_INACTIVE || state == STATE_DISCONNECTED) {
+ if (state == STATE_INACTIVE) {
data->connected = FALSE;
connect_known_networks(device);
}