Sfoglia il codice sorgente

qcacld-3.0: Remove unused data structures related to OEM message

Remove unused data structures related to OEM message

Change-Id: I33c5190b78ffff2bf160e57a6edaf4b67189062c
CRs-Fixed: 1038872
Krishna Kumaar Natarajan 8 anni fa
parent
commit
bbbf2ef17b

+ 0 - 3
Kbuild

@@ -592,8 +592,6 @@ SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
 		$(SME_SRC_DIR)/common/sme_power_save.o \
 		$(SME_SRC_DIR)/common/sme_trace.o
 
-SME_OEM_DATA_OBJS := $(SME_SRC_DIR)/oem_data/oem_data_api.o
-
 SME_P2P_OBJS = $(SME_SRC_DIR)/p2p/p2p_api.o
 
 SME_RRM_OBJS := $(SME_SRC_DIR)/rrm/sme_rrm.o
@@ -608,7 +606,6 @@ endif
 
 SME_OBJS :=	$(SME_CMN_OBJS) \
 		$(SME_CSR_OBJS) \
-		$(SME_OEM_DATA_OBJS) \
 		$(SME_P2P_OBJS) \
 		$(SME_QOS_OBJS) \
 		$(SME_RRM_OBJS) \

+ 0 - 7
core/mac/inc/ani_global.h

@@ -47,10 +47,6 @@
 #include "sap_api.h"
 #include "csr_internal.h"
 
-#ifdef FEATURE_OEM_DATA_SUPPORT
-#include "oem_data_internal.h"
-#endif
-
 #include "sme_rrm_internal.h"
 #include "rrm_global.h"
 #include "p2p_api.h"
@@ -930,9 +926,6 @@ typedef struct sAniSirGlobal {
 	tCsrScanStruct scan;
 	tCsrRoamStruct roam;
 
-#ifdef FEATURE_OEM_DATA_SUPPORT
-	tOemDataStruct oemData;
-#endif
 	tRrmContext rrm;
 #ifdef WLAN_FEATURE_CONCURRENT_P2P
 	tp2pContext p2pContext[MAX_NO_OF_P2P_SESSIONS];

+ 0 - 59
core/sme/inc/oem_data_api.h

@@ -1,59 +0,0 @@
-/*
- * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
- *
- * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
- *
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * This file was originally distributed by Qualcomm Atheros, Inc.
- * under proprietary terms before Copyright ownership was assigned
- * to the Linux Foundation.
- */
-
-#ifdef FEATURE_OEM_DATA_SUPPORT
-
-/**
- * \file oem_data_api.h
- *
- * Exports and types for the Common OEM DATA REQ/RSP Module interfaces.
- */
-
-#ifndef __OEM_DATA_API_H__
-#define __OEM_DATA_API_H__
-#include "sir_api.h"
-#include "sir_mac_prot_def.h"
-#include "csr_link_list.h"
-
-typedef enum {
-	eOEM_DATA_REQ_SUCCESS = 1,
-	eOEM_DATA_REQ_FAILURE,
-	eOEM_DATA_REQ_INVALID_MODE,
-} eOemDataReqStatus;
-
-QDF_STATUS oem_data_oem_data_req_open(tHalHandle hHal);
-QDF_STATUS oem_data_oem_data_req_close(tHalHandle hHal);
-
-/*
- * HDD Callback function for the sme to callback when
- * the oem data rsp is available
- */
-typedef void (*sme_send_oem_data_rsp_msg)(tSirOemDataRsp *);
-
-#endif /* _OEM_DATA_API_H__ */
-
-#endif /* FEATURE_OEM_DATA_SUPPORT */

+ 0 - 51
core/sme/inc/oem_data_internal.h

@@ -1,51 +0,0 @@
-/*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
- *
- * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
- *
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * This file was originally distributed by Qualcomm Atheros, Inc.
- * under proprietary terms before Copyright ownership was assigned
- * to the Linux Foundation.
- */
-
-#ifdef FEATURE_OEM_DATA_SUPPORT
-
-/**
- *
- * \file oem_data_internal.h
- *
- * Exports and types for the Common OEM DATA REQ/RSP Module interfaces.
- */
-
-#ifndef __OEM_DATA_INTERNAL_H__
-#define __OEM_DATA_INTERNAL_H__
-
-#include "csr_support.h"
-#include "cds_reg_service.h"
-#include "oem_data_api.h"
-
-typedef struct tagOemDataStruct {
-	/* callback for sending data response to oem application */
-	sme_send_oem_data_rsp_msg oem_data_rsp_callback;
-} tOemDataStruct;
-
-#endif /* __OEM_DATA_INTERNAL_H__ */
-
-#endif /* FEATURE_OEM_DATA_SUPPORT */

+ 0 - 4
core/sme/inc/sme_api.h

@@ -48,10 +48,6 @@
 #include "sme_internal.h"
 #include "wma_tgt_cfg.h"
 
-#ifdef FEATURE_OEM_DATA_SUPPORT
-#include "oem_data_api.h"
-#endif
-
 #include "sme_rrm_internal.h"
 #include "sir_types.h"
 /*--------------------------------------------------------------------------

+ 0 - 4
core/sme/inc/sme_inside.h

@@ -47,10 +47,6 @@
 #include "sme_qos_api.h"
 #include "sme_qos_internal.h"
 
-#ifdef FEATURE_OEM_DATA_SUPPORT
-#include "oem_data_internal.h"
-#endif
-
 #include "sme_rrm_api.h"
 ePhyChanBondState csr_convert_cb_ini_value_to_phy_cb_state(uint32_t cbIniValue);
 

+ 2 - 0
core/sme/inc/sme_internal.h

@@ -153,6 +153,7 @@ typedef void (*preferred_network_found_ind_cb)(void *callback_context,
 typedef void (*ocb_callback)(void *context, void *response);
 typedef void (*sme_set_thermal_level_callback)(void *context, u_int8_t level);
 typedef void (*p2p_lo_callback)(void *context, void *event);
+typedef void (*sme_send_oem_data_rsp_msg)(tSirOemDataRsp *);
 
 typedef struct tagSmeStruct {
 	eSmeState state;
@@ -242,6 +243,7 @@ typedef struct tagSmeStruct {
 			struct sir_bpf_get_offload *);
 	p2p_lo_callback p2p_lo_event_callback;
 	void *p2p_lo_event_context;
+	sme_send_oem_data_rsp_msg oem_data_rsp_callback;
 } tSmeStruct, *tpSmeStruct;
 
 #endif /* #if !defined( __SMEINTERNAL_H ) */

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

@@ -1122,15 +1122,6 @@ QDF_STATUS sme_open(tHalHandle hHal)
 		sms_log(pMac, LOGE, FL("Qos open, status=%d"), status);
 		return status;
 	}
-#endif
-#ifdef FEATURE_OEM_DATA_SUPPORT
-	status = oem_data_oem_data_req_open(pMac);
-	if (!QDF_IS_STATUS_SUCCESS(status)) {
-		sms_log(pMac, LOGE,
-			FL("oem_data_oem_data_req_open, status=%d"),
-			status);
-		return status;
-	}
 #endif
 	status = init_sme_cmd_list(pMac);
 	if (!QDF_IS_STATUS_SUCCESS(status))
@@ -3198,15 +3189,6 @@ QDF_STATUS sme_close(tHalHandle hHal)
 			status);
 		fail_status = status;
 	}
-#endif
-#ifdef FEATURE_OEM_DATA_SUPPORT
-	status = oem_data_oem_data_req_close(hHal);
-	if (!QDF_IS_STATUS_SUCCESS(status)) {
-		sms_log(pMac, LOGE,
-			"OEM DATA REQ close failed during sme close with status=%d",
-			status);
-		fail_status = status;
-	}
 #endif
 	status = sme_ps_close(hHal);
 	if (!QDF_IS_STATUS_SUCCESS(status)) {
@@ -4751,7 +4733,7 @@ QDF_STATUS sme_register_oem_data_rsp_callback(tHalHandle h_hal,
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
 	tpAniSirGlobal pmac = PMAC_STRUCT(h_hal);
 
-	pmac->oemData.oem_data_rsp_callback = callback;
+	pmac->sme.oem_data_rsp_callback = callback;
 
 	return status;
 
@@ -4775,7 +4757,7 @@ void  sme_deregister_oem_data_rsp_callback(tHalHandle h_hal)
 	}
 	pmac = PMAC_STRUCT(h_hal);
 
-	pmac->oemData.oem_data_rsp_callback = NULL;
+	pmac->sme.oem_data_rsp_callback = NULL;
 }
 #endif
 

+ 0 - 97
core/sme/src/oem_data/oem_data_api.c

@@ -1,97 +0,0 @@
-/*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
- *
- * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
- *
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * This file was originally distributed by Qualcomm Atheros, Inc.
- * under proprietary terms before Copyright ownership was assigned
- * to the Linux Foundation.
- */
-
-#ifdef FEATURE_OEM_DATA_SUPPORT
-/** ------------------------------------------------------------------------- *
-    ------------------------------------------------------------------------- *
-
-    \file oem_data_api.c
-
-    Implementation for the OEM DATA REQ/RSP interfaces.
-   ========================================================================== */
-#include "ani_global.h"
-#include "oem_data_api.h"
-#include "cds_mq.h"
-#include "sme_inside.h"
-#include "sms_debug.h"
-#include "qdf_util.h"
-
-#include "csr_support.h"
-
-#include "host_diag_core_log.h"
-#include "host_diag_core_event.h"
-
-/* ---------------------------------------------------------------------------
-    \fn oem_data_oem_data_req_open
-    \brief This function must be called before any API call to (OEM DATA REQ/RSP module)
-    \return QDF_STATUS
-   -------------------------------------------------------------------------------*/
-
-QDF_STATUS oem_data_oem_data_req_open(tHalHandle hHal)
-{
-	QDF_STATUS status = QDF_STATUS_SUCCESS;
-	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
-
-	do {
-		/* initialize all the variables to null */
-		qdf_mem_set(&(pMac->oemData), sizeof(tOemDataStruct), 0);
-		if (!QDF_IS_STATUS_SUCCESS(status)) {
-			sms_log(pMac, LOGE,
-				"oem_data_oem_data_req_open: Cannot allocate memory for the timer function");
-			break;
-		}
-	} while (0);
-
-	return status;
-}
-
-/* ---------------------------------------------------------------------------
-    \fn oem_data_oem_data_req_close
-    \brief This function must be called before closing the csr module
-    \return QDF_STATUS
-   -------------------------------------------------------------------------------*/
-
-QDF_STATUS oem_data_oem_data_req_close(tHalHandle hHal)
-{
-	QDF_STATUS status = QDF_STATUS_SUCCESS;
-	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
-
-	do {
-		if (!QDF_IS_STATUS_SUCCESS(status)) {
-			sms_log(pMac, LOGE,
-				"oem_data_oem_data_req_close: Failed in oem_data_oem_data_req_close at StopTimers");
-			break;
-		}
-
-		/* initialize all the variables to null */
-		qdf_mem_set(&(pMac->oemData), sizeof(tOemDataStruct), 0);
-
-	} while (0);
-
-	return QDF_STATUS_SUCCESS;
-}
-#endif

+ 2 - 2
core/wma/src/wma_features.c

@@ -1649,7 +1649,7 @@ int wma_oem_data_response_handler(void *handle,
 		return -EINVAL;
 	}
 
-	if (!pmac->oemData.oem_data_rsp_callback) {
+	if (!pmac->sme.oem_data_rsp_callback) {
 		WMA_LOGE(FL("Callback not registered"));
 		return -EINVAL;
 	}
@@ -1698,7 +1698,7 @@ int wma_oem_data_response_handler(void *handle,
 
 	WMA_LOGI(FL("Sending OEM_DATA_RSP(len: %d) to upper layer"), datalen);
 
-	pmac->oemData.oem_data_rsp_callback(oem_rsp);
+	pmac->sme.oem_data_rsp_callback(oem_rsp);
 
 	if (oem_rsp->data)
 		qdf_mem_free(oem_rsp->data);