[PATCH 1/1] Set network associating as FALSE at function pan_disconnect()

martin.xu at intel.com martin.xu at intel.com
Wed Apr 28 03:25:45 PDT 2010


From: Martin Xu <martin.xu at intel.com>

Otherwise, connman_network_set_connected() takes normal service
disconnect as connecting failure.
---
 plugins/bluetooth.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index fabc75f..4533d7a 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -237,6 +237,8 @@ static int pan_disconnect(struct connman_network *network)
 
 	connman_network_ref(network);
 
+	connman_network_set_associating(network, FALSE);
+
 	dbus_pending_call_set_notify(call, disconnect_reply, network, NULL);
 
 	dbus_message_unref(message);
-- 
1.6.1.3




More information about the connman mailing list