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
diff --git a/wmi_unified_api.c b/wmi_unified_api.c
index bd3ebd2..6b750d8 100644
--- a/wmi_unified_api.c
+++ b/wmi_unified_api.c
@@ -1101,25 +1101,6 @@
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
/**
diff --git a/wmi_unified_bcn_api.c b/wmi_unified_bcn_api.c
new file mode 100644
index 0000000..b90ba27
--- /dev/null
+++ b/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;
+}