Browse Source

qcacmn: utils: Fix misspellings

Fix misspellings in utils/...

Change-Id: I092dfff26e16e7c660e6652a652268256d1d1517
CRs-Fixed: 3304703
Jeff Johnson 2 năm trước cách đây
mục cha
commit
b26f2f678c

+ 2 - 1
utils/epping/src/epping_tx.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2014-2019 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
@@ -216,7 +217,7 @@ int epping_tx_send(qdf_nbuf_t skb, epping_adapter_t *adapter)
 
 	if (!IS_EPPING_PACKET(eppingHdr)) {
 		EPPING_LOG(QDF_TRACE_LEVEL_FATAL,
-			   "%s: Recived non endpoint ping packets\n", __func__);
+			   "%s: Received non endpoint ping packets\n", __func__);
 		/* no packet to send, cleanup */
 		qdf_nbuf_free(skb);
 		return -ENOMEM;

+ 2 - 2
utils/fwlog/dbglog_host.c

@@ -1880,7 +1880,7 @@ static int diag_fw_handler(ol_scn_t scn, uint8_t *data, uint32_t datalen)
 		AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("NULL Pointer assigned\n"));
 		return A_ERROR;
 	}
-	/* when fw asser occurs,host can't use TLV format. */
+	/* when fw assert occurs,host can't use TLV format. */
 	if (wma->is_fw_assert) {
 		datap = data;
 		len = datalen;
@@ -2002,7 +2002,7 @@ int dbglog_parse_debug_logs(ol_scn_t scn, uint8_t *data, uint32_t datalen)
 		AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("NULL Pointer assigned\n"));
 		return A_ERROR;
 	}
-	/*when fw asser occurs,host can't use TLV format. */
+	/*when fw assert occurs,host can't use TLV format. */
 	if (wma->is_fw_assert) {
 		datap = data;
 		len = datalen;

+ 4 - 3
utils/fwlog/dbglog_host.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2011, 2014-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
@@ -110,7 +111,7 @@ int
 dbglog_set_timestamp_resolution(wmi_unified_t wmi_handle,
 				uint16_t tsr);
 
-/** Enable reporting. If it is set to false then Target wont deliver
+/** Enable reporting. If it is set to false then Target won't deliver
  * any debug information
  */
 int
@@ -130,7 +131,7 @@ dbglog_set_log_lvl(wmi_unified_t wmi_handle, DBGLOG_LOG_LVL log_lvl);
  *    module_id =  mod_id_lvl/10;
  *    log_level =  mod_id_lvl%10;
  * example : mod_id_lvl is 153. then module id is 15 and log level is 3.
- *           this format allows user to pass a sinlge value
+ *           this format allows user to pass a single value
  *           (which is the most convenient way for most of the OSs)
  *           to be passed from user to the driver.
  */
@@ -143,7 +144,7 @@ dbglog_set_mod_log_lvl(wmi_unified_t wmi_handle, uint32_t mod_id_lvl);
  *    module_id =  mod_id_lvl/10;
  *    log_level =  mod_id_lvl%10;
  * example : mod_id_lvl is 153. then module id is 15 and log level is 3.
- *           this format allows user to pass a sinlge value
+ *           this format allows user to pass a single value
  *           (which is the most convenient way for most of the OSs)
  *           to be passed from user to the driver.
  */

+ 2 - 1
utils/fwlog/inc/fw_dbglog_api.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2018-2019 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
@@ -110,7 +111,7 @@ void fwdbg_set_timestamp_resolution(struct common_dbglog_handle *dbg_handle,
  * @isenable: Enable/disable
  *
  * API to enable debug information reporting. It encodes wmi config command
- * to enable reporting. If set to false then Target wont deliver any debug
+ * to enable reporting. If set to false then Target won't deliver any debug
  * information.
  *
  * Return: None

+ 7 - 7
utils/host_diag_log/inc/host_diag_core_event.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-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
@@ -248,7 +248,7 @@ enum mgmt_bss_type {
  * @WLAN_STATUS_RESET_FAIL: Reset Fail
  * @WLAN_STATUS_RESET_SUCCESS: Reset Success
  * @WLAN_STATUS_DEVICE_REMOVED: Device Removed
- * @WLAN_STATUS_DEVICE_INSERTED: Devide Inserted
+ * @WLAN_STATUS_DEVICE_INSERTED: Device Inserted
  * @WLAN_STATUS_DRIVER_UNLOADED: Driver Unloaded
  * @WLAN_STATUS_DRIVER_LOADED: Driver Loaded
  * @WLAN_STATUS_BUS_EXCEPTION: bus/link exception
@@ -751,7 +751,7 @@ struct host_event_wlan_ssr_shutdown {
 
 
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
 /**
  * enum host_sta_kickout_events - Enum containing sta kickout subtype
@@ -776,7 +776,7 @@ enum host_sta_kickout_events {
 };
 
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
 /**
  * enum host_datastall_events - Enum containing datastall subtype
@@ -809,7 +809,7 @@ enum host_datastall_events {
 };
 
 /*-------------------------------------------------------------------------
-  Function declarations and documenation
+  Function declarations and documentation
   ------------------------------------------------------------------------*/
 /**
  * enum host_ssr_events - Enum containing ssr subtype
@@ -904,7 +904,7 @@ struct host_event_tdls_tx_rx_mgmt {
 };
 
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
 /**
  * enum wifi_connectivity_events - Enum containing EAPOL sub type
@@ -947,7 +947,7 @@ enum wifi_connectivity_events {
  * @WIFI_POWER_EVENT_WAKELOCK_DRIVER_IDLE_SHUTDOWN: Wakelock for Idle Shutdown
  * @WIFI_POWER_EVENT_WAKELOCK_TDLS: Wakelock for TDLS
  * @WIFI_POWER_EVENT_WAKELOCK_CFR: Wakelock for CFR
- * @WIFI_POWER_EVENT_WAKELOCK_SAP_D3_WOW: Wakelock for SAP D3 WOW max clinets
+ * @WIFI_POWER_EVENT_WAKELOCK_SAP_D3_WOW: Wakelock for SAP D3 WOW max clients
  * @WIFI_POWER_EVENT_WAKELOCK_GO_D3_WOW: Wakelock for GO D3 WOW max clients
  * @WIFI_POWER_EVENT_WAKELOCK_RTPM_TPUT_POLICY: Wakelock for RTPM Tput policy
  *

+ 6 - 5
utils/host_diag_log/inc/host_diag_core_log.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2014-2017, 2019-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
@@ -176,7 +177,7 @@ typedef struct {
 } host_log_beacon_update_pkt_type;
 
 /*---------------------------------------------------------------------------
-   This packet contains the information related to a WoW patern value when set
+   This packet contains the information related to a WoW pattern value when set
    LOG_WLAN_POWERSAVE_WOW_ADD_PTRN_C               0x149C
    ---------------------------------------------------------------------------*/
 typedef struct {
@@ -469,7 +470,7 @@ struct host_log_wlan_roam_scan_data {
 /**
  * struct host_log_wlan_roam_result_info - Roam result related info.
  * @hdr:                Log header
- * @version:            Payload strcuture version
+ * @version:            Payload structure version
  * @vdev_id:            Vdev Id
  * @status:             0 - Roaming is success ; 1 - Roaming failed
  * @timestamp:          Host timestamp in millisecs
@@ -511,9 +512,9 @@ struct wlan_rrm_beacon_report {
 /**
  * struct host_log_wlan_rrm_tx_rx_info - RRM frame related details
  * @hdr:     Log header
- * @version: Version of the payload struture
+ * @version: Version of the payload structure
  * @vdev_id: Vdev id
- * @orgin:   Sent by host or firmware
+ * @origin:   Sent by host or firmware
  * @is_tx:   Is Tx frame or RX frame
  * @roam_result: Roaming result
  * @timestamp: Time of the day in milliseconds
@@ -579,7 +580,7 @@ struct host_event_proto_pkt_info {
 };
 
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
 
 #ifdef __cplusplus

+ 5 - 5
utils/host_diag_log/inc/host_diag_event_defs.h

@@ -320,7 +320,7 @@ typedef enum {
 	 * 20 - CHANNEL SCAN
 	 * 21 - NORMAL CHANNEL SCAN
 	 *
-	 * MLM State: offset: 10 legth: 2
+	 * MLM State: offset: 10 length: 2
 	 * 0  - MLM OFFLINE
 	 * 1  - MLM IDLE
 	 * 2  - MLM WT PROBE RESP
@@ -382,7 +382,7 @@ typedef enum {
 	 * 2 - Reset Fail
 	 * 3 - Reset Success
 	 * 4 - Device Removed
-	 * 5 - Devide Inserted
+	 * 5 - Device Inserted
 	 * 6 - Driver Unloaded
 	 * 7 - Driver Loaded
 	 * 8 - bus/link down
@@ -446,7 +446,7 @@ typedef enum {
 	 * 0 - Enter
 	 * 1 - Exit
 	 * 2 - Del Pattern
-	 * 3 - Wakup
+	 * 3 - Wakeup
 	 *
 	 * WOW Type: offset: 1 length: 1
 	 * 0 - None
@@ -636,7 +636,7 @@ typedef enum {
 	 * @ reason: Reason for triggering status
 	 * @ reasonDisconnect:Reason for disconnection
 	 *
-	 * This event is used to send varius wlan status
+	 * This event is used to send various wlan status
 	 * Values for parameters are defined below:
 	 * eventId: offset: 0 length: 1
 	 * ssid[0] - ssid[31]: offset: 1 to 32, length: 1
@@ -954,7 +954,7 @@ typedef enum {
 	 * Table 12-10—Integrity and key wrap algorithms.
 	 * @grp_cipher: Group cipher suite value as defined in
 	 * Table 12-10—Integrity and key wrap algorithm in IEEE 802.11 2020.
-	 * grp_mgmt: Group manangement cipher suite as defined in
+	 * grp_mgmt: Group management cipher suite as defined in
 	 * Table 12-10—Integrity and key wrap algorithms in IEEE 802.11 2020.
 	 *
 	 * This event is used to send connection parameters for

+ 2 - 2
utils/host_diag_log/src/i_host_diag_core_event.h

@@ -113,7 +113,7 @@ enum auth_timeout_type {
  * @DIAG_ROAM_REASON_DISCONNECTION: Roam triggered due to
  * deauthentication or disassociation frames received from the connected AP.
  * @DIAG_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
- * scan that happens when there is no candiate AP found during the poor
+ * scan that happens when there is no candidate AP found during the poor
  * RSSI scan trigger.
  * @DIAG_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  * results obtained from an external scan (not aimed at roaming).
@@ -176,7 +176,7 @@ enum diag_roam_sub_reason {
 #endif
 
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
 #ifdef FEATURE_WLAN_DIAG_SUPPORT
 void host_diag_log_wlock(uint32_t reason, const char *wake_lock_name,

+ 3 - 2
utils/host_diag_log/src/i_host_diag_core_log.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2014-2018 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
@@ -40,7 +41,7 @@
 /*--------------------------------------------------------------------------
    Preprocessor definitions and constants
    ------------------------------------------------------------------------*/
-/* FIXME To be removed when DIAG support is added. This definiton should be */
+/* FIXME To be removed when DIAG support is added. This definition should be */
 /* picked from log.h file above. */
 typedef struct {
 	/* Specifies the length, in bytes of the entry, including this header. */
@@ -116,7 +117,7 @@ static inline void host_diag_log_set_length(void *ptr, uint16_t length)
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
 
 #ifdef __cplusplus

+ 3 - 3
utils/logging/src/wlan_logging_sock_svc.c

@@ -204,7 +204,7 @@ struct wlan_logging {
 	bool is_active;
 	/* Flush completion check */
 	bool is_flush_complete;
-	/* paramaters  for pkt stats */
+	/* parameters  for pkt stats */
 	struct list_head pkt_stat_free_list;
 	struct list_head pkt_stat_filled_list;
 	struct pkt_stats_msg *pkt_stats_pcur_node;
@@ -1197,7 +1197,7 @@ int wlan_logging_sock_init_svc(void)
 		(gwlan_logging.pkt_stat_free_list.next);
 	list_del_init(gwlan_logging.pkt_stat_free_list.next);
 	spin_unlock_irqrestore(&gwlan_logging.pkt_stats_lock, irq_flag);
-	/* Pkt Stats intialization done */
+	/* Pkt Stats initialization done */
 
 	init_waitqueue_head(&gwlan_logging.wait_queue);
 	gwlan_logging.exit = false;
@@ -1368,7 +1368,7 @@ static uint8_t grx_count;
  * wlan_get_pkt_stats_free_node() - Get the free node for pkt stats
  *
  * This function is used to get the free node for pkt stats from
- * free list/filles list
+ * free list/filled list
  *
  * Return: int
  *

+ 3 - 2
utils/nlink/inc/wlan_nlink_common.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2014-2019 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
@@ -57,7 +58,7 @@
  * in the user space, define a set of messages they recognize.
  * Each of this message will have an header of type tAniMsgHdr defined below.
  * Each Netlink message to/from a kernel module will contain only one
- * message which is preceded by a tAniMsgHdr. The maximun size (in bytes) of
+ * message which is preceded by a tAniMsgHdr. The maximum size (in bytes) of
  * a netlink message is assumed to be MAX_PAYLOAD bytes.
  *
  *         +------------+-------+----------+----------+
@@ -176,7 +177,7 @@ struct wlan_dfs_info {
 };
 
 /*
- * Maximim number of queues supported by WLAN driver. Setting an upper
+ * Maximum number of queues supported by WLAN driver. Setting an upper
  * limit. Actual number of queues may be smaller than this value.
  */
 #define WLAN_SVC_IFACE_NUM_QUEUES 6

+ 2 - 1
utils/nlink/inc/wlan_nlink_srv.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2012-2017, 2019-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
@@ -88,7 +89,7 @@ int nl_srv_bcast(struct sk_buff *skb, int mcgroup_id, int app_id);
  * @flags: Flags
  * @cmd: Command id
  *
- * API to fill genl message header for brodcast events to user space
+ * API to fill genl message header for broadcast events to user space
  *
  * Return: Pointer to user specific header/payload
  */

+ 2 - 2
utils/nlink/src/wlan_nlink_srv.c

@@ -58,7 +58,7 @@ static bool logger_initialized;
  *
  * The cnss_logger_device_register() use to register the driver with the
  * wiphy structure and the module name (debug purpose) and then return the
- * radio_index depending on the availibility.
+ * radio_index depending on the availability.
  *
  * Return: radio index for success and -EINVAL for failure
  */
@@ -259,7 +259,7 @@ qdf_export_symbol(nl_srv_is_initialized);
  * If MULTI_IF_NAME is not defined, then this is the primary instance of the
  * driver and the diagnostics netlink socket will be available. If
  * MULTI_IF_NAME is defined then this is not the primary instance of the driver
- * and the diagnotics netlink socket will not be available since this
+ * and the diagnostics netlink socket will not be available since this
  * diagnostics netlink socket can only be exposed by one instance of the driver.
  */
 #elif defined(CNSS_GENL)

+ 1 - 1
utils/pktlog/include/pktlog_ac_api.h

@@ -124,7 +124,7 @@ struct ath_pktlog_info {
 	/* Phyerr threshold for triggered stop */
 	uint32_t phyerr_thresh;
 
-	/* time period for counting trigger parameters, in milisecond */
+	/* time period for counting trigger parameters, in millisecond */
 	uint32_t trigger_interval;
 	uint32_t start_time_thruput;
 	uint32_t start_time_per;

+ 2 - 1
utils/qld/inc/qld_api.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2019 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
@@ -49,7 +50,7 @@ typedef int (*qld_iter_func)(void *req, struct qld_entry *entry);
 
 /**
  * qld_iterate_list() - qld list iteration routine
- * @gen_table: callback function to genrate table
+ * @gen_table: callback function to generate table
  * @req: opaque request
  *
  * Return: 0 - OK -EINVAL - On failure

+ 2 - 1
utils/qld/inc/qld_priv.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2019 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
@@ -18,7 +19,7 @@
 
 /**
  * DOC: qld_priv.h
- * QLD: This file provies Private functions for qld
+ * QLD: This file provides Private functions for qld
  */
 
 #ifndef _QLD_PRIV_H_