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);
// 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 )
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));
return 0;
}
-/** @} */
+/** @} */
/** @} */