summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManeesh Jain <maneesh.jain@samsung.com>2017-10-10 10:38:24 +0530
committertaesub kim <taesub.kim@samsung.com>2017-10-11 10:26:54 +0900
commitb9ce3f8e37154dbe929dfc40b581e7c12ab74fe0 (patch)
tree1af5baedbd59434cbdaa4c64b2cacc41f6a8cf83
parentbd5f43f25977a7eef4abb7cb77487f14b49cc2d1 (diff)
downloadconnman-b9ce3f8e37154dbe929dfc40b581e7c12ab74fe0.tar.gz
connman-b9ce3f8e37154dbe929dfc40b581e7c12ab74fe0.tar.bz2
connman-b9ce3f8e37154dbe929dfc40b581e7c12ab74fe0.zip
@fix: Disconnect Reason code was not getting reset
Description: In following use case, disconnect reason code was not getting reset. 1. Connect With AP 2. Change the Password of AP 3. Check the Disconnect Reason using CAPI 4. Connect again with AP with New Password 5. Check the Disconnect Reason again : It was showing 3 in place of 0. Change-Id: I1b1542b69ac270811ad789a4f662836241b6bf34 Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
-rwxr-xr-xsrc/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 24a7b009..0c9c8977 100755
--- a/src/service.c
+++ b/src/service.c
@@ -5255,6 +5255,9 @@ static DBusMessage *connect_service(DBusConnection *conn,
*/
if (service->type == CONNMAN_SERVICE_TYPE_CELLULAR)
connman_service_user_pdn_connection_ref(service);
+
+ /*Reset the Disconnect Reason while issue connect request*/
+ service->disconnect_reason = 0;
#endif
if (service->pending)