From a7aa17c012abc7f42aa7731f8565a27d86f25dce Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 16 Dec 2018 14:59:10 -0800 Subject: [PATCH] qcacld-3.0: Remove lim_get_noa_attr_stream_in_mult_p2p_ies() Function lim_get_noa_attr_stream_in_mult_p2p_ies() is unused, so remove it. Change-Id: Ib03f80bfc983cfa018bf6dbc55bde56072d55364 CRs-Fixed: 2370786 --- core/mac/src/pe/lim/lim_utils.c | 25 ------------------------- core/mac/src/pe/lim/lim_utils.h | 3 --- 2 files changed, 28 deletions(-) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 89ea6ded5133..07f8c754746d 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -5143,31 +5143,6 @@ uint8_t lim_build_p2p_ie(struct mac_context *mac, uint8_t *ie, uint8_t *data, return ie_len + SIR_P2P_IE_HEADER_LEN; } -/* Returns length of NoA stream and Pointer pNoaStream passed to this function is filled with noa stream */ - -uint8_t lim_get_noa_attr_stream_in_mult_p2p_ies(struct mac_context *mac, - uint8_t *noaStream, uint8_t noaLen, - uint8_t overFlowLen) -{ - uint8_t overFlowP2pStream[SIR_MAX_NOA_ATTR_LEN]; - - if ((noaLen <= (SIR_MAX_NOA_ATTR_LEN + SIR_P2P_IE_HEADER_LEN)) && - (noaLen >= overFlowLen) && (overFlowLen <= SIR_MAX_NOA_ATTR_LEN)) { - qdf_mem_copy(overFlowP2pStream, - noaStream + noaLen - overFlowLen, overFlowLen); - noaStream[noaLen - overFlowLen] = SIR_MAC_EID_VENDOR; - noaStream[noaLen - overFlowLen + 1] = - overFlowLen + SIR_MAC_P2P_OUI_SIZE; - qdf_mem_copy(noaStream + noaLen - overFlowLen + 2, - SIR_MAC_P2P_OUI, SIR_MAC_P2P_OUI_SIZE); - qdf_mem_copy(noaStream + noaLen + 2 + SIR_MAC_P2P_OUI_SIZE - - overFlowLen, overFlowP2pStream, overFlowLen); - } - - return noaLen + SIR_P2P_IE_HEADER_LEN; - -} - /* Returns length of NoA stream and Pointer pNoaStream passed to this function is filled with noa stream */ uint8_t lim_get_noa_attr_stream(struct mac_context *mac, uint8_t *pNoaStream, struct pe_session *pe_session) diff --git a/core/mac/src/pe/lim/lim_utils.h b/core/mac/src/pe/lim/lim_utils.h index 21b04cdd90a0..548b7e6039e1 100644 --- a/core/mac/src/pe/lim/lim_utils.h +++ b/core/mac/src/pe/lim/lim_utils.h @@ -530,9 +530,6 @@ void lim_handle_heart_beat_failure_timeout(struct mac_context *mac); wlan_get_vendor_ie_ptr_from_oui(SIR_MAC_P2P_OUI, \ SIR_MAC_P2P_OUI_SIZE, ie, ie_len) -uint8_t lim_get_noa_attr_stream_in_mult_p2p_ies(struct mac_context *mac, - uint8_t *noaStream, uint8_t noaLen, - uint8_t overFlowLen); uint8_t lim_get_noa_attr_stream(struct mac_context *mac, uint8_t *pNoaStream, struct pe_session *pe_session);