projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8852fda
)
Fix network out of range detection
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 21 Jan 2009 20:25:30 +0000
(21:25 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 21 Jan 2009 20:25:30 +0000
(21:25 +0100)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
00b8019
..
a2b8f6f
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1118,7
+1118,7
@@
static void mark_network_unavailable(gpointer key, gpointer value,
{
struct connman_network *network = value;
- if (connman_network_get_remember(network) == TRUE)
+ if (connman_network_get_connected(network) == TRUE)
return;
connman_network_set_available(network, FALSE);
@@
-1129,6
+1129,9
@@
static gboolean remove_unavailable_network(gpointer key, gpointer value,
{
struct connman_network *network = value;
+ if (connman_network_get_connected(network) == TRUE)
+ return FALSE;
+
if (connman_network_get_remember(network) == TRUE)
return FALSE;