Browse Source

qcacld-3.0: Remove lim_send_sme_neighbor_bss_ind()

lim_send_sme_neighbor_bss_ind() is unused so remove it and all related
data structures.

Change-Id: I373fb570f3b368dc79ce08b7acbc1026a7e19758
CRs-Fixed: 2213056
Jeff Johnson 7 years ago
parent
commit
abcb1106fe

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

@@ -81,7 +81,6 @@ enum eWniMsgTypes {
 	eWNI_SME_SWITCH_CHL_IND,
 	eWNI_SME_STOP_BSS_REQ,
 	eWNI_SME_STOP_BSS_RSP,
-	eWNI_SME_NEIGHBOR_BSS_IND,
 	eWNI_SME_DEAUTH_CNF,
 	eWNI_SME_MIC_FAILURE_IND,
 	eWNI_SME_ADDTS_REQ,

+ 0 - 6
core/mac/src/pe/include/lim_global.h

@@ -223,12 +223,6 @@ typedef struct sLimMlmJoinReq {
 	 */
 } tLimMlmJoinReq, *tpLimMlmJoinReq;
 
-typedef struct tLimScanResultNode tLimScanResultNode;
-struct tLimScanResultNode {
-	tLimScanResultNode *next;
-	tSirBssDescription bssDescription;
-};
-
 #ifdef FEATURE_OEM_DATA_SUPPORT
 
 /* OEM Data related structure definitions */

+ 0 - 79
core/mac/src/pe/lim/lim_send_sme_rsp_messages.c

@@ -1509,85 +1509,6 @@ lim_send_sme_set_context_rsp(tpAniSirGlobal pMac,
 	lim_sys_process_mmh_msg_api(pMac, &mmhMsg, ePROT);
 } /*** end lim_send_sme_set_context_rsp() ***/
 
-/**
- * lim_send_sme_neighbor_bss_ind()
- *
- ***FUNCTION:
- * This function is called by lim_lookup_nadd_hash_entry() to send
- * eWNI_SME_NEIGHBOR_BSS_IND message to host
- *
- ***PARAMS:
- *
- ***LOGIC:
- *
- ***ASSUMPTIONS:
- * NA
- *
- ***NOTE:
- * This function is used for sending eWNI_SME_NEIGHBOR_BSS_IND to
- * host upon detecting new BSS during background scanning if CFG
- * option is enabled for sending such indication
- *
- * @param  pMac - Pointer to Global MAC structure
- * @return None
- */
-
-void
-lim_send_sme_neighbor_bss_ind(tpAniSirGlobal pMac, tLimScanResultNode *pBssDescr)
-{
-	struct scheduler_msg msgQ = {0};
-	uint32_t val;
-	tSirSmeNeighborBssInd *pNewBssInd;
-
-	if ((pMac->lim.gLimSmeState != eLIM_SME_LINK_EST_WT_SCAN_STATE) ||
-	    ((pMac->lim.gLimSmeState == eLIM_SME_LINK_EST_WT_SCAN_STATE) &&
-	     pMac->lim.gLimRspReqd)) {
-		/* LIM is not in background scan state OR */
-		/* current scan is initiated by HDD. */
-		/* No need to send new BSS indication to HDD */
-		return;
-	}
-
-	if (wlan_cfg_get_int(pMac, WNI_CFG_NEW_BSS_FOUND_IND, &val) !=
-	    eSIR_SUCCESS) {
-		pe_err("could not get NEIGHBOR_BSS_IND from CFG");
-		return;
-	}
-
-	if (val == 0)
-		return;
-
-	/**
-	 * Need to indicate new BSSs found during
-	 * background scanning to host.
-	 * Allocate buffer for sending indication.
-	 * Length of buffer is length of BSS description
-	 * and length of header itself
-	 */
-	val = pBssDescr->bssDescription.length + sizeof(uint16_t) +
-		sizeof(uint32_t) + sizeof(uint8_t);
-	pNewBssInd = qdf_mem_malloc(val);
-	if (NULL == pNewBssInd) {
-		/* Log error */
-		pe_err("call to AllocateMemory failed for eWNI_SME_NEIGHBOR_BSS_IND");
-		return;
-	}
-
-	pNewBssInd->messageType = eWNI_SME_NEIGHBOR_BSS_IND;
-	pNewBssInd->length = (uint16_t) val;
-	pNewBssInd->sessionId = 0;
-
-	qdf_mem_copy((uint8_t *) pNewBssInd->bssDescription,
-		     (uint8_t *) &pBssDescr->bssDescription,
-		     pBssDescr->bssDescription.length + sizeof(uint16_t));
-
-	msgQ.type = eWNI_SME_NEIGHBOR_BSS_IND;
-	msgQ.bodyptr = pNewBssInd;
-	msgQ.bodyval = 0;
-	MTRACE(mac_trace(pMac, TRACE_CODE_TX_SME_MSG, NO_SESSION, msgQ.type));
-	lim_sys_process_mmh_msg_api(pMac, &msgQ, ePROT);
-} /*** end lim_send_sme_neighbor_bss_ind() ***/
-
 /** -----------------------------------------------------------------
    \brief lim_send_sme_addts_rsp() - sends SME ADDTS RSP
  \      This function sends a eWNI_SME_ADDTS_RSP to SME.

+ 0 - 1
core/mac/src/pe/lim/lim_send_sme_rsp_messages.h

@@ -64,7 +64,6 @@ void lim_send_sme_wm_status_change_ntf(tpAniSirGlobal, tSirSmeStatusChangeCode,
 				       uint32_t *, uint16_t, uint8_t);
 void lim_send_sme_set_context_rsp(tpAniSirGlobal, struct qdf_mac_addr, uint16_t,
 				  tSirResultCodes, tpPESession, uint8_t, uint16_t);
-void lim_send_sme_neighbor_bss_ind(tpAniSirGlobal, tLimScanResultNode *);
 void lim_handle_delete_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *MsgQ);
 void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx,
 				struct scheduler_msg *msg);

+ 0 - 2
core/mac/src/pe/lim/lim_utils.c

@@ -328,8 +328,6 @@ char *lim_msg_str(uint32_t msgType)
 		return "eWNI_SME_STOP_BSS_REQ";
 	case eWNI_SME_STOP_BSS_RSP:
 		return "eWNI_SME_STOP_BSS_RSP";
-	case eWNI_SME_NEIGHBOR_BSS_IND:
-		return "eWNI_SME_NEIGHBOR_BSS_IND";
 	case eWNI_SME_DEAUTH_CNF:
 		return "eWNI_SME_DEAUTH_CNF";
 	case eWNI_SME_ADDTS_REQ:

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

@@ -254,7 +254,6 @@ uint8_t *mac_trace_get_sme_msg_string(uint16_t sme_msg)
 		CASE_RETURN_STRING(eWNI_SME_SWITCH_CHL_IND);
 		CASE_RETURN_STRING(eWNI_SME_STOP_BSS_REQ);
 		CASE_RETURN_STRING(eWNI_SME_STOP_BSS_RSP);
-		CASE_RETURN_STRING(eWNI_SME_NEIGHBOR_BSS_IND);
 		CASE_RETURN_STRING(eWNI_SME_DEAUTH_CNF);
 		CASE_RETURN_STRING(eWNI_SME_MIC_FAILURE_IND);
 		CASE_RETURN_STRING(eWNI_SME_ADDTS_REQ);