Browse Source

qcacmn: wmi: Fix misspellings

Fix misspellings in wmi/...

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

+ 5 - 5
wmi/inc/wmi_unified_11be_tlv.h

@@ -21,14 +21,14 @@
 #ifdef WLAN_FEATURE_11BE_MLO
 /**
  *  vdev_create_mlo_params_size() - Get MLO params size in vdev create
- *  @param: ponter to vdev create request param
+ *  @param: pointer to vdev create request param
  *  Return: size of MLO params in vdev create
  */
 size_t vdev_create_mlo_params_size(struct vdev_create_params *param);
 /**
  *  vdev_create_add_mlo_params() - Add MLO params in vdev create cmd
  *  @buf_ptr: pointer to vdev create buffer.
- *  @param: ponter to vdev create request param
+ *  @param: pointer to vdev create request param
  *
  *  Return: pointer to new offset of vdev create buffer
  */
@@ -44,7 +44,7 @@ size_t vdev_start_mlo_params_size(struct vdev_start_params *req);
 /**
  *  vdev_start_add_mlo_params() - Add MLO params in vdev start cmd
  *  @buf_ptr: pointer to vdev start buffer.
- *  @req: ponter to vdev create request param
+ *  @req: pointer to vdev create request param
  *
  *  Return: pointer to new offset of cmd buffer
  */
@@ -53,7 +53,7 @@ uint8_t *vdev_start_add_mlo_params(uint8_t *buf_ptr,
 /**
  *  vdev_start_add_ml_partner_links() - Add MLO partner links in vdev start cmd
  *  @buf_ptr: pointer to vdev start cmd buffer.
- *  @req: ponter to vdev start request param
+ *  @req: pointer to vdev start request param
  *
  *  Return: pointer to new offset of cmd buffer
  */
@@ -165,7 +165,7 @@ size_t peer_delete_mlo_params_size(struct peer_delete_cmd_params *req);
 /**
  *  peer_delete_add_mlo_params() - Add MLO params in peer delete cmd
  *  @buf_ptr: pointer to peer delete cmd  buffer.
- *  @req: ponter to peer delete request param
+ *  @req: pointer to peer delete request param
  *
  *  Return: pointer to new offset of cmd buffer
  */

+ 5 - 5
wmi/inc/wmi_unified_api.h

@@ -296,7 +296,7 @@ wmi_buf_t wmi_buf_alloc_fl(wmi_unified_t wmi_handle, uint32_t len,
 /**
  * generic function frees WMI net buffer
  *
- *  @param net_buf : Pointer ot net_buf to be freed
+ *  @param net_buf : Pointer to net_buf to be freed
  */
 void wmi_buf_free(wmi_buf_t net_buf);
 
@@ -409,7 +409,7 @@ wmi_unified_register_event_handler(wmi_unified_t wmi_handle,
 
 /**
  * wmi_unified_unregister_event() - WMI event handler unregister function
- * for converged componets
+ * for converged components
  * @wmi_handle:    handle to WMI.
  * @event_id:      WMI event ID
  *
@@ -1353,7 +1353,7 @@ QDF_STATUS wmi_unified_set_sta_ps_mode(wmi_unified_t wmi_handle,
 /**
  * wmi_unified_set_sta_uapsd_auto_trig_cmd() - set uapsd auto trigger command
  * @wmi_handle: wmi handle
- * @param: uapsd cmd parameter strcture
+ * @param: uapsd cmd parameter structure
  *
  * This function sets the trigger
  * uapsd params such as service interval, delay interval
@@ -1950,7 +1950,7 @@ QDF_STATUS wmi_unified_send_apf_read_work_memory_cmd(wmi_unified_t wmi,
 				struct wmi_apf_read_memory_params *read_params);
 
 /**
- * wmi_extract_apf_read_memory_resp_event() - exctract read mem resp event
+ * wmi_extract_apf_read_memory_resp_event() - extract read mem resp event
  * @wmi: wmi handle
  * @evt_buf: Pointer to the event buffer
  * @resp: pointer to memory to extract event parameters into
@@ -4381,7 +4381,7 @@ QDF_STATUS wmi_unified_extract_measreq_chan_info(
  *  color change enable to FW.
  * @wmi_handle: wmi handle
  * @vdev_id: vdev ID
- * @enable: enable or disable color change handeling within firmware
+ * @enable: enable or disable color change handling within firmware
  *
  * Send WMI_BSS_COLOR_CHANGE_ENABLE_CMDID parameters to fw,
  * thereby firmware updates bss color when AP announces bss color change.

+ 26 - 26
wmi/inc/wmi_unified_param.h

@@ -1232,7 +1232,7 @@ struct peer_assoc_ml_partner_links {
  * @need_gtk_2_way: Needs 2 way GTK
  * @auth_flag: Is peer authenticated
  * @safe_mode_enabled: Safe enabled for this peer
- * @amsdu_disable: AMSDU disble
+ * @amsdu_disable: AMSDU disable
  * @peer_mac: Peer mac address
  * @he_flag: HE flags
  * @eht_flag: EHT flags
@@ -1390,7 +1390,7 @@ struct scan_chan_list_params {
 #ifdef QCA_SUPPORT_AGILE_DFS
 /**
  * struct vdev_adfs_ch_cfg_params - Agile dfs channel set request params
- * @vdev_id: Vdev indentifier
+ * @vdev_id: Vdev identifier
  * @ocac_mode: Off Channel CAC mode
  * @min_duration_ms: Minimum Off channel CAC duration
  * @max_duration_ms: Maximum Off channel CAC duration
@@ -1415,7 +1415,7 @@ struct vdev_adfs_ch_cfg_params {
 
 /**
  * struct vdev_adfs_ch_cfg_params - Agile dfs ocac abort command to stop precac.
- * @vdev_id: Vdev indentifier
+ * @vdev_id: Vdev identifier
  */
 struct vdev_adfs_abort_params {
 	uint32_t vdev_id;
@@ -1741,8 +1741,8 @@ enum thermal_mgmt_action_code {
 
 /**
  * struct thermal_cmd_params - thermal command parameters
- * @min_temp: minimum temprature
- * @max_temp: maximum temprature
+ * @min_temp: minimum temperature
+ * @max_temp: maximum temperature
  * @thermal_enable: thermal enable
  * @thermal_action: thermal action code
  */
@@ -1958,7 +1958,7 @@ enum wmi_extscan_report_events_type {
 };
 
 /**
- * struct extscan_capabilities_params - ext scan capablities
+ * struct extscan_capabilities_params - ext scan capabilities
  * @request_id: request_id
  * @vdev_id: vdev id
  */
@@ -1968,7 +1968,7 @@ struct extscan_capabilities_params {
 };
 
 /**
- * struct extscan_capabilities_reset_params - ext scan capablities reset
+ * struct extscan_capabilities_reset_params - ext scan capabilities reset
  *                                            parameter
  * @request_id: request_id
  * @vdev_id: vdev id
@@ -2798,7 +2798,7 @@ typedef struct {
 
 /**
  * struct wmi_host_ext_resource_config - Extended resource config
- * @host_platform_config: Host plaform configuration.
+ * @host_platform_config: Host platform configuration.
  * @fw_featuew_bitmap: FW feature requested bitmap.
  */
 typedef struct {
@@ -3064,7 +3064,7 @@ struct thermal_mitigation_params {
 };
 
 /**
- * struct smart_ant_enable_tx_feedback_params - SA tx feeback params
+ * struct smart_ant_enable_tx_feedback_params - SA tx feedback params
  * @enable: Enable TX feedback for SA
  */
 struct smart_ant_enable_tx_feedback_params {
@@ -3512,7 +3512,7 @@ struct acparams_params {
 /**
  * struct vap_dscp_tid_map_params - DSCP tid map params
  * @vdev_id: vdev id
- * @dscp_to_tid_map: pointer to arry of tid to dscp map table
+ * @dscp_to_tid_map: pointer to array of tid to dscp map table
  */
 struct vap_dscp_tid_map_params {
 	uint8_t vdev_id;
@@ -3660,7 +3660,7 @@ struct periodic_chan_stats_params {
  * @WMI_HOST_FLAG_MU2: MU2 data
  * @WMI_HOST_FLAG_MU3: MU3 data
  * @WMI_HOST_FLAG_SERIES1: Rate series 1
- * @WMI_HOST_FLAG_SGI: Short gaurd interval
+ * @WMI_HOST_FLAG_SGI: Short guard interval
  */
 enum wmi_host_packet_power_rate_flags {
 	WMI_HOST_FLAG_RTSENA        =  0x0001,
@@ -4105,8 +4105,8 @@ struct rtt_keepalive_req_params {
  * @peer_mac_addr: Peer mac address
  * @tid: TID
  * @vdev_id: vdev id
- * @hw_qdesc_paddr_lo: lower 32 bits of queue desc adddress
- * @hw_qdesc_paddr_hi: upper 32 bits of queue desc adddress
+ * @hw_qdesc_paddr_lo: lower 32 bits of queue desc address
+ * @hw_qdesc_paddr_hi: upper 32 bits of queue desc address
  * @queue_no: 16-bit number assigned by host for queue
  * @ba_window_size_valid: BA window size validity flag
  * @ba_window_size: BA window size
@@ -4634,7 +4634,7 @@ struct wmi_host_vdev_nac_rssi_event {
  * @msdu_retried: Retried msdus
  * @msdu_mul_retried: msdus retried for more than once
  * @msdu_failed: msdus failed
- * @reserved: for furure extensions
+ * @reserved: for future extensions
  */
 struct wmi_host_peer_retry_stats {
 	wmi_host_mac_addr peer_macaddr;
@@ -5927,7 +5927,7 @@ typedef enum {
 
 /**
  * struct wmi_host_fw_ver - FW version in non-tlv target
- * @sw_version: Versin info
+ * @sw_version: Version info
  * @sw_version_1: Second dword of version
  */
 struct wmi_host_fw_ver {
@@ -5937,7 +5937,7 @@ struct wmi_host_fw_ver {
 
 /**
  * struct wmi_host_fw_abi_ver - FW version in non-tlv target
- * @sw_version: Versin info
+ * @sw_version: Version info
  * @abi_version: ABI version
  */
 struct wmi_host_fw_abi_ver {
@@ -6028,7 +6028,7 @@ typedef enum {
  * @band_capability: Band capability bit map
  * @sap_max_num_clients: Max clients supported by SAP
  * @set_country_code_hal_supported: Indicates country code hal supported or not
- * @get_valid_channel_supported: Indicates get vaid channel supported or not
+ * @get_valid_channel_supported: Indicates get valid channel supported or not
  * @supported_dot11mode: Indicates supported dot11 mode
  * @sap_wpa3_support: Indicates wpa3 support for SAP
  * @vendor_req_1_version: Indicates vendor1 req1 version
@@ -6385,9 +6385,9 @@ typedef struct {
  * Enum replicated for host abstraction with FW
  */
 typedef enum {
-	/* Event respose of START CMD */
+	/* Event response of START CMD */
 	WMI_HOST_VDEV_START_RESP_EVENT = 0,
-	/* Event respose of RESTART CMD */
+	/* Event response of RESTART CMD */
 	WMI_HOST_VDEV_RESTART_RESP_EVENT,
 } WMI_HOST_START_EVENT_PARAM;
 
@@ -7004,7 +7004,7 @@ enum wmi_host_sta_ps_param_rx_wake_policy {
 };
 enum wmi_host_sta_ps_param_pspoll_count {
 	WMI_HOST_STA_PS_PSPOLL_COUNT_NO_MAX = 0,
-	/* Values greater than 0 indicate the maximum numer of PS-Poll frames FW
+	/* Values greater than 0 indicate the maximum number of PS-Poll frames FW
 	* will send before waking up.
 	*/
 };
@@ -7070,7 +7070,7 @@ typedef struct _hp_dcs_mib_stats  {
  * struct wmi_host_dcs_im_tgt_stats - DCS IM target stats
  * @reg_tsf32: current running TSF from the TSF-1
  * @last_ack_rssi: Known last frame rssi, in case of multiple stations, if
- *      and at different ranges, this would not gaurantee that
+ *      and at different ranges, this would not guarantee that
  *      this is the least rssi.
  * @tx_waste_time: Sum of all the failed durations in the last
  *      one second interval.
@@ -7315,7 +7315,7 @@ typedef enum {
 	/* whole RTT measurement timer expire-terminate
 	** current STA measurement */
 	WMI_HOST_RTT_TIMER_EXPIRE,
-	/* channel swicth failed */
+	/* channel switch failed */
 	WMI_HOST_RTT_CHAN_SWITCH_ERROR,
 	/* TMR trans error, this dest peer will be skipped */
 	WMI_HOST_RTT_TMR_TRANS_ERROR,
@@ -8160,7 +8160,7 @@ struct wmi_host_obss_spatial_reuse_set_def_thresh {
 
 /**
  * struct wmi_host_injector_frame_params - Injector frame configuration params
- * @vdev_id: vdev identifer of VAP
+ * @vdev_id: vdev identifier of VAP
  * @enable: Enable/disable flag for the frame
  * @frame_type: Frame type to be enabled
  * @frame_inject_period: Periodicity of injector frame transmission in msecs
@@ -8687,7 +8687,7 @@ struct wmi_obss_color_collision_info {
 /**
  * struct vap_pcp_tid_map_params - PCP tid map params
  * @vdev_id: vdev id
- * @pcp_to_tid_map: pointer to arry of pcp to tid map table
+ * @pcp_to_tid_map: pointer to array of pcp to tid map table
  */
 struct vap_pcp_tid_map_params {
 	uint32_t vdev_id;
@@ -8840,7 +8840,7 @@ struct wifi_pos_pasn_peer_data {
  * struct mws_coex_state - Modem Wireless Subsystem(MWS) coex info
  * @vdev_id : vdev id
  * @coex_scheme_bitmap: LTE-WLAN coexistence scheme bitmap
- * Indicates the final schemes applied for the currrent Coex scenario.
+ * Indicates the final schemes applied for the current Coex scenario.
  * Bit 0 - TDM policy
  * Bit 1 - Forced TDM policy
  * Bit 2 - Dynamic Power Back-off policy
@@ -9004,7 +9004,7 @@ struct wmi_raw_event_buffer {
 	void *evt_processed_buf;
 };
 
-/* dpd_status fron WMI_PDEV_GET_DPD_STATUS_EVENTID */
+/* dpd_status from WMI_PDEV_GET_DPD_STATUS_EVENTID */
 enum wmi_host_dpd_status {
 	WMI_HOST_DPD_STATUS_FAIL = 0,
 	WMI_HOST_DPD_STATUS_PASS = 1,

+ 5 - 5
wmi/inc/wmi_unified_priv.h

@@ -291,10 +291,10 @@ struct wmi_command_header {
 
 /**
  * struct wmi_log_buf_t - WMI log buffer information type
- * @buf - Refernce to WMI log buffer
+ * @buf - Reference to WMI log buffer
  * @ length - length of buffer
  * @ buf_tail_idx - Tail index of buffer
- * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate
+ * @ p_buf_tail_idx - reference to buffer tail index. It is added to accommodate
  * unified design since MCL uses global variable for buffer tail index
  * @ size - the size of the buffer in number of entries
  */
@@ -321,9 +321,9 @@ struct wmi_log_buf_t {
  * @wmi_diag_event_log_buf_info - Buffer info for WMI diag event log
  * @wmi_record_lock - Lock WMI recording
  * @wmi_logging_enable - Enable/Disable state for WMI logging
- * @wmi_id_to_name - Function refernce to API to convert Command id to
+ * @wmi_id_to_name - Function reference to API to convert Command id to
  * string name
- * @wmi_log_debugfs_dir - refernce to debugfs directory
+ * @wmi_log_debugfs_dir - reference to debugfs directory
  * @filtered_wmi_cmds - Buffer to save inputs from user on
  * which WMI commands to record
  * @filtered_wmi_cmds_idx - target cmd index
@@ -3146,7 +3146,7 @@ QDF_STATUS
 #endif /* HEALTH_MON_SUPPORT */
 };
 
-/* Forward declartion for psoc*/
+/* Forward declaration for psoc*/
 struct wlan_objmgr_psoc;
 
 /**

+ 1 - 1
wmi/inc/wmi_unified_sta_api.h

@@ -287,7 +287,7 @@ QDF_STATUS wmi_unified_del_ts_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id,
  * @aggr_qos_rsp_msg: combined struct for all ADD_TS requests.
  *
  * A function to handle WMI_AGGR_QOS_REQ. This will send out
- * ADD_TS requestes to firmware in loop for all the ACs with
+ * ADD_TS requests to firmware in loop for all the ACs with
  * active flow.
  *
  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure

+ 1 - 1
wmi/inc/wmi_unified_sta_param.h

@@ -91,7 +91,7 @@ struct wmi_gtx_config {
  *  bit 8-9: Reserve for roaming
  *  bit 10: Disable css power collapse if setting
  *  bit 11: Disable sys sleep if setting
- *  bit 12-31: Reserve for future useage
+ *  bit 12-31: Reserve for future usage
  * @vdev_id: vdev id
  * @force_reset: bit 0 used as force reset to override the latency level as
  * default for all the wlm clients

+ 1 - 1
wmi/inc/wmi_unified_twt_param.h

@@ -465,7 +465,7 @@ struct wmi_twt_del_dialog_param {
  * @WMI_HOST_DEL_TWT_STATUS_PEER_INIT_TEARDOWN: Peer initiated TWT teardown
  * @WMI_HOST_DEL_TWT_STATUS_ROAMING: TWT teardown due to roaming.
  * @WMI_HOST_DEL_TWT_STATUS_CONCURRENCY: TWT session teardown due to
- * concurrent session comming up.
+ * concurrent session coming up.
  * @WMI_HOST_DEL_TWT_STATUS_CHAN_SW_IN_PROGRESS: Channel switch in progress
  * @WMI_HOST_DEL_TWT_STATUS_SCAN_IN_PROGRESS: Scan is in progress
  * @WMI_HOST_DEL_TWT_STATUS_PS_DISABLE_TEARDOWN: PS disable TWT teardown

+ 3 - 3
wmi/src/wmi_tlv_helper.c

@@ -536,7 +536,7 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr,
 	if (attr_struct_ptr.cmd_num_tlv > g_wmi_static_max_cmd_param_tlvs) {
 		/* Error: Expecting more TLVs that accommodated for static structure  */
 		wmi_tlv_print_error
-			("%s: Error: Expecting more TLVs that accommodated for static structure. Expected:%d Accomodated:%d\n",
+			("%s: Error: Expecting more TLVs that accommodated for static structure. Expected:%d Accommodated:%d\n",
 			__func__, attr_struct_ptr.cmd_num_tlv,
 			g_wmi_static_max_cmd_param_tlvs);
 		return error;
@@ -766,7 +766,7 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr,
 					    (param_buf_len <
 					    buf_idx + curr_tlv_len +
 					    num_padding_bytes * num_of_elems)) {
-						wmi_tlv_print_error("%s: Insufficent buffer\n",
+						wmi_tlv_print_error("%s: Insufficient buffer\n",
 								    __func__);
 						goto
 						Error_wmitlv_check_and_pad_tlvs;
@@ -787,7 +787,7 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr,
 					}
 
 					/* Move subsequent elements of array down by number of
-					 * bytes to be padded for one element and alse set
+					 * bytes to be padded for one element and also set
 					 * padding bytes to zero */
 					tlv_buf_ptr = buf_ptr;
 					for (i = 0; i < num_of_elems - 1; i++) {

+ 2 - 2
wmi/src/wmi_unified.c

@@ -2879,7 +2879,7 @@ end:
 static inline void wmi_workqueue_watchdog_warn(uint32_t msg_type_id)
 {
 	QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
-		  "%s: WLAN_BUG_RCA: Message type %x has exceeded its alloted time of %ds",
+		  "%s: WLAN_BUG_RCA: Message type %x has exceeded its allotted time of %ds",
 		  __func__, msg_type_id, WMI_WQ_WD_TIMEOUT / 1000);
 }
 
@@ -3273,7 +3273,7 @@ void *wmi_unified_attach(void *scn_handle,
 	wmi_interface_logging_init(wmi_handle, WMI_HOST_PDEV_ID_0);
 
 	wmi_interface_sequence_init(wmi_handle);
-	/* Assign target cookie capablity */
+	/* Assign target cookie capability */
 	wmi_handle->use_cookie = param->use_cookie;
 	wmi_handle->osdev = param->osdev;
 	wmi_handle->wmi_stopinprogress = 0;

+ 1 - 1
wmi/src/wmi_unified_api.c

@@ -3802,7 +3802,7 @@ wmi_unified_extract_halphy_stats_event_count(wmi_unified_t wmi_handle,
  * @vdev_id: vdev id
  *
  * TSF_TSTAMP_READ_VALUE is the only operation supported
- * Return: QDF_STATUS_SUCCESS for success or erro code
+ * Return: QDF_STATUS_SUCCESS for success or error code
  */
 QDF_STATUS wmi_unified_send_vdev_tsf_tstamp_action_cmd(wmi_unified_t wmi_hdl,
 						       uint8_t vdev_id)

+ 3 - 4
wmi/src/wmi_unified_nan_tlv.c

@@ -1,4 +1,3 @@
-
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
@@ -364,7 +363,7 @@ static QDF_STATUS nan_ndp_initiator_req_tlv(wmi_unified_t wmi_handle,
 	wmi_ndp_transport_ip_param *tcp_ip_param;
 
 	/*
-	 * WMI command expects 4 byte alligned len:
+	 * WMI command expects 4 byte aligned len:
 	 * round up ndp_cfg_len and ndp_app_info_len to 4 bytes
 	 */
 	ndp_cfg_len = qdf_roundup(ndp_req->ndp_config.ndp_cfg_len, 4);
@@ -491,7 +490,7 @@ static QDF_STATUS nan_ndp_responder_req_tlv(wmi_unified_t wmi_handle,
 		 req->ndp_info.ndp_app_info_len);
 
 	/*
-	 * WMI command expects 4 byte alligned len:
+	 * WMI command expects 4 byte aligned len:
 	 * round up ndp_cfg_len and ndp_app_info_len to 4 bytes
 	 */
 	ndp_cfg_len = qdf_roundup(req->ndp_config.ndp_cfg_len, 4);
@@ -604,7 +603,7 @@ static QDF_STATUS nan_ndp_end_req_tlv(wmi_unified_t wmi_handle,
 
 	/* len of tlv following fixed param  */
 	ndp_end_req_len = sizeof(wmi_ndp_end_req) * req->num_ndp_instances;
-	/* above comes out to 4 byte alligned already, no need of padding */
+	/* above comes out to 4 byte aligned already, no need of padding */
 	len = sizeof(*cmd) + ndp_end_req_len + WMI_TLV_HDR_SIZE;
 	buf = wmi_buf_alloc(wmi_handle, len);
 	if (!buf) {

+ 7 - 6
wmi/src/wmi_unified_ocb_tlv.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2013-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
@@ -27,7 +28,7 @@
  * @wmi_handle: pointer to the wmi handle
  * @utc: pointer to the UTC time struct
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS send_ocb_set_utc_time_cmd_tlv(wmi_unified_t wmi_handle,
 						struct ocb_utc_param *utc)
@@ -74,7 +75,7 @@ static QDF_STATUS send_ocb_set_utc_time_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @timing_advert: pointer to the timing advertisement struct
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS send_ocb_start_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
 				struct ocb_timing_advert_param *timing_advert)
@@ -137,7 +138,7 @@ static QDF_STATUS send_ocb_start_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @timing_advert: pointer to the timing advertisement struct
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS send_ocb_stop_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
 	struct ocb_timing_advert_param *timing_advert)
@@ -179,7 +180,7 @@ static QDF_STATUS send_ocb_stop_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @request: pointer to the request
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS send_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
 			  uint8_t vdev_id)
@@ -223,7 +224,7 @@ static QDF_STATUS send_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @get_stats_param: pointer to the dcc stats
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS send_dcc_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
 		     struct ocb_dcc_get_stats_param *get_stats_param)
@@ -298,7 +299,7 @@ static QDF_STATUS send_dcc_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
  * @vdev_id: vdev id
  * @dcc_stats_bitmap: dcc status bitmap
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS send_dcc_clear_stats_cmd_tlv(wmi_unified_t wmi_handle,
 				uint32_t vdev_id, uint32_t dcc_stats_bitmap)

+ 6 - 6
wmi/src/wmi_unified_ocb_ut.c

@@ -78,7 +78,7 @@ static QDF_STATUS fake_vdev_delete_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @utc: pointer to the UTC time struct
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS fake_ocb_set_utc_time_cmd_tlv(wmi_unified_t wmi_handle,
 				struct ocb_utc_param *utc)
@@ -92,7 +92,7 @@ static QDF_STATUS fake_ocb_set_utc_time_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @request: pointer to the request
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS fake_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
 			  uint8_t vdev_id)
@@ -133,7 +133,7 @@ static QDF_STATUS fake_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
  * @vdev_id: vdev id
  * @dcc_stats_bitmap: dcc status bitmap
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS fake_dcc_clear_stats_cmd_tlv(wmi_unified_t wmi_handle,
 				uint32_t vdev_id, uint32_t dcc_stats_bitmap)
@@ -164,7 +164,7 @@ wmi_dcc_ndl_stats_per_channel chan1_info[2] = {
  * @wmi_handle: pointer to the wmi handle
  * @get_stats_param: pointer to the dcc stats
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS fake_dcc_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
 		     struct ocb_dcc_get_stats_param *get_stats_param)
@@ -329,7 +329,7 @@ static QDF_STATUS fake_ocb_set_config_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @timing_advert: pointer to the timing advertisement struct
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS fake_ocb_stop_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
 	struct ocb_timing_advert_param *timing_advert)
@@ -344,7 +344,7 @@ static QDF_STATUS fake_ocb_stop_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi_handle: pointer to the wmi handle
  * @timing_advert: pointer to the timing advertisement struct
  *
- * Return: 0 on succes
+ * Return: 0 on success
  */
 static QDF_STATUS
 fake_ocb_start_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,

+ 2 - 2
wmi/src/wmi_unified_pmo_tlv.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2018-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
@@ -317,7 +317,7 @@ static void fill_arp_offload_params_tlv(wmi_unified_t wmi_handle,
 			WMITLV_TAG_STRUC_WMI_ARP_OFFLOAD_TUPLE,
 			WMITLV_GET_STRUCT_TLVLEN(WMI_ARP_OFFLOAD_TUPLE));
 
-		/* Fill data for ARP and NS in the first tupple for LA */
+		/* Fill data for ARP and NS in the first tuple for LA */
 		if ((enable_or_disable & PMO_OFFLOAD_ENABLE) && (i == 0)) {
 			/* Copy the target ip addr and flags */
 			arp_tuple->flags = WMI_ARPOFF_FLAGS_VALID;

+ 14 - 14
wmi/src/wmi_unified_tlv.c

@@ -1142,7 +1142,7 @@ send_vdev_nss_chain_params_cmd_tlv(wmi_unified_t wmi_handle,
  * @wmi: wmi handle
  * @vdev_id: vdev id
  *
- * Return: QDF_STATUS_SUCCESS for success or erro code
+ * Return: QDF_STATUS_SUCCESS for success or error code
  */
 static QDF_STATUS send_vdev_stop_cmd_tlv(wmi_unified_t wmi,
 					uint8_t vdev_id)
@@ -1246,7 +1246,7 @@ static inline void copy_channel_info(
 }
 
 /**
- * vdev_start_cmd_fill_11be() - 11be information fiiling in vdev_ststart
+ * vdev_start_cmd_fill_11be() - 11be information filling in vdev_start
  * @cmd: wmi cmd
  * @req: vdev start params
  *
@@ -2763,7 +2763,7 @@ send_dbglog_cmd_tlv(wmi_unified_t wmi_handle,
 	int32_t i;
 	int32_t len;
 	int8_t *buf_ptr;
-	int32_t *module_id_bitmap_array;     /* Used to fomr the second tlv */
+	int32_t *module_id_bitmap_array;     /* Used to form the second tlv */
 
 	ASSERT(dbglog_param->bitmap_len < MAX_MODULE_ID_BITMAP_WORDS);
 
@@ -3128,7 +3128,7 @@ static QDF_STATUS send_packet_log_disable_cmd_tlv(wmi_unified_t wmi_handle,
 #define WMI_FW_TIME_STAMP_LOW_MASK 0xffffffff
 /**
  *  send_time_stamp_sync_cmd_tlv() - Send WMI command to
- *  sync time between bwtween host and firmware
+ *  sync time between between host and firmware
  *  @param wmi_handle      : handle to WMI.
  *
  *  Return: None
@@ -3161,7 +3161,7 @@ static void send_time_stamp_sync_cmd_tlv(wmi_unified_t wmi_handle)
 		WMI_FW_TIME_STAMP_LOW_MASK;
 	/*
 	 * Send time_stamp_high 0 as the time converted from HR:MIN:SEC:MS to ms
-	 * wont exceed 27 bit
+	 * won't exceed 27 bit
 	 */
 	time_stamp->time_stamp_high = 0;
 	wmi_debug("WMA --> DBGLOG_TIME_STAMP_SYNC_CMDID mode %d time_stamp low %d high %d",
@@ -4074,7 +4074,7 @@ static QDF_STATUS send_scan_start_cmd_tlv(wmi_unified_t wmi_handle,
 				WMI_SCAN_CHAN_SET_MODE(params->chan_list.chan[i].phymode);
 		buf_ptr += phymode_roundup;
 	} else {
-		/* Add ZERO legth phy mode TLV */
+		/* Add ZERO length phy mode TLV */
 		WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_BYTE, 0);
 		buf_ptr += WMI_TLV_HDR_SIZE;
 	}
@@ -9225,7 +9225,7 @@ convert_host_to_target_band_capability(uint32_t host_band_capability)
 }
 
 /**
- * copy_feature_set_info() -Copy feaure set info from host to target
+ * copy_feature_set_info() -Copy feature set info from host to target
  * @feature_set_bitmap: Target feature set pointer
  * @feature_set: Host feature set structure
  *
@@ -9379,7 +9379,7 @@ static inline void copy_feature_set_info(uint32_t *feature_set_bitmap,
  * @wmi_handle: WMI handle
  * @feature_set: Feature set structure
  *
- * Return: QDF_STATUS_SUCCESS on success else reurn failure
+ * Return: QDF_STATUS_SUCCESS on success else return failure
  */
 static QDF_STATUS feature_set_cmd_send_tlv(
 				struct wmi_unified *wmi_handle,
@@ -9609,8 +9609,8 @@ static QDF_STATUS save_fw_version_cmd_tlv(wmi_unified_t wmi_handle, void *evt_bu
  * wmi_unified_save_fw_version_cmd() - save fw version
  * @wmi_handle:      pointer to wmi handle
  * @res_cfg:	 resource config
- * @num_mem_chunks:  no of mem chunck
- * @mem_chunk:       pointer to mem chunck structure
+ * @num_mem_chunks:  no of mem chunk
+ * @mem_chunk:       pointer to mem chunk structure
  *
  * This function sends IE information to firmware
  *
@@ -12066,7 +12066,7 @@ QDF_STATUS save_ext_service_bitmap_tlv(wmi_unified_t wmi_handle, void *evt_buf,
 static inline void copy_ht_cap_info(uint32_t ev_target_cap,
 		struct wlan_psoc_target_capability_info *cap)
 {
-       /* except LDPC all flags are common betwen legacy and here
+       /* except LDPC all flags are common between legacy and here
 	*  also IBFEER is not defined for TLV
 	*/
 	cap->ht_cap_info |= ev_target_cap & (
@@ -13839,7 +13839,7 @@ extract_svc_rdy_ext2_afc_tlv(wmi_service_ready_ext2_event_fixed_param *ev,
 		reg_afc_dev_type = AFC_DEPLOYMENT_OUTDOOR;
 		break;
 	default:
-		wmi_err("invalid afc deloyment %d", tgt_afc_dev_type);
+		wmi_err("invalid afc deployment %d", tgt_afc_dev_type);
 		reg_afc_dev_type = AFC_DEPLOYMENT_UNKNOWN;
 		break;
 	}
@@ -14755,7 +14755,7 @@ static QDF_STATUS fips_conv_data_be(uint32_t data_len, uint8_t *data)
 	if (!data_unaligned)
 		return QDF_STATUS_E_FAILURE;
 
-	/* Checking if space is alligned */
+	/* Checking if space is aligned */
 	if (!FIPS_IS_ALIGNED(data_unaligned, FIPS_ALIGN)) {
 		/* align the data space */
 		data_aligned =
@@ -18847,7 +18847,7 @@ extract_time_sync_ftm_offset_event_tlv(wmi_unified_t wmi, void *buf,
  * @vdev_id: vdev id
  *
  * TSF_TSTAMP_READ_VALUE is the only operation supported
- * Return: QDF_STATUS_SUCCESS for success or erro code
+ * Return: QDF_STATUS_SUCCESS for success or error code
  */
 static QDF_STATUS
 send_vdev_tsf_tstamp_action_cmd_tlv(wmi_unified_t wmi, uint8_t vdev_id)