//-------------------------------------------------------------------------------------------------- le_result_t pa_mdc_StopSession ( pa_mdc_CallRef_t callRef ///< [IN] The call reference returned when starting the sessions ) { if ( GetCurrentDataSessionIndex() == INVALID_PROFILE_INDEX ) { return LE_NOT_POSSIBLE; } // Stop the PDP connection on modem side if (StopPDPConnection() != LE_OK) { return LE_NOT_POSSIBLE; } SetCurrentDataSessionIndex(INVALID_PROFILE_INDEX); return LE_OK; }
//-------------------------------------------------------------------------------------------------- le_result_t pa_mdc_StopSession ( uint32_t profileIndex ///< [IN] The profile to use ) { if ( GetCurrentDataSessionIndex() == INVALID_PROFILE_INDEX ) { return LE_FAULT; } // Stop the PDP connection on modem side if (StopPDPConnection() != LE_OK) { return LE_FAULT; } SetCurrentDataSessionIndex(INVALID_PROFILE_INDEX); return LE_OK; }
//-------------------------------------------------------------------------------------------------- le_result_t pa_mdc_StopSession ( uint32_t callRef ///< [IN] The call reference returned when starting the sessions ) { le_result_t result=LE_NOT_POSSIBLE; if ( GetCurrentDataSessionIndex() == INVALID_PROFILE_INDEX ) { return LE_DUPLICATE; } // Stop the PDP connection on modem side if ( (result = StopPDPConnection()) != LE_OK) { return LE_NOT_POSSIBLE; } if (result==LE_OK) { SetCurrentDataSessionIndex(INVALID_PROFILE_INDEX); } return result; }