qcacld-2.0: Remove unused oem data exchange related functions

Remove unused oem data exchange related functions.
Following functions are removed,
- limOemDataRspHandleResumeLinkRsp
- limSetOemDataReqMode
- limSetOemDataReqModeFailed

Change-Id: I94e9d7c4f9ac6602c32842e5d0919b339a96b771
CRs-Fixed: 1005630
This commit is contained in:
Krishna Kumaar Natarajan 2016-04-19 16:33:02 -07:00 committed by syphyr
parent 2ecb035314
commit f6ceb9b84e
3 changed files with 0 additions and 111 deletions

View File

@ -1109,29 +1109,6 @@ void limMessageProcessor(tpAniSirGlobal pMac, tpSirMsgQ limMsg)
}
#ifdef FEATURE_OEM_DATA_SUPPORT
void limOemDataRspHandleResumeLinkRsp(tpAniSirGlobal pMac, eHalStatus status, tANI_U32* mlmOemDataRsp)
{
if(status != eHAL_STATUS_SUCCESS)
{
limLog(pMac, LOGE, FL("OEM Data Rsp failed to get the response for resume link"));
}
if(NULL != pMac->lim.gpLimMlmOemDataReq)
{
vos_mem_free(pMac->lim.gpLimMlmOemDataReq);
pMac->lim.gpLimMlmOemDataReq = NULL;
}
//"Failure" status doesn't mean that Oem Data Rsp did not happen
//and hence we need to respond to upper layers. Only Resume link is failed, but
//we got the oem data response already.
//Post the meessage to MLM
limPostSmeMessage(pMac, LIM_MLM_OEM_DATA_CNF, (tANI_U32*)(mlmOemDataRsp));
return;
}
void limProcessOemDataRsp(tpAniSirGlobal pMac, tANI_U32* body)
{
tpLimMlmOemDataRsp mlmOemDataRsp = NULL;

View File

@ -1432,88 +1432,6 @@ error:
return;
}
/**
* limSetOemDataReqModeFailed()
*
* FUNCTION:
* This function is used as callback to resume link after the suspend fails while
* starting oem data req mode.
* LOGIC:
* NA
*
* ASSUMPTIONS:
* NA
*
* NOTE:
*
* @param pMac - Pointer to Global MAC structure
* @return None
*/
void limSetOemDataReqModeFailed(tpAniSirGlobal pMac, eHalStatus status, tANI_U32* data)
{
tpLimMlmOemDataRsp pMlmOemDataRsp;
pMac->lim.gLimMlmState = pMac->lim.gLimPrevMlmState;
MTRACE(macTrace(pMac, TRACE_CODE_MLM_STATE, NO_SESSION, pMac->lim.gLimMlmState));
pMlmOemDataRsp = vos_mem_malloc(sizeof(tLimMlmOemDataRsp));
if ( NULL == pMlmOemDataRsp )
{
limLog(pMac->hHdd, LOGP, FL("OEM_DATA: memory allocation for pMlmOemDataRsp failed under suspend link failure"));
return;
}
if (NULL != pMac->lim.gpLimMlmOemDataReq)
{
vos_mem_free(pMac->lim.gpLimMlmOemDataReq);
pMac->lim.gpLimMlmOemDataReq = NULL;
}
vos_mem_set(pMlmOemDataRsp, sizeof(tLimMlmOemDataRsp), 0);
limPostSmeMessage(pMac, LIM_MLM_OEM_DATA_CNF, (tANI_U32*)pMlmOemDataRsp);
return;
}
/**
* limSetOemDataReqMode()
*
*FUNCTION:
* This function is called to setup system into OEM DATA REQ mode
*
*LOGIC:
* NA
*
*ASSUMPTIONS:
* NA
*
*NOTE:
*
* @param pMac - Pointer to Global MAC structure
* @return None
*/
void limSetOemDataReqMode(tpAniSirGlobal pMac, eHalStatus status, tANI_U32* data)
{
if(status != eHAL_STATUS_SUCCESS)
{
limLog(pMac, LOGE, FL("OEM_DATA: failed in suspend link"));
/* If failed to suspend the link, there is no need
* to resume link. Return failure.
*/
limSetOemDataReqModeFailed(pMac, status, data);
}
else
{
PELOGE(limLog(pMac, LOGE, FL("OEM_DATA: Calling limSendHalOemDataReq"));)
limSendHalOemDataReq(pMac);
}
return;
} /*** end limSendHalOemDataReq() ***/
#endif //FEATURE_OEM_DATA_SUPPORT
static void

View File

@ -771,12 +771,6 @@ void limSetChannel(tpAniSirGlobal pMac, tANI_U8 channel, tANI_U8 secChannelOffse
/// Function that completes channel scan
void limCompleteMlmScan(tpAniSirGlobal, tSirResultCodes);
#ifdef FEATURE_OEM_DATA_SUPPORT
/* Function that sets system into meas mode for oem data req */
void limSetOemDataReqMode(tpAniSirGlobal pMac, eHalStatus status, tANI_U32* data);
#endif
/// Function that sends TPC Request action frame
void limSendTpcRequestFrame(tpAniSirGlobal, tSirMacAddr, tpPESession psessionEntry);