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:
5495626
)
Append settings only for ready services
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 19 Dec 2009 22:08:12 +0000
(14:08 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 19 Dec 2009 22:08:12 +0000
(14:08 -0800)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
03f364b
..
0135544
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-387,6
+387,18
@@
static void append_settings(DBusMessageIter *iter, void *user_data)
{
struct connman_service *service = user_data;
+ switch (service->state) {
+ case CONNMAN_SERVICE_STATE_UNKNOWN:
+ case CONNMAN_SERVICE_STATE_IDLE:
+ case CONNMAN_SERVICE_STATE_FAILURE:
+ case CONNMAN_SERVICE_STATE_DISCONNECT:
+ case CONNMAN_SERVICE_STATE_ASSOCIATION:
+ case CONNMAN_SERVICE_STATE_CONFIGURATION:
+ return;
+ case CONNMAN_SERVICE_STATE_READY:
+ break;
+ }
+
if (service->ipconfig != NULL)
__connman_ipconfig_append_ipv4(service->ipconfig,
iter, "IPv4.");