projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c547b57
)
service: Set service state idle when creating from provider
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Tue, 14 Feb 2012 12:40:32 +0000
(13:40 +0100)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Tue, 14 Feb 2012 12:44:25 +0000
(13:44 +0100)
When a new service is created from a provider, the service state
should be initialized. We do this also when creating from a
network object.
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
b0acd5f
..
1f99b34
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-5365,6
+5365,7
@@
__connman_service_create_from_provider(struct connman_provider *provider)
service->userconnect = TRUE;
service->state_ipv4 = service->state_ipv6 = CONNMAN_SERVICE_STATE_IDLE;
+ service->state = combine_state(service->state_ipv4, service->state_ipv6);
str = connman_provider_get_string(provider, "Name");
if (str != NULL) {