/*************************************************************************** * 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_EnableDriver * **************************************************************************** * DESCRIPTION: Activated when SG is enabled (after CLI or FW command) * * INPUTS: pSoftGemini - the object * ***************************************************************************/ static TI_STATUS SoftGemini_EnableDriver(TI_HANDLE hSoftGemini) { SoftGemini_t *pSoftGemini = (SoftGemini_t *)hSoftGemini; TI_STATUS return_value = TI_OK; pSoftGemini->bDriverEnabled = TI_TRUE; /* Check if coexAutoPsMode - Co-ex is enabled to enter/exit P.S */ if ( pSoftGemini->SoftGeminiParam.coexParams[SOFT_GEMINI_AUTO_PS_MODE]) { SoftGemini_SetPS(pSoftGemini); } scr_setMode(pSoftGemini->hSCR, SCR_MID_SG); return return_value; }
/** * \\n * \date 23-Nov-2005\n * \brief Change the SCR mode.\n * * Function Scope \e Public.\n * \param hScr - handle to the SCR object.\n * \param mode - the mode to change to.\n */ void changeMode( TI_HANDLE hScr, EScrModeId mode ) { scr_setMode( hScr, mode ); WLAN_OS_REPORT(("SCR mode was changed to %s\n", modeDesc[ mode ])); }