Эх сурвалжийг харах

qcacmn: Replace pdev_id with mac_id for ucfg_dcs APIs

Replace pdev_id with mac_id for ucfg_dcs APIs and update
related documentation.

Change-Id: Ie0dbe992c113aac597dbb6820acd3faba3ac9f3c
CRs-Fixed: 2843510
Min Liu 4 жил өмнө
parent
commit
0671146738

+ 32 - 32
umac/dcs/dispatcher/inc/wlan_dcs_ucfg_api.h

@@ -38,13 +38,13 @@
 /**
  * typedef dcs_callback() - DCS callback
  * @psoc: Pointer to psoc
- * @pdev_id: pdev id
+ * @mac_id: mac id
  * @interference_type: interference type
  * @arg: list of arguments
  */
 typedef void (*dcs_callback)(
 		struct wlan_objmgr_psoc *psoc,
-		uint8_t pdev_id,
+		uint8_t mac_id,
 		uint8_t interference_type,
 		void *arg);
 
@@ -67,22 +67,22 @@ void ucfg_dcs_register_cb(
 /**
  * ucfg_dcs_register_user_cb() - API to register dcs user callback
  * @psoc: pointer to psoc object
- * @pdev_id: pdev id
+ * @mac_id: mac id
  * @vdev_id: vdev id
  * @cb: dcs user callback to be registered
  *
  * Return: None
  */
 void ucfg_dcs_register_user_cb(struct wlan_objmgr_psoc *psoc,
-			 uint8_t pdev_id, uint8_t vdev_id,
-			 void (*cb)(uint8_t vdev_id,
-				    struct wlan_host_dcs_im_user_stats *stats,
-				    int status));
+			       uint8_t mac_id, uint8_t vdev_id,
+			       void (*cb)(uint8_t vdev_id,
+				      struct wlan_host_dcs_im_user_stats *stats,
+				      int status));
 
 /**
  * ucfg_wlan_dcs_cmd(): API to send dcs command
  * @psoc: pointer to psoc object
- * @pdev_id: pdev_id
+ * @mac_id: mac id
  * @is_host_pdev_id: pdev_id is host id or not
  *
  * This function gets called to send dcs command
@@ -91,13 +91,13 @@ void ucfg_dcs_register_user_cb(struct wlan_objmgr_psoc *psoc,
  */
 QDF_STATUS
 ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc,
-		  uint32_t pdev_id,
+		  uint32_t mac_id,
 		  bool is_host_pdev_id);
 
 /**
  * ucfg_config_dcs_enable() - API to config dcs enable
  * @psoc: pointer to psoc object
- * @pdev_id: pdev id
+ * @mac_id: mac id
  * @interference_type: CAP_DCS_CWIM, CAP_DCS_WLANIM, CAP_DCS_MASK
  *
  * This function gets called to config dcs enable
@@ -105,13 +105,13 @@ ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc,
  * Return: None
  */
 void ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc,
-			    uint32_t pdev_id,
+			    uint32_t mac_id,
 			    uint8_t interference_type);
 
 /**
  * ucfg_config_dcs_disable() - API to config dcs disable
  * @psoc: pointer to psoc object
- * @pdev_id: pdev id
+ * @mac_id: mac id
  * @interference_type: CAP_DCS_CWIM, CAP_DCS_WLANIM, CAP_DCS_MASK
  *
  * This function gets called to config dcs disable
@@ -119,37 +119,37 @@ void ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc,
  * Return: None
  */
 void ucfg_config_dcs_disable(struct wlan_objmgr_psoc *psoc,
-			     uint32_t pdev_id,
+			     uint32_t mac_id,
 			     uint8_t interference_type);
 
 /**
  * ucfg_get_dcs_enable() - API to get dcs enable
  * @psoc: pointer to psoc object
- * @pdev_id: pdev id
+ * @mac_id: mac id
  *
  * This function gets called to get current host
  * config dcs enable/disable status
  *
  * Return: WLANIM/CWIM enable status
  */
-uint8_t ucfg_get_dcs_enable(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id);
+uint8_t ucfg_get_dcs_enable(struct wlan_objmgr_psoc *psoc, uint8_t mac_id);
 
 /**
  * ucfg_dcs_clear() - API to clear dcs related information
  * @psoc: pointer to psoc object
- * @pdev_id: pdev id
+ * @mac_id: mac id
  *
  * This function gets called to clear dcs related information
  *
  * Return: None
  */
-void ucfg_dcs_clear(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id);
+void ucfg_dcs_clear(struct wlan_objmgr_psoc *psoc, uint32_t mac_id);
 
 /**
  * ucfg_config_dcs_event_data() - config dcs event data to do algorithm
  * process or not
  * @psoc: psoc pointer
- * @pdev_id: pdev_id
+ * @mac_id: mac id
  * @dcs_algorithm_process: dcs algorithm process or not
  *
  * The function gets called to config dcs event data to do algorithm
@@ -157,27 +157,27 @@ void ucfg_dcs_clear(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id);
  *
  * Return: None
  */
-void ucfg_config_dcs_event_data(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
+void ucfg_config_dcs_event_data(struct wlan_objmgr_psoc *psoc, uint32_t mac_id,
 				bool dcs_algorithm_process);
 
 /*
  * ucfg_dcs_reset_user_stats() - API to reset dcs user stats
  * @psoc: pointer to psoc object
- * @pdev_id: pdev id
+ * @mac_id: mac id
  *
  * Return: None
  */
-void ucfg_dcs_reset_user_stats(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id);
+void ucfg_dcs_reset_user_stats(struct wlan_objmgr_psoc *psoc, uint8_t mac_id);
 
 /**
  * ucfg_dcs_set_user_request() - API to set dcs user stats request counter
  * @psoc: pointer to psoc object
- * @pdev_id: pdev id
+ * @mac_id: mac id
  * @user_request_count: user stats request counter
  *
  * Return: None
  */
-void ucfg_dcs_set_user_request(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id,
+void ucfg_dcs_set_user_request(struct wlan_objmgr_psoc *psoc, uint8_t mac_id,
 			       uint32_t user_request_count);
 #else
 static inline void
@@ -187,7 +187,7 @@ ucfg_dcs_register_cb(struct wlan_objmgr_psoc *psoc, dcs_callback cbk, void *arg)
 
 static inline void
 ucfg_dcs_register_user_cb(struct wlan_objmgr_psoc *psoc,
-			  uint8_t pdev_id, uint8_t vdev_id,
+			  uint8_t mac_id, uint8_t vdev_id,
 			  void (*cb)(uint8_t vdev_id,
 				     struct wlan_host_dcs_im_user_stats *stats,
 				     int status))
@@ -195,48 +195,48 @@ ucfg_dcs_register_user_cb(struct wlan_objmgr_psoc *psoc,
 }
 
 static inline QDF_STATUS
-ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
+ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc, uint32_t mac_id,
 		  bool is_host_pdev_id)
 {
 	return QDF_STATUS_SUCCESS;
 }
 
 static inline void
-ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
+ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc, uint32_t mac_id,
 		       uint8_t interference_type)
 {
 }
 
 static inline void
-ucfg_config_dcs_disable(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
+ucfg_config_dcs_disable(struct wlan_objmgr_psoc *psoc, uint32_t mac_id,
 			uint8_t interference_type)
 {
 }
 
 static inline uint8_t
-ucfg_get_dcs_enable(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id)
+ucfg_get_dcs_enable(struct wlan_objmgr_psoc *psoc, uint8_t mac_id)
 {
 	return 0;
 }
 
 static inline void
-ucfg_dcs_clear(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id)
+ucfg_dcs_clear(struct wlan_objmgr_psoc *psoc, uint32_t mac_id)
 {
 }
 
 static inline void
-ucfg_config_dcs_event_data(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
+ucfg_config_dcs_event_data(struct wlan_objmgr_psoc *psoc, uint32_t mac_id,
 			   bool dcs_algorithm_process)
 {
 }
 
 static inline void
-ucfg_dcs_reset_user_stats(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id)
+ucfg_dcs_reset_user_stats(struct wlan_objmgr_psoc *psoc, uint8_t mac_id)
 {
 }
 
 static inline void
-ucfg_dcs_set_user_request(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id,
+ucfg_dcs_set_user_request(struct wlan_objmgr_psoc *psoc, uint8_t mac_id,
 			  uint32_t user_request_count)
 {
 }

+ 18 - 18
umac/dcs/dispatcher/src/wlan_dcs_ucfg_api.c

@@ -43,14 +43,14 @@ void ucfg_dcs_register_cb(
 
 void
 ucfg_dcs_register_user_cb(struct wlan_objmgr_psoc *psoc,
-			  uint8_t pdev_id, uint8_t vdev_id,
+			  uint8_t mac_id, uint8_t vdev_id,
 			  void (*cb)(uint8_t vdev_id,
 				     struct wlan_host_dcs_im_user_stats *stats,
 				     int status))
 {
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
 
-	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, pdev_id);
+	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, mac_id);
 	if (!dcs_pdev_priv) {
 		dcs_err("dcs pdev private object is null");
 		return;
@@ -62,19 +62,19 @@ ucfg_dcs_register_user_cb(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc,
-		  uint32_t pdev_id,
+		  uint32_t mac_id,
 		  bool is_host_pdev_id)
 {
-	return wlan_dcs_cmd_send(psoc, pdev_id, is_host_pdev_id);
+	return wlan_dcs_cmd_send(psoc, mac_id, is_host_pdev_id);
 }
 
 void ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc,
-			    uint32_t pdev_id,
+			    uint32_t mac_id,
 			    uint8_t interference_type)
 {
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
 
-	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, pdev_id);
+	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, mac_id);
 	if (!dcs_pdev_priv) {
 		dcs_err("dcs pdev private object is null");
 		return;
@@ -84,12 +84,12 @@ void ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc,
 }
 
 void ucfg_config_dcs_disable(struct wlan_objmgr_psoc *psoc,
-			     uint32_t pdev_id,
+			     uint32_t mac_id,
 			     uint8_t interference_type)
 {
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
 
-	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, pdev_id);
+	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, mac_id);
 	if (!dcs_pdev_priv) {
 		dcs_err("dcs pdev private object is null");
 		return;
@@ -98,12 +98,12 @@ void ucfg_config_dcs_disable(struct wlan_objmgr_psoc *psoc,
 	dcs_pdev_priv->dcs_host_params.dcs_enable &= (~interference_type);
 }
 
-uint8_t ucfg_get_dcs_enable(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id)
+uint8_t ucfg_get_dcs_enable(struct wlan_objmgr_psoc *psoc, uint8_t mac_id)
 {
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
 	uint8_t enable = 0;
 
-	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, pdev_id);
+	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, mac_id);
 	if (!dcs_pdev_priv) {
 		dcs_err("dcs pdev private object is null");
 		return 0;
@@ -115,23 +115,23 @@ uint8_t ucfg_get_dcs_enable(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id)
 	return enable;
 }
 
-void ucfg_dcs_clear(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id)
+void ucfg_dcs_clear(struct wlan_objmgr_psoc *psoc, uint32_t mac_id)
 {
-	wlan_dcs_clear(psoc, pdev_id);
+	wlan_dcs_clear(psoc, mac_id);
 }
 
-void ucfg_config_dcs_event_data(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
+void ucfg_config_dcs_event_data(struct wlan_objmgr_psoc *psoc, uint32_t mac_id,
 				bool dcs_algorithm_process)
 {
-	wlan_dcs_set_algorithm_process(psoc, pdev_id, dcs_algorithm_process);
+	wlan_dcs_set_algorithm_process(psoc, mac_id, dcs_algorithm_process);
 }
 
-void ucfg_dcs_reset_user_stats(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id)
+void ucfg_dcs_reset_user_stats(struct wlan_objmgr_psoc *psoc, uint8_t mac_id)
 {
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
 	struct wlan_host_dcs_im_user_stats *user_stats;
 
-	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, pdev_id);
+	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, mac_id);
 	if (!dcs_pdev_priv) {
 		dcs_err("dcs pdev private object is null");
 		return;
@@ -150,12 +150,12 @@ void ucfg_dcs_reset_user_stats(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id)
 	wlan_dcs_pdev_obj_unlock(dcs_pdev_priv);
 }
 
-void ucfg_dcs_set_user_request(struct wlan_objmgr_psoc *psoc, uint8_t pdev_id,
+void ucfg_dcs_set_user_request(struct wlan_objmgr_psoc *psoc, uint8_t mac_id,
 			       uint32_t user_request_count)
 {
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
 
-	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, pdev_id);
+	dcs_pdev_priv = wlan_dcs_get_pdev_private_obj(psoc, mac_id);
 	if (!dcs_pdev_priv) {
 		dcs_err("dcs pdev private object is null");
 		return;