[UTC][connection] Modify utc_connection_close_profile_p 40/299140/1
authorAnjali Nijhara <a.nijhara@samsung.com>
Wed, 20 Sep 2023 11:13:21 +0000 (16:43 +0530)
committerAnjali Nijhara <a.nijhara@samsung.com>
Wed, 20 Sep 2023 11:16:09 +0000 (16:46 +0530)
Fix sdb connection issue in emulator profile

Change-Id: Ia43f08d912bc41f3b50f90855f3b8c2770d8e081

src/utc/connection/utc-network-connection.c

index 6d244fc..8fa5096 100755 (executable)
@@ -2193,9 +2193,9 @@ int utc_connection_close_profile_p(void)
        int ret;
        connection_cellular_state_e state;
 
-       if (!telephony_supported && !wifi_supported && !bt_tethering_supported) {
+       if (!telephony_supported && !wifi_supported) {
                ret = connection_close_profile(connection, profile_temp, test_connection_closed_callback, NULL);
-               CHECK_RETURN("connection_close_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED);
+               CHECK_RETURN("connection_close_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER);
                return 0;
        }