Browse Source

qcacld-3.0: Remove unused message types

lim_process_message() function references to unused
message types that starts with eWNI_PMC*.

Cleanup the code and remove the unused message type
references from the code.

Change-Id: I5c88cb2544f74cb8c5e05b9178071ddbfaf2de23
Depends-on: 1727734
CRs-Fixed: 1071366
Ankit Gupta 8 years ago
parent
commit
d97be64489

+ 0 - 5
core/mac/inc/wni_api.h

@@ -108,11 +108,6 @@ enum eWniMsgTypes {
 	eWNI_SME_UPDATE_NOA,
 	eWNI_SME_CLEAR_DFS_CHANNEL_LIST,
 	eWNI_SME_GET_SNR_REQ,
-	/* General Power Save Messages */
-	eWNI_PMC_MSG_TYPES_BEGIN,
-
-	/* WOWL Messages */
-	eWNI_PMC_SMPS_STATE_IND,
 
 	eWNI_SME_RRM_MSG_TYPE_BEGIN,
 

+ 0 - 7
core/mac/src/pe/lim/lim_process_message_queue.c

@@ -1524,13 +1524,6 @@ static void lim_process_messages(tpAniSirGlobal mac_ctx, tpSirMsgQ msg)
 		/* These messages are from HDD.No need to respond to HDD */
 		lim_process_normal_hdd_msg(mac_ctx, msg, false);
 		break;
-
-	case eWNI_PMC_SMPS_STATE_IND:
-		if (msg->bodyptr) {
-			qdf_mem_free(msg->bodyptr);
-			msg->bodyptr = NULL;
-		}
-		break;
 	case eWNI_SME_SEND_ACTION_FRAME_IND:
 		lim_send_p2p_action_frame(mac_ctx, msg);
 		qdf_mem_free(msg->bodyptr);

+ 0 - 4
core/mac/src/sys/legacy/src/utils/src/mac_trace.c

@@ -286,10 +286,6 @@ uint8_t *mac_trace_get_sme_msg_string(uint16_t sme_msg)
 		CASE_RETURN_STRING(eWNI_SME_CLEAR_DFS_CHANNEL_LIST);
 		CASE_RETURN_STRING(eWNI_SME_GET_SNR_REQ);
 		CASE_RETURN_STRING(eWNI_SME_LINK_STATUS_IND);
-
-		CASE_RETURN_STRING(eWNI_PMC_MSG_TYPES_BEGIN);
-
-		CASE_RETURN_STRING(eWNI_PMC_SMPS_STATE_IND);
 		CASE_RETURN_STRING(eWNI_SME_RRM_MSG_TYPE_BEGIN);
 		CASE_RETURN_STRING(eWNI_SME_NEIGHBOR_REPORT_REQ_IND);
 		CASE_RETURN_STRING(eWNI_SME_NEIGHBOR_REPORT_IND);

+ 0 - 2
core/sme/src/common/sme_api.c

@@ -2594,8 +2594,6 @@ QDF_STATUS sme_process_msg(tHalHandle hHal, cds_msg_t *pMsg)
 		qdf_mem_free(pMsg->bodyptr);
 		break;
 #endif
-	case eWNI_PMC_SMPS_STATE_IND:
-		break;
 	case WNI_CFG_SET_CNF:
 	case WNI_CFG_DNLD_CNF:
 	case WNI_CFG_GET_RSP: