summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManeesh Jain <maneesh.jain@samsung.com>2017-10-10 10:38:24 +0530
committerManeesh Jain <maneesh.jain@samsung.com>2017-10-10 05:18:14 +0000
commit761d10a7ee97c2e8fd7a5c0f6bfb18fd0035003c (patch)
treef66118799093588ab5e99ee6b26d5c85953037a9
parent796441c4296905691f55c893e73e7b8704b49f73 (diff)
downloadconnman-761d10a7ee97c2e8fd7a5c0f6bfb18fd0035003c.tar.gz
connman-761d10a7ee97c2e8fd7a5c0f6bfb18fd0035003c.tar.bz2
connman-761d10a7ee97c2e8fd7a5c0f6bfb18fd0035003c.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)