Ver Fonte

qcacmn: Create header file for wmi_unified_bcn_buf_ll_cmd

wmi_unified_bcn_buf_ll_cmd in wmi_unified.h had compilation flag
CONFIG_MCL. To get rid of the compilation flag, a separate header
file is created

Change-Id: I0bbcdf749f461f6880aacc1e3ef4e8e8fdc08ff6
CRs-Fixed: 2366773
Harprit Chhabada há 6 anos atrás
pai
commit
6407dc4721

+ 0 - 5
wmi/inc/wmi_unified_api.h

@@ -655,11 +655,6 @@ QDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
 QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl,
 		struct wmi_peer_rate_report_params *rate_report_params);
 
-#ifdef CONFIG_MCL
-QDF_STATUS wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
-			wmi_bcn_send_from_host_cmd_fixed_param *param);
-#endif
-
 QDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
 		     uint8_t vdev_id, bool mu_edca_param,
 		     struct wmi_host_wme_vparams wmm_vparams[WMI_MAX_NUM_AC]);

+ 43 - 0
wmi/inc/wmi_unified_bcn_api.h

@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
+ *
+ * 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 contains the API definitions for the Unified Wireless Module
+ * Interface (WMI) specific to beacon component
+ */
+
+#ifndef _WMI_UNIFIED_BCN_API_H_
+#define _WMI_UNIFIED_BCN_API_H_
+
+#include "wmi_unified_param.h"
+#include "wmi_unified.h"
+#include "wmi_unified_priv.h"
+
+/**
+ * wmi_unified_bcn_buf_ll_cmd() - prepare and send beacon buffer to fw for LL
+ * @wmi_hdl: wmi handle
+ * @param: bcn ll cmd parameter
+ *
+ * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
+ */
+
+QDF_STATUS
+wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
+			   wmi_bcn_send_from_host_cmd_fixed_param * param);
+#endif
+

+ 0 - 19
wmi/src/wmi_unified_api.c

@@ -1101,25 +1101,6 @@ QDF_STATUS wmi_unified_peer_rate_report_cmd(void *wmi_hdl,
 
 	return QDF_STATUS_E_FAILURE;
 }
-
-/**
- * wmi_unified_bcn_buf_ll_cmd() - prepare and send beacon buffer to fw for LL
- * @wmi_hdl: wmi handle
- * @param: bcn ll cmd parameter
- *
- * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
- */
-QDF_STATUS wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
-			wmi_bcn_send_from_host_cmd_fixed_param *param)
-{
-	wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
-
-	if (wmi_handle->ops->send_bcn_buf_ll_cmd)
-		return wmi_handle->ops->send_bcn_buf_ll_cmd(wmi_handle,
-						param);
-
-	return QDF_STATUS_E_FAILURE;
-}
 #endif
 
 /**

+ 44 - 0
wmi/src/wmi_unified_bcn_api.c

@@ -0,0 +1,44 @@
+
+/*
+ * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
+ *
+ * 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.
+ */
+/**
+ * DOC: Implement API's specific to concurrency component.
+ */
+
+#include "wmi_unified_bcn_api.h"
+
+/**
+ * wmi_unified_bcn_buf_ll_cmd() - prepare and send beacon buffer to fw for LL
+ * @wmi_hdl: wmi handle
+ * @param: bcn ll cmd parameter
+ *
+ * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
+ */
+
+QDF_STATUS
+wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
+			   wmi_bcn_send_from_host_cmd_fixed_param *param)
+{
+	wmi_unified_t wmi_handle = (wmi_unified_t)wmi_hdl;
+
+	if (wmi_handle->ops->send_bcn_buf_ll_cmd)
+		return wmi_handle->ops->send_bcn_buf_ll_cmd(wmi_handle,
+						param);
+
+	return QDF_STATUS_E_FAILURE;
+}