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
(parent:
8a20e52
)
provider: Set the state properly when removing provider
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Fri, 23 Nov 2012 11:41:22 +0000
(13:41 +0200)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Fri, 23 Nov 2012 12:36:04 +0000
(13:36 +0100)
We need to set the provider into idle state when removing,
otherwise the default route will not be set properly after
provider removal.
Fixes BMC#25658
src/provider.c
patch
|
blob
|
history
diff --git
a/src/provider.c
b/src/provider.c
index
fe7eb88
..
fa3bc48
100644
(file)
--- a/
src/provider.c
+++ b/
src/provider.c
@@
-197,6
+197,9
@@
int __connman_provider_remove(const char *path)
provider_remove(provider);
+ connman_provider_set_state(provider,
+ CONNMAN_PROVIDER_STATE_IDLE);
+
g_hash_table_remove(provider_hash,
provider->identifier);
return 0;