Przeglądaj źródła

qcacld-3.0: Rename wlan_hdd_cfg80211_spectral_scam_get_config()

Rename wlan_hdd_cfg80211_spectral_scam_get_config() to replace
incorrect term "scam" with "scan". In addition, clean up existing
documentation issues.

Change-Id: I1d7f11e274bcb0e1e09e8292b75554d256a5c6fd
CRs-Fixed: 3344908
Jeff Johnson 2 lat temu
rodzic
commit
dd8340e82c

+ 17 - 15
core/hdd/inc/wlan_hdd_spectralscan.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
+ * 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
@@ -17,7 +18,7 @@
  */
 
 /**
- * DOC : wlan_hdd_spectralscan.h
+ * DOC: wlan_hdd_spectralscan.h
  *
  * WLAN Host Device Driver spectral scan implementation
  *
@@ -86,7 +87,7 @@ struct spectral_scan_msg_v {
 	.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG, \
 	.flags = WIPHY_VENDOR_CMD_NEED_WDEV | \
 			WIPHY_VENDOR_CMD_NEED_NETDEV, \
-	.doit = wlan_hdd_cfg80211_spectral_scam_get_config, \
+	.doit = wlan_hdd_cfg80211_spectral_scan_get_config, \
 	vendor_command_policy(spectral_scan_policy, \
 			      QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX) \
 }, \
@@ -148,29 +149,30 @@ int wlan_hdd_cfg80211_spectral_scan_stop(struct wiphy *wiphy,
 						int data_len);
 
 /**
- * wlan_hdd_cfg80211_spectral_scan_start() - start spectral scan
+ * wlan_hdd_cfg80211_spectral_scan_get_config() - get spectral scan config
  * @wiphy:    WIPHY structure pointer
  * @wdev:     Wireless device structure pointer
  * @data:     Pointer to the data received
  * @data_len: Length of the data received
  *
- * This function starts spectral scan
+ * This function gets the spectral scan configuration
  *
  * Return: 0 on success and errno on failure
  */
-int wlan_hdd_cfg80211_spectral_scam_get_config(struct wiphy *wiphy,
-						struct wireless_dev *wdev,
-						const void *data,
-						int data_len);
+int wlan_hdd_cfg80211_spectral_scan_get_config(struct wiphy *wiphy,
+					       struct wireless_dev *wdev,
+					       const void *data,
+					       int data_len);
 
 /**
- * wlan_hdd_cfg80211_spectral_scan_start() - start spectral scan
+ * wlan_hdd_cfg80211_spectral_scan_get_diag_stats() -
+ *                                               get spectral scan diag stats
  * @wiphy:    WIPHY structure pointer
  * @wdev:     Wireless device structure pointer
  * @data:     Pointer to the data received
  * @data_len: Length of the data received
  *
- * This function starts spectral scan
+ * This function gets spectral scan diagnostic statistics
  *
  * Return: 0 on success and errno on failure
  */
@@ -180,13 +182,13 @@ int wlan_hdd_cfg80211_spectral_scan_get_diag_stats(struct wiphy *wiphy,
 						int data_len);
 
 /**
- * wlan_hdd_cfg80211_spectral_scan_start() - start spectral scan
+ * wlan_hdd_cfg80211_spectral_scan_get_cap_info() - get spectral scan cpa
  * @wiphy:    WIPHY structure pointer
  * @wdev:     Wireless device structure pointer
  * @data:     Pointer to the data received
  * @data_len: Length of the data received
  *
- * This function starts spectral scan
+ * This function gets the spectral scan capabilities
  *
  * Return: 0 on success and errno on failure
  */
@@ -196,13 +198,13 @@ int wlan_hdd_cfg80211_spectral_scan_get_cap_info(struct wiphy *wiphy,
 						int data_len);
 
 /**
- * wlan_hdd_cfg80211_spectral_scan_start() - start spectral scan
+ * wlan_hdd_cfg80211_spectral_scan_get_status() - get spectral scan status
  * @wiphy:    WIPHY structure pointer
  * @wdev:     Wireless device structure pointer
  * @data:     Pointer to the data received
  * @data_len: Length of the data received
  *
- * This function starts spectral scan
+ * This function gets the spectral scan status
  *
  * Return: 0 on success and errno on failure
  */
@@ -215,7 +217,7 @@ int wlan_hdd_cfg80211_spectral_scan_get_status(struct wiphy *wiphy,
  * hdd_spectral_register_to_dbr() - Register spectral to DBR
  * @hdd_ctx: pointer to hdd context
  *
- * This function is that register spectral to Direct Buffer RX component.
+ * This function registers spectral to Direct Buffer RX component.
  *
  * Return: None
  */

+ 2 - 1
core/hdd/src/wlan_hdd_spectralscan.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
+ * 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
@@ -397,7 +398,7 @@ int wlan_hdd_cfg80211_spectral_scan_stop(struct wiphy *wiphy,
 	return errno;
 }
 
-int wlan_hdd_cfg80211_spectral_scam_get_config(struct wiphy *wiphy,
+int wlan_hdd_cfg80211_spectral_scan_get_config(struct wiphy *wiphy,
 					       struct wireless_dev *wdev,
 					       const void *data,
 					       int data_len)