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>
*/
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)