Browse Source

qcacld-3.0: Fix Pre-CAC Documentation

The kernel-doc script identified a few documentation issues in
components/pre_cac, so fix them.

Change-Id: Ie2a9be0c410e32c8e7ca5a86ed0dec7df5b62d25
CRs-Fixed: 3359794
Jeff Johnson 2 years ago
parent
commit
7909bafb0f

+ 28 - 8
components/pre_cac/core/src/wlan_pre_cac_main.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
@@ -85,7 +85,7 @@ struct pre_cac_psoc_priv {
 };
 
 /**
- * pre_cac_vdev_create_notification(): Handler for vdev create notify.
+ * pre_cac_vdev_create_notification() - Handler for vdev create notify.
  * @vdev: vdev which is going to be created by objmgr
  * @arg: argument for notification handler.
  *
@@ -97,7 +97,7 @@ QDF_STATUS pre_cac_vdev_create_notification(struct wlan_objmgr_vdev *vdev,
 					    void *arg);
 
 /**
- * pre_cac_vdev_destroy_notification(): Handler for vdev destroy notify.
+ * pre_cac_vdev_destroy_notification() - Handler for vdev destroy notify.
  * @vdev: vdev which is going to be destroyed by objmgr
  * @arg: argument for notification handler.
  *
@@ -133,12 +133,22 @@ pre_cac_psoc_create_notification(struct wlan_objmgr_psoc *psoc, void *arg);
 QDF_STATUS
 pre_cac_psoc_destroy_notification(struct wlan_objmgr_psoc *psoc, void *arg);
 
+/**
+ * pre_cac_vdev_get_priv_fl() - retrieve vdev priv obj
+ * @vdev: vdev pointer
+ * @func: invoking function (for debugging)
+ * @line: invoking source file line number (for debugging)
+ *
+ * Retrieves pre_cac vdev private object pointer.
+ *
+ * Return: Private object of vdev
+ */
 struct pre_cac_vdev_priv *
 pre_cac_vdev_get_priv_fl(struct wlan_objmgr_vdev *vdev,
 			 const char *func, uint32_t line);
 
 /**
- * pre_cac_vdev_get_priv_fl(): Wrapper to retrieve vdev priv obj
+ * pre_cac_vdev_get_priv() - Wrapper to retrieve vdev priv obj
  * @vdev: vdev pointer
  *
  * Wrapper for pre_cac to get vdev private object pointer.
@@ -148,12 +158,22 @@ pre_cac_vdev_get_priv_fl(struct wlan_objmgr_vdev *vdev,
 #define pre_cac_vdev_get_priv(vdev) \
 			      pre_cac_vdev_get_priv_fl(vdev, __func__, __LINE__)
 
+/**
+ * pre_cac_psoc_get_priv_fl() - retrieve psoc priv obj
+ * @psoc: psoc pointer
+ * @func: invoking function (for debugging)
+ * @line: invoking source file line number (for debugging)
+ *
+ * Retrieves pre_cac psoc private object pointer.
+ *
+ * Return: pre_cac psoc private object
+ */
 struct pre_cac_psoc_priv *
 pre_cac_psoc_get_priv_fl(struct wlan_objmgr_psoc *psoc,
 			 const char *func, uint32_t line);
 
 /**
- * pre_cac_psoc_get_priv_fl(): Wrapper to retrieve psoc priv obj
+ * pre_cac_psoc_get_priv() - Wrapper to retrieve psoc priv obj
  * @psoc: psoc pointer
  *
  * Wrapper for pre_cac to get psoc private object pointer.
@@ -184,7 +204,7 @@ QDF_STATUS pre_cac_init(void);
 void pre_cac_deinit(void);
 
 /**
- * pre_cac_set_osif_cb(): set pre cac osif callbacks
+ * pre_cac_set_osif_cb() - set pre cac osif callbacks
  * @osif_pre_cac_ops: pre cac ops
  *
  *
@@ -193,7 +213,7 @@ void pre_cac_deinit(void);
 void pre_cac_set_osif_cb(struct pre_cac_ops *osif_pre_cac_ops);
 
 /**
- * pre_cac_is_active(): status of pre_cac
+ * pre_cac_is_active() - status of pre_cac
  * @psoc: psoc pointer
  *
  * Return: status of pre_cac
@@ -201,7 +221,7 @@ void pre_cac_set_osif_cb(struct pre_cac_ops *osif_pre_cac_ops);
 bool pre_cac_is_active(struct wlan_objmgr_psoc *psoc);
 
 /**
- * pre_cac_clear_work(): clear pre cac work fn and arg
+ * pre_cac_clear_work() - clear pre cac work fn and arg
  * @psoc: psoc object manager
  *
  * Return: None

+ 3 - 3
components/pre_cac/dispatcher/inc/wlan_pre_cac_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 above
@@ -68,7 +68,7 @@ void wlan_pre_cac_complete_set(struct wlan_objmgr_vdev *vdev,
 bool wlan_pre_cac_complete_get(struct wlan_objmgr_vdev *vdev);
 
 /**
- * pre_cac_set_freq_before_pre_cac() - Set frequency before pre cac
+ * wlan_pre_cac_set_freq_before_pre_cac() - Set frequency before pre cac
  * @vdev: vdev object manager
  * @freq: frequency
  *
@@ -78,7 +78,7 @@ void wlan_pre_cac_set_freq_before_pre_cac(struct wlan_objmgr_vdev *vdev,
 					  qdf_freq_t freq);
 
 /**
- * pre_cac_get_freq_before_pre_cac() - Get frequency before pre cac
+ * wlan_pre_cac_get_freq_before_pre_cac() - Get frequency before pre cac
  * @vdev: vdev object manager
  *
  * Return: Frequency before pre cac

+ 3 - 4
components/pre_cac/dispatcher/inc/wlan_pre_cac_public_struct.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
@@ -20,9 +20,8 @@
 #include "wlan_objmgr_psoc_obj.h"
 
 /**
- * pre_cac_ops: pre cac osif callbacks
- * @pre_cac_send_conditional_freq_switch_status: send conditional frequency
- *                                               switch status
+ * struct pre_cac_ops - pre cac osif callbacks
+ * @pre_cac_conditional_csa_ind_cb: send conditional frequency switch status
  * @pre_cac_complete_cb: Pre cac complete callback
  */
 struct pre_cac_ops {

+ 2 - 2
components/pre_cac/dispatcher/inc/wlan_pre_cac_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 above
@@ -135,7 +135,7 @@ bool ucfg_pre_cac_adapter_is_active(struct wlan_objmgr_vdev *vdev);
 
 #if defined(FEATURE_SAP_COND_CHAN_SWITCH)
 /**
- * pre_cac_set_freq_before_pre_cac() - Set frequency before pre cac
+ * ucfg_pre_cac_set_freq_before_pre_cac() - Set frequency before pre cac
  * @vdev: vdev object manager
  * @freq: frequency
  *