[PATCH] provider: Set the state properly when removing provider

Jukka Rissanen jukka.rissanen at linux.intel.com
Fri Nov 23 03:41:22 PST 2012


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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/provider.c b/src/provider.c
index fe7eb88..fa3bc48 100644
--- 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;
-- 
1.7.11.4




More information about the connman mailing list