Browse Source

qcacld-3.0: target_if: Add TWT componentization public structs and files

Add TWT componentization public structs, files and skeleton code.

Change-Id: I9b929f87d172faf27bc54f37eee911e0d0f5086c
CRs-Fixed: 3085498
Srinivas Girigowda 3 years ago
parent
commit
7aad8411ab

+ 14 - 2
components/target_if/cp_stats/src/target_if_mc_cp_stats.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. 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
@@ -45,7 +45,19 @@
 #include "son_api.h"
 #endif
 
-#ifdef WLAN_SUPPORT_TWT
+#if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED)
+static QDF_STATUS
+target_if_twt_session_params_unregister_evt_hdlr(struct wlan_objmgr_psoc *psoc)
+{
+	return QDF_STATUS_SUCCESS;
+}
+
+static QDF_STATUS
+target_if_twt_session_params_register_evt_hdlr(struct wlan_objmgr_psoc *psoc)
+{
+	return QDF_STATUS_SUCCESS;
+}
+#elif defined(WLAN_SUPPORT_TWT) && !defined(WLAN_TWT_CONV_SUPPORTED)
 
 #include <wmi.h>
 #include <wlan_cp_stats_mc_ucfg_api.h>

+ 73 - 0
components/target_if/twt/src/target_if_ext_twt_cmd.c

@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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: target_if_ext_twt_cmd.c
+ *  This file contains twt component's target related function definitions
+ */
+#include <wlan_twt_public_structs.h>
+#include <wlan_lmac_if_def.h>
+#include <target_if.h>
+#include <target_if_ext_twt.h>
+#include <wmi_unified_twt_api.h>
+
+QDF_STATUS
+target_if_twt_setup_req(struct wlan_objmgr_psoc *psoc,
+			struct twt_add_dialog_param *req)
+{
+	return QDF_STATUS_SUCCESS;
+}
+
+QDF_STATUS
+target_if_twt_teardown_req(struct wlan_objmgr_psoc *psoc,
+			   struct twt_del_dialog_param *req)
+{
+	return QDF_STATUS_SUCCESS;
+}
+
+QDF_STATUS
+target_if_twt_pause_req(struct wlan_objmgr_psoc *psoc,
+			struct twt_pause_dialog_cmd_param *req)
+{
+	return QDF_STATUS_SUCCESS;
+}
+
+QDF_STATUS
+target_if_twt_resume_req(struct wlan_objmgr_psoc *psoc,
+			 struct twt_resume_dialog_cmd_param *req)
+{
+	return QDF_STATUS_SUCCESS;
+}
+
+QDF_STATUS
+target_if_twt_nudge_req(struct wlan_objmgr_psoc *psoc,
+			struct twt_nudge_dialog_cmd_param *req)
+{
+	return QDF_STATUS_SUCCESS;
+}
+
+QDF_STATUS
+target_if_twt_register_ext_tx_ops(struct wlan_lmac_if_twt_tx_ops *twt_tx_ops)
+{
+	twt_tx_ops->setup_req = target_if_twt_setup_req;
+	twt_tx_ops->teardown_req = target_if_twt_teardown_req;
+	twt_tx_ops->pause_req = target_if_twt_pause_req;
+	twt_tx_ops->resume_req = target_if_twt_resume_req;
+	twt_tx_ops->nudge_req = target_if_twt_nudge_req;
+
+	return QDF_STATUS_SUCCESS;
+}
+

+ 83 - 0
components/target_if/twt/src/target_if_ext_twt_evt.c

@@ -0,0 +1,83 @@
+/*
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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: target_if_ext_twt_evt.c
+ *  This file contains twt component's target related function definitions
+ */
+#include <qdf_util.h>
+#include <wlan_twt_public_structs.h>
+#include <wlan_lmac_if_def.h>
+#include <target_if.h>
+#include <target_if_ext_twt.h>
+#include <wlan_twt_api.h>
+#include "twt/core/src/wlan_twt_main.h"
+
+static int
+target_if_twt_setup_complete_event_handler(ol_scn_t scn, uint8_t *event,
+					   uint32_t len)
+{
+	return 0;
+}
+
+static int
+target_if_twt_teardown_complete_event_handler(ol_scn_t scn, uint8_t *event,
+					      uint32_t len)
+{
+	return 0;
+}
+
+static int
+target_if_twt_pause_complete_event_handler(ol_scn_t scn, uint8_t *event,
+					   uint32_t len)
+{
+	return 0;
+}
+
+static int
+target_if_twt_resume_complete_event_handler(ol_scn_t scn, uint8_t *event,
+					    uint32_t len)
+{
+	return 0;
+}
+
+static int
+target_if_twt_nudge_complete_event_handler(ol_scn_t scn, uint8_t *event,
+					   uint32_t len)
+{
+	return 0;
+}
+
+static int
+target_if_twt_notify_event_handler(ol_scn_t scn, uint8_t *event,
+				   uint32_t len)
+{
+	return 0;
+}
+
+static int
+target_if_twt_ack_complete_event_handler(ol_scn_t scn, uint8_t *event,
+					 uint32_t len)
+{
+	return 0;
+}
+
+QDF_STATUS
+target_if_twt_register_ext_events(struct wlan_objmgr_psoc *psoc)
+{
+	return QDF_STATUS_SUCCESS;
+}
+