Ver código fonte

qcacmn: Remove unused TWT API

Remove the below unused TWT API's:
-wlan_twt_tgt_caps_get_requestor
-wlan_twt_tgt_caps_get_bcast_req_support
-wlan_twt_tgt_caps_get_bcast_res_support
-wlan_twt_tgt_caps_get_requestor
-wlan_twt_tgt_caps_get_bcast_res_support
-ucfg_twt_get_requestor
-ucfg_twt_get_twt_bcast_req_support
-ucfg_twt_get_twt_bcast_res_support

Change-Id: I98b2f829a47ed727712828376ddb0c6eb1f02706
CRs-Fixed: 3397194
Pragaspathi Thilagaraj 2 anos atrás
pai
commit
daf6b01d39

+ 1 - 66
umac/twt/core/src/wlan_twt_common.c

@@ -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 any
  * purpose with or without fee is hereby granted, provided that the above
@@ -25,27 +25,6 @@
 #include <wlan_twt_tgt_if_tx_api.h>
 #include "twt/core/src/wlan_twt_cfg.h"
 
-QDF_STATUS
-wlan_twt_tgt_caps_get_requestor(struct wlan_objmgr_psoc *psoc, bool *val)
-{
-	struct twt_psoc_priv_obj *twt_psoc;
-
-	if (!psoc) {
-		twt_err("null psoc");
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	twt_psoc = wlan_objmgr_psoc_get_comp_private_obj(psoc,
-							 WLAN_UMAC_COMP_TWT);
-	if (!twt_psoc) {
-		twt_err("null twt psoc priv obj");
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	*val = twt_psoc->twt_caps.twt_requestor;
-	return QDF_STATUS_SUCCESS;
-}
-
 QDF_STATUS
 wlan_twt_tgt_caps_get_responder(struct wlan_objmgr_psoc *psoc, bool *val)
 {
@@ -89,50 +68,6 @@ wlan_twt_tgt_caps_get_legacy_bcast_support(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_twt_tgt_caps_get_bcast_req_support(struct wlan_objmgr_psoc *psoc,
-					bool *val)
-{
-	struct twt_psoc_priv_obj *twt_psoc;
-
-	if (!psoc) {
-		twt_err("null psoc");
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	twt_psoc = wlan_objmgr_psoc_get_comp_private_obj(psoc,
-							 WLAN_UMAC_COMP_TWT);
-	if (!twt_psoc) {
-		twt_err("null twt psoc priv obj");
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	*val = twt_psoc->twt_caps.twt_bcast_req_support;
-	return QDF_STATUS_SUCCESS;
-}
-
-QDF_STATUS
-wlan_twt_tgt_caps_get_bcast_res_support(struct wlan_objmgr_psoc *psoc,
-					bool *val)
-{
-	struct twt_psoc_priv_obj *twt_psoc;
-
-	if (!psoc) {
-		twt_err("null psoc");
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	twt_psoc = wlan_objmgr_psoc_get_comp_private_obj(psoc,
-							 WLAN_UMAC_COMP_TWT);
-	if (!twt_psoc) {
-		twt_err("null twt psoc priv obj");
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	*val = twt_psoc->twt_caps.twt_bcast_res_support;
-	return QDF_STATUS_SUCCESS;
-}
-
 QDF_STATUS
 wlan_twt_tgt_caps_get_nudge_enabled(struct wlan_objmgr_psoc *psoc,
 				    bool *val)

+ 2 - 23
umac/twt/core/src/wlan_twt_common.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 any
  * purpose with or without fee is hereby granted, provided that the above
@@ -21,16 +21,6 @@
 #include <wlan_objmgr_psoc_obj.h>
 #include <wlan_twt_public_structs.h>
 
-/**
- * wlan_twt_tgt_caps_get_requestor() - twt get requestor
- * @psoc: psoc handle
- * @val: pointer to the output variable
- *
- * return: QDF_STATUS
- */
-QDF_STATUS
-wlan_twt_tgt_caps_get_requestor(struct wlan_objmgr_psoc *psoc, bool *val);
-
 /**
  * wlan_twt_tgt_caps_get_responder() - twt get responder
  * @psoc: psoc handle
@@ -63,17 +53,6 @@ QDF_STATUS
 wlan_twt_tgt_caps_get_bcast_req_support(struct wlan_objmgr_psoc *psoc,
 					bool *val);
 
-/**
- * wlan_twt_tgt_caps_get_bcast_res_support() - get bcast responder support
- * @psoc: psoc handle
- * @val: pointer to the output variable
- *
- * return: QDF_STATUS
- */
-QDF_STATUS
-wlan_twt_tgt_caps_get_bcast_res_support(struct wlan_objmgr_psoc *psoc,
-					bool *val);
-
 /**
  * wlan_twt_tgt_caps_get_nudge_enabled() - get nudge enabled
  * @psoc: psoc handle
@@ -196,7 +175,7 @@ wlan_twt_set_peer_capabilities(struct wlan_objmgr_psoc *psoc,
 			       uint8_t peer_cap);
 
 /**
- * ucfg_twt_get_peer_capabilities() - get twt peer capabilities
+ * wlan_twt_get_peer_capabilities() - get twt peer capabilities
  * @psoc: psoc handle
  * @peer_mac: peer mac address
  * @peer_cap: Pointer to output variable to hold TWT peer capability bitmap.

+ 1 - 32
umac/twt/dispatcher/inc/wlan_twt_ucfg_api.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
  * any purpose with or without fee is hereby granted, provided that the
@@ -26,16 +26,6 @@
 #include <wlan_objmgr_psoc_obj.h>
 #include <wlan_twt_public_structs.h>
 
-/**
- * ucfg_twt_get_requestor() - twt get requestor
- * @psoc: psoc handle
- * @val: pointer to the output variable
- *
- * return: QDF_STATUS
- */
-QDF_STATUS
-ucfg_twt_get_requestor(struct wlan_objmgr_psoc *psoc, bool *val);
-
 /**
  * ucfg_twt_get_responder() - twt get responder
  * @psoc: psoc handle
@@ -57,27 +47,6 @@ QDF_STATUS
 ucfg_twt_get_legacy_bcast_twt_support(struct wlan_objmgr_psoc *psoc,
 				      bool *val);
 
-/**
- * ucfg_twt_get_twt_bcast_req_support() - get bcast requestor support
- * @psoc: psoc handle
- * @val: pointer to the output variable
- *
- * return: QDF_STATUS
- */
-QDF_STATUS
-ucfg_twt_get_twt_bcast_req_support(struct wlan_objmgr_psoc *psoc,
-				   bool *val);
-/**
- * ucfg_twt_get_twt_bcast_res_support() - get bcast responder support
- * @psoc: psoc handle
- * @val: pointer to the output variable
- *
- * return: QDF_STATUS
- */
-QDF_STATUS
-ucfg_twt_get_twt_bcast_res_support(struct wlan_objmgr_psoc *psoc,
-				   bool *val);
-
 /**
  * ucfg_twt_get_twt_nudge_enabled() - get twt nudge enabled
  * @psoc: psoc handle

+ 1 - 18
umac/twt/dispatcher/src/wlan_twt_ucfg_api.c

@@ -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 any
  * purpose with or without fee is hereby granted, provided that the above
@@ -21,11 +21,6 @@
 #include <wlan_twt_ucfg_api.h>
 #include "twt/core/src/wlan_twt_common.h"
 
-QDF_STATUS ucfg_twt_get_requestor(struct wlan_objmgr_psoc *psoc, bool *val)
-{
-	return wlan_twt_tgt_caps_get_requestor(psoc, val);
-}
-
 QDF_STATUS ucfg_twt_get_responder(struct wlan_objmgr_psoc *psoc, bool *val)
 {
 	return wlan_twt_tgt_caps_get_responder(psoc, val);
@@ -37,18 +32,6 @@ QDF_STATUS ucfg_twt_get_legacy_bcast_twt_support(struct wlan_objmgr_psoc *psoc,
 	return wlan_twt_tgt_caps_get_legacy_bcast_support(psoc, val);
 }
 
-QDF_STATUS ucfg_twt_get_twt_bcast_req_support(struct wlan_objmgr_psoc *psoc,
-						bool *val)
-{
-	return wlan_twt_tgt_caps_get_bcast_req_support(psoc, val);
-}
-
-QDF_STATUS ucfg_twt_get_twt_bcast_res_support(struct wlan_objmgr_psoc *psoc,
-						bool *val)
-{
-	return wlan_twt_tgt_caps_get_bcast_res_support(psoc, val);
-}
-
 QDF_STATUS ucfg_twt_get_twt_nudge_enabled(struct wlan_objmgr_psoc *psoc,
 					bool *val)
 {