/*************************************************************************** * SoftGemini_DisableDriver * **************************************************************************** * DESCRIPTION: Activated when SG is disabled (after CLI or FW command) * * INPUTS: pSoftGemini - the object * ***************************************************************************/ static TI_STATUS SoftGemini_DisableDriver(TI_HANDLE hSoftGemini) { SoftGemini_t *pSoftGemini = (SoftGemini_t *)hSoftGemini; TI_STATUS return_value = TI_OK; TRACE0(pSoftGemini->hReport, REPORT_SEVERITY_INFORMATION, "\n"); pSoftGemini->bDriverEnabled = TI_FALSE; scr_setMode(pSoftGemini->hSCR, SCR_MID_NORMAL); /* Check if coexAutoPsMode - Co-ex is enabled to enter/exit P.S */ if ( pSoftGemini->SoftGeminiParam.coexParams[SOFT_GEMINI_AUTO_PS_MODE]) { SoftGemini_unSetPS(pSoftGemini); } /* Undo the changes that were made when Protective mode was on */ if (pSoftGemini->bProtectiveMode) { SoftGemini_DisableProtectiveMode(hSoftGemini); } return return_value; }
/************************************************************************ * SoftGemini_unSetPSmode * ************************************************************************ DESCRIPTION: SoftGemini module, called by the conn_Infra after disconnecting performs the following: - Disables the SG - Disables the SG power mode INPUT: hSoftGemini - Handle to SoftGemini OUTPUT: RETURN: ************************************************************************/ void SoftGemini_unSetPSmode(TI_HANDLE hSoftGemini) { SoftGemini_t *pSoftGemini = (SoftGemini_t *)hSoftGemini; if (pSoftGemini) { if (pSoftGemini->bDriverEnabled) { /* Check if coexAutoPsMode is enabled to enter/exit P.S */ if ( pSoftGemini->SoftGeminiParam.coexParams[SOFT_GEMINI_AUTO_PS_MODE]) { SoftGemini_unSetPS(pSoftGemini); } } if (pSoftGemini->bProtectiveMode) { SoftGemini_RemoveProtectiveModeParameters(hSoftGemini); } } }
/************************************************************************ * SoftGemini_unSetPSmode * ************************************************************************ DESCRIPTION: SoftGemini module, called by the conn_Infra after disconnecting performs the following: - Disables the SG - Disables the SG power mode INPUT: hSoftGemini - Handle to SoftGemini OUTPUT: RETURN: ************************************************************************/ void SoftGemini_unSetPSmode(TI_HANDLE hSoftGemini) { SoftGemini_t *pSoftGemini = (SoftGemini_t *)hSoftGemini; if (pSoftGemini) { if (pSoftGemini->bDriverEnabled) { /* Check if coexAutoPsMode is enabled to enter/exit P.S */ if ( pSoftGemini->SoftGeminiParam.coexParams[SOFT_GEMINI_AUTO_PS_MODE]) { SoftGemini_unSetPS(pSoftGemini); } } if (pSoftGemini->bProtectiveMode) { SoftGemini_RemoveProtectiveModeParameters(hSoftGemini); } } else { TRACE0(pSoftGemini->hReport, REPORT_SEVERITY_ERROR, " SoftGemini_unSetPSmode() - Error hSoftGemini= NULL \n"); } }