qcacld-3.0: Remove eWNI_SME_READY_TO_SUSPEND_IND handling

Change Iba16643adf1cbd997138c740345e40c00c8e81f6 ("qcacld-3.0: Add
Suspend and Resume support in PMO") removed the logic which sent the
eWNI_SME_READY_TO_SUSPEND_IND message. However it left behind the
handler function in SME which will now never be called. Since this
message is now unused, remove the remaining infrastructure that
originally supported this message.

Change-Id: I91ef442eeb3fd0bb6dc3cccd803c77329b0c730f
CRs-Fixed: 2370880
This commit is contained in:
Jeff Johnson 2018-12-17 19:23:45 -08:00 • committed by nshrivas
commit 471d77088e
5 changed files with 0 additions and 45 deletions

View file

@ -809,8 +809,6 @@ struct mac_context {
struct csr_scanstruct scan;
struct csr_roamstruct roam;
tRrmContext rrm;
csr_readyToSuspendCallback readyToSuspendCallback;
void *readyToSuspendContext;
uint8_t isCoalesingInIBSSAllowed;
uint8_t lteCoexAntShare;
uint8_t beacon_offload;

View file

@ -3090,11 +3090,6 @@ typedef struct {
tSirPeerInfoRspParams ibssPeerInfoRspParams;
} tSirIbssGetPeerInfoRspParams, *tpSirIbssGetPeerInfoRspParams;
typedef struct {
uint16_t mesgType;
uint16_t mesgLen;
bool suspended;
} tSirReadyToSuspendInd, *tpSirReadyToSuspendInd;
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
typedef struct {
uint16_t mesgType;

View file

@ -147,7 +147,6 @@ enum eWniMsgTypes {
eWNI_SME_GET_TSM_STATS_RSP,
eWNI_SME_TSM_IE_IND,
eWNI_SME_READY_TO_SUSPEND_IND,
/* DFS EVENTS */
eWNI_SME_DFS_RADAR_FOUND, /* RADAR found indication from DFS */
eWNI_SME_CHANNEL_CHANGE_REQ, /* Channel Change Request from SAP */

View file

@ -330,7 +330,6 @@ uint8_t *mac_trace_get_sme_msg_string(uint16_t sme_msg)
CASE_RETURN_STRING(eWNI_SME_GET_TSM_STATS_REQ);
CASE_RETURN_STRING(eWNI_SME_GET_TSM_STATS_RSP);
CASE_RETURN_STRING(eWNI_SME_TSM_IE_IND);
CASE_RETURN_STRING(eWNI_SME_READY_TO_SUSPEND_IND);
CASE_RETURN_STRING(eWNI_SME_SET_HW_MODE_REQ);
CASE_RETURN_STRING(eWNI_SME_SET_HW_MODE_RESP);
CASE_RETURN_STRING(eWNI_SME_HW_MODE_TRANS_IND);

View file

@ -1075,34 +1075,6 @@ QDF_STATUS sme_update_roam_params(mac_handle_t mac_handle,
return 0;
}
/**
* sme_process_ready_to_suspend() -
* @mac: Global MAC context
* @pReadyToSuspend: Parameter received along with ready to suspend
* indication from WMA.
*
* On getting ready to suspend indication, this function calls
* callback registered (HDD callbacks) with SME to inform ready
* to suspend indication.
*
* Return: None
*/
static void sme_process_ready_to_suspend(struct mac_context *mac,
tpSirReadyToSuspendInd pReadyToSuspend)
{
if (NULL == mac) {
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_FATAL,
"%s: mac is null", __func__);
return;
}
if (NULL != mac->readyToSuspendCallback) {
mac->readyToSuspendCallback(mac->readyToSuspendContext,
pReadyToSuspend->suspended);
mac->readyToSuspendCallback = NULL;
}
}
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
/**
@ -2082,14 +2054,6 @@ QDF_STATUS sme_process_msg(struct mac_context *mac, struct scheduler_msg *pMsg)
sme_err("Empty message for: %d", pMsg->type);
}
break;
case eWNI_SME_READY_TO_SUSPEND_IND:
if (pMsg->bodyptr) {
sme_process_ready_to_suspend(mac, pMsg->bodyptr);
qdf_mem_free(pMsg->bodyptr);
} else {
sme_err("Empty message for: %d", pMsg->type);
}
break;
#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
case eWNI_SME_READY_TO_EXTWOW_IND:
if (pMsg->bodyptr) {