From: Maneesh Jain Date: Tue, 10 Oct 2017 05:08:24 +0000 (+0530) Subject: @fix: Disconnect Reason code was not getting reset X-Git-Tag: accepted/tizen/unified/20171011.150231~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fconnman.git;a=commitdiff_plain;h=761d10a7ee97c2e8fd7a5c0f6bfb18fd0035003c @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 --- diff --git a/src/service.c b/src/service.c index 24a7b00..0c9c897 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)