diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-21 21:43:53 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-21 21:43:53 +0100 |
commit | 8074bba2f209e26bc2ab6cf0426241f5ec30da23 (patch) | |
tree | 2d0464853321f31e5f3aaa60be8ab3d7dd230d94 /src | |
parent | 0f02f72a8e871f79c8230b9bc954c9db66dbd34b (diff) | |
download | connman-8074bba2f209e26bc2ab6cf0426241f5ec30da23.tar.gz connman-8074bba2f209e26bc2ab6cf0426241f5ec30da23.tar.bz2 connman-8074bba2f209e26bc2ab6cf0426241f5ec30da23.zip |
Don't try to re-connect to networks out of range
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index a2b8f6f1..b9ed1f51 100644 --- a/src/device.c +++ b/src/device.c @@ -1066,6 +1066,9 @@ static void connect_known_network(struct connman_device *device) count++; + if (connman_network_get_available(value) == FALSE) + continue; + name = connman_network_get_string(value, "Name"); if (name != NULL && device->last_network != NULL) { if (g_str_equal(name, device->last_network) == TRUE) { |