Selaa lähdekoodia

qcacmn: Add apis to fetch btwt and rtwt ini values

Add apis to get rtwt and btwt ini values.

Change-Id: I3f82dc93bce24f24ba2236c286b717dbb2d9b690
CRs-Fixed: 3449537
David Oladunjoye 2 vuotta sitten
vanhempi
sitoutus
c8d254437d
1 muutettua tiedostoa jossa 35 lisäystä ja 1 poistoa
  1. 35 1
      umac/twt/dispatcher/inc/wlan_twt_ucfg_ext_cfg.h

+ 35 - 1
umac/twt/dispatcher/inc/wlan_twt_ucfg_ext_cfg.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -86,6 +86,26 @@ ucfg_twt_cfg_get_24ghz_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
 QDF_STATUS
 QDF_STATUS
 ucfg_twt_cfg_get_bcast_requestor(struct wlan_objmgr_psoc *psoc, bool *val);
 ucfg_twt_cfg_get_bcast_requestor(struct wlan_objmgr_psoc *psoc, bool *val);
 
 
+/**
+ * ucfg_twt_cfg_get_bcast_responder() - Get TWT broadcast requestor
+ * @psoc: Pointer to global psoc object
+ * @val: pointer to output variable
+ *
+ * Return: QDF_STATUS_SUCCESS
+ */
+QDF_STATUS
+ucfg_twt_cfg_get_bcast_responder(struct wlan_objmgr_psoc *psoc, bool *val);
+
+/**
+ * ucfg_twt_cfg_get_rtwt_requestor() - Get restricted TWT requestor
+ * @psoc: Pointer to global psoc object
+ * @val: pointer to output variable
+ *
+ * Return: QDF_STATUS_SUCCESS
+ */
+QDF_STATUS
+ucfg_twt_cfg_get_rtwt_requestor(struct wlan_objmgr_psoc *psoc, bool *val);
+
 /**
 /**
  * ucfg_twt_cfg_get_flex_sched() - Get TWT flex scheduling
  * ucfg_twt_cfg_get_flex_sched() - Get TWT flex scheduling
  * @psoc: Pointer to global psoc object
  * @psoc: Pointer to global psoc object
@@ -139,6 +159,20 @@ ucfg_twt_cfg_get_bcast_requestor(struct wlan_objmgr_psoc *psoc, bool *val)
 	return QDF_STATUS_SUCCESS;
 	return QDF_STATUS_SUCCESS;
 }
 }
 
 
+static inline QDF_STATUS
+ucfg_twt_cfg_get_bcast_responder(struct wlan_objmgr_psoc *psoc, bool *val)
+{
+	*val = false;
+	return QDF_STATUS_SUCCESS;
+}
+
+static inline QDF_STATUS
+ucfg_twt_cfg_get_rtwt_requestor(struct wlan_objmgr_psoc *psoc, bool *val)
+{
+	*val = false;
+	return QDF_STATUS_SUCCESS;
+}
+
 static inline QDF_STATUS
 static inline QDF_STATUS
 ucfg_twt_cfg_get_flex_sched(struct wlan_objmgr_psoc *psoc, bool *val)
 ucfg_twt_cfg_get_flex_sched(struct wlan_objmgr_psoc *psoc, bool *val)
 {
 {