From: Jaehyun Kim Date: Wed, 12 Feb 2020 13:39:29 +0000 (+0900) Subject: [ITC][connection][Non-ACR][Fix incorrect precondition check] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acb0be62c21997149e094d6b37e86d0f31f3a463;p=test%2Ftct%2Fnative%2Fapi.git [ITC][connection][Non-ACR][Fix incorrect precondition check] Change-Id: Id9b9874430823e7db2356bc274592e8e71c66016 Signed-off-by: Jaehyun Kim --- diff --git a/src/itc/connection/ITs-connection-ethernet-profile.c b/src/itc/connection/ITs-connection-ethernet-profile.c index 4f3aadcb7..a0d938456 100755 --- a/src/itc/connection/ITs-connection-ethernet-profile.c +++ b/src/itc/connection/ITs-connection-ethernet-profile.c @@ -40,7 +40,7 @@ void ITs_connection_ethernet_profile_startup(void) g_bFeatureSupported = true; g_bFeatureMismatch = false; g_bFeatureNotSupported = false; - + bool bTelFeatureSupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE, API_NAMESPACE); bool bWifiFeatureSupported = TCTCheckSystemInfoFeatureSupported(WIFI_FEATURE, API_NAMESPACE); bool bBtFeatureSupported = TCTCheckSystemInfoFeatureSupported(TETHERING_BLUETOOTH_FEATURE, API_NAMESPACE); @@ -85,7 +85,7 @@ void ITs_connection_ethernet_profile_cleanup(void) // Null initialization of pointer int nRet = 0; - if ( g_nConnectionEthernetPreconditionError && (g_hConenctionHandleEth != NULL) ) + if ( !g_nConnectionEthernetPreconditionError && (g_hConenctionHandleEth != NULL) ) { nRet = connection_destroy(g_hConenctionHandleEth); if ( nRet != CONNECTION_ERROR_NONE ) @@ -152,7 +152,7 @@ int ITc_connection_set_unset_ethernet_cable_state_changed_cb_p(void) if ( bEthFeatureSupported ) { PRINT_RESULT(CONNECTION_ERROR_NONE, nRet, "connection_unset_ethernet_cable_state_chaged_cb", ConnectionGetError(nRet)); - } + } else { PRINT_RESULT(CONNECTION_ERROR_NOT_SUPPORTED, nRet, "connection_unset_ethernet_cable_state_chaged_cb", ConnectionGetError(nRet)); @@ -310,5 +310,5 @@ int ITc_connection_get_mac_address_p(void) return 0; } -/** @} */ +/** @} */ /** @} */