projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b6cb8f
)
Fix the state value of Network Manager compatibility support
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 22 Jul 2009 19:02:56 +0000
(21:02 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 22 Jul 2009 19:02:56 +0000
(21:02 +0200)
src/manager.c
patch
|
blob
|
history
diff --git
a/src/manager.c
b/src/manager.c
index
99a0724
..
113a907
100644
(file)
--- a/
src/manager.c
+++ b/
src/manager.c
@@
-608,7
+608,10
@@
static DBusMessage *nm_state(DBusConnection *conn,
if (reply == NULL)
return NULL;
- state = NM_STATE_DISCONNECTED;
+ if (__connman_element_count(NULL, CONNMAN_ELEMENT_TYPE_CONNECTION) > 0)
+ state = NM_STATE_CONNECTED;
+ else
+ state = NM_STATE_DISCONNECTED;
dbus_message_append_args(reply, DBUS_TYPE_UINT32, &state,
DBUS_TYPE_INVALID);