diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2018-09-06 17:53:52 -0700 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-09-07 02:00:55 -0700 |
| commit | ea424b0db3ba5f73e4a08c5de3559031df2f309f (patch) | |
| tree | 83a7487768a5172c35b25757de685a4b4f7013df | |
| parent | 568724ff1b5e84e31ba91dfa698f3a0267c81b6a (diff) | |
qcacld-3.0: Remove obsolete struct sSirSmeNeighborBssInd
Remove obsolete struct sSirSmeNeighborBssInd and
lim_send_sme_neighbor_bss_ind.
Change-Id: Id106f4ec106ba8debd5b7d6dcbda01407c2b7cf4
CRs-Fixed: 2310703
| -rw-r--r-- | core/mac/inc/sir_api.h | 10 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_sme_rsp_messages.c | 79 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_send_sme_rsp_messages.h | 1 |
3 files changed, 0 insertions, 90 deletions
diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index 486425b10308..6d29ed76f973 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -1867,16 +1867,6 @@ typedef struct sSirSmeSwitchChannelInd { struct qdf_mac_addr bssid; /* BSSID */ } tSirSmeSwitchChannelInd, *tpSirSmeSwitchChannelInd; -/* / Definition for Neighbor BSS indication */ -/* / MAC ---> */ -/* / MAC reports this each time a new I/BSS is detected */ -typedef struct sSirSmeNeighborBssInd { - uint16_t messageType; /* eWNI_SME_NEIGHBOR_BSS_IND */ - uint16_t length; - uint8_t sessionId; - tSirBssDescription bssDescription[1]; -} tSirSmeNeighborBssInd, *tpSirSmeNeighborBssInd; - /* / Definition for MIC failure indication */ /* / MAC ---> */ /* / MAC reports this each time a MIC failure occures on Rx TKIP packet */ diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c index 933972ad11c5..d884e66494c3 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c @@ -1668,85 +1668,6 @@ lim_send_sme_set_context_rsp(tpAniSirGlobal pMac, pMac->lim.sme_msg_callback(pMac, &msg); } /*** 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) -{ - tSirMsgQ msgQ; - 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. diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h index 4082040cc54f..1c00c2a14d39 100644 --- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h +++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h @@ -77,7 +77,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, tpSirMsgQ MsgQ); void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, tpSirMsgQ msg); |
