From eea4516fd3be5636fcf2444eb2d525a2cfeccbfc Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 12 May 2018 14:22:00 -0700 Subject: [PATCH] qcacmn: wmi: Fix misspellings Address the following issues in the wmi folder: CHECK: 'addres' may be misspelled - perhaps 'address'? CHECK: 'COMAND' may be misspelled - perhaps 'COMMAND'? CHECK: 'defintion' may be misspelled - perhaps 'definition'? CHECK: 'happend' may be misspelled - perhaps 'happened'? CHECK: 'managment' may be misspelled - perhaps 'management'? CHECK: 'messsage' may be misspelled - perhaps 'message'? CHECK: 'overriden' may be misspelled - perhaps 'overridden'? CHECK: 'poiter' may be misspelled - perhaps 'pointer'? CHECK: 'refering' may be misspelled - perhaps 'referring'? CHECK: 'refrence' may be misspelled - perhaps 'reference'? CHECK: 'shrinked' may be misspelled - perhaps 'shrunk'? CHECK: 'succesfully' may be misspelled - perhaps 'successfully'? CHECK: 'succesful' may be misspelled - perhaps 'successful'? Change-Id: Ie97e4d83cc88a2610524b38adc3474cdd31170d9 CRs-Fixed: 2241590 --- wmi/inc/wmi_unified_param.h | 12 ++++++------ wmi/inc/wmi_unified_priv.h | 2 +- wmi/inc/wmi_unified_twt_param.h | 2 +- wmi/src/wmi_tlv_helper.c | 8 ++++---- wmi/src/wmi_unified_api.c | 4 ++-- wmi/src/wmi_unified_non_tlv.c | 12 ++++++------ wmi/src/wmi_unified_tlv.c | 16 ++++++++-------- 7 files changed, 28 insertions(+), 28 deletions(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index b33f3b356e..64dc05dd52 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -714,7 +714,7 @@ enum wmi_bcn_tx_rate_code { * @intr_update: flag to check if need to update * required wma interface params * @intr_ssid: pointer to wma interface ssid - * @intr_flags: poiter to wma interface flags + * @intr_flags: pointer to wma interface flags * @requestor_id: to update requestor id * @disable_hw_ack: to update disable hw ack flag * @info: to update channel info @@ -1137,7 +1137,7 @@ typedef struct { * @tx_mcs_set: tx mcs * @vht_capable: VHT capabalities * @tx_max_mcs_nss: max tx MCS and NSS - * @peer_bw_rxnss_override: Peer BW RX NSS overriden or not. + * @peer_bw_rxnss_override: Peer BW RX NSS overridden or not. * @is_pmf_enabled: PMF enabled * @is_wme_set: WME enabled * @qos_flag: QoS Flags @@ -1390,7 +1390,7 @@ struct dbglog_params { /** * struct seg_hdr_info - header info * @len: length - * @msgref: message refrence + * @msgref: message reference * @segmentInfo: segment info * @pad: padding */ @@ -1472,7 +1472,7 @@ struct tx_send_params { * @tx_params_valid: Flag that indicates if TX params are valid * @use_6mbps: specify whether management frame to transmit should * use 6 Mbps rather than 1 Mbps min rate(for 5GHz band or P2P) - * @tx_type: type of managment frame (determines what callback to use) + * @tx_type: type of management frame (determines what callback to use) */ struct wmi_mgmt_params { void *tx_frame; @@ -3142,7 +3142,7 @@ struct nan_req_params { * @rc4_key: rc4 key * @rc4_key_len: rc4 key length * @ip_id: NC id - * @ip_device_ip: NC IP addres + * @ip_device_ip: NC IP address * @ip_server_ip: Push server IP address * @tcp_src_port: NC TCP port * @tcp_dst_port: Push server TCP port @@ -5283,7 +5283,7 @@ struct wmi_host_per_chain_rssi_stats { * @peer_tx_rate: last tx data rate used for peer * @peer_rx_rate: last rx data rate used for peer * @currentper: Current PER - * @retries: Retries happend during transmission + * @retries: Retries happened during transmission * @txratecount: Maximum Aggregation Size * @max4msframelen: Max4msframelen of tx rates used * @totalsubframes: Total no of subframes diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h index fb677d0aac..dfe0097d55 100644 --- a/wmi/inc/wmi_unified_priv.h +++ b/wmi/inc/wmi_unified_priv.h @@ -1734,7 +1734,7 @@ void wmi_unified_register_module(enum wmi_target_type target_type, void wmi_tlv_init(void); void wmi_non_tlv_init(void); #ifdef WMI_NON_TLV_SUPPORT -/* ONLY_NON_TLV_TARGET:TLV attach dummy function defintion for case when +/* ONLY_NON_TLV_TARGET:TLV attach dummy function definition for case when * driver supports only NON-TLV target (WIN mainline) */ #define wmi_tlv_attach(x) qdf_print("TLV Unavailable\n") #else diff --git a/wmi/inc/wmi_unified_twt_param.h b/wmi/inc/wmi_unified_twt_param.h index ced9357384..3e61d47d62 100644 --- a/wmi/inc/wmi_unified_twt_param.h +++ b/wmi/inc/wmi_unified_twt_param.h @@ -151,7 +151,7 @@ enum WMI_HOST_TWT_COMMAND { * wake_dura_us must be divided evenly by 256, * i.e., wake_dura_us % 256 == 0 * @sp_offset_us: this long time after TWT setup the 1st SP will start. - * @twt_cmd: cmd from enum WMI_HOST_TWT_COMAND + * @twt_cmd: cmd from enum WMI_HOST_TWT_COMMAND * @flag_bcast: 0 means Individual TWT, * 1 means Broadcast TWT * @flag_trigger: 0 means non-Trigger-enabled TWT, diff --git a/wmi/src/wmi_tlv_helper.c b/wmi/src/wmi_tlv_helper.c index aa8f3a843d..f01cbd2d55 100644 --- a/wmi/src/wmi_tlv_helper.c +++ b/wmi/src/wmi_tlv_helper.c @@ -827,11 +827,11 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr, /* Incoming structure size is greater than expected size * then this needs shrinking for each element in the array */ - /* Find amount of bytes to be shrinked for one element */ + /* Find amount of bytes to be shrunk for one element */ num_padding_bytes = tlv_size_diff * -1; /* Move subsequent elements of array up by number of bytes - * to be shrinked for one element */ + * to be shrunk for one element */ tlv_buf_ptr = buf_ptr; for (i = 0; i < (num_of_elems - 1); i++) { src_addr = @@ -852,7 +852,7 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr, tag_struct_size; } - /* Move subsequent TLVs by number of bytes to be shrinked + /* Move subsequent TLVs by number of bytes to be shrunk * for all elements */ if (param_buf_len > (buf_idx + curr_tlv_len)) { @@ -872,7 +872,7 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr, } /* Update the number of padding bytes to total number of - * bytes shrinked for all elements in the array */ + * bytes shrunk for all elements in the array */ num_padding_bytes = num_padding_bytes * num_of_elems; diff --git a/wmi/src/wmi_unified_api.c b/wmi/src/wmi_unified_api.c index d8fb7ec269..4de0ee01c6 100644 --- a/wmi/src/wmi_unified_api.c +++ b/wmi/src/wmi_unified_api.c @@ -5396,7 +5396,7 @@ QDF_STATUS wmi_extract_ext_tbttoffset_num_vdevs(void *wmi_hdl, void *evt_buf, * wmi_extract_tbttoffset_update_params() - extract tbtt offset update param * @wmi_handle: wmi handle * @param evt_buf: pointer to event buffer - * @param idx: Index refering to a vdev + * @param idx: Index referring to a vdev * @param tbtt_param: Pointer to tbttoffset event param * * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure @@ -5417,7 +5417,7 @@ QDF_STATUS wmi_extract_tbttoffset_update_params(void *wmi_hdl, void *evt_buf, * wmi_extract_ext_tbttoffset_update_params() - extract tbtt offset update param * @wmi_handle: wmi handle * @param evt_buf: pointer to event buffer - * @param idx: Index refering to a vdev + * @param idx: Index referring to a vdev * @param tbtt_param: Pointer to tbttoffset event param * * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure diff --git a/wmi/src/wmi_unified_non_tlv.c b/wmi/src/wmi_unified_non_tlv.c index 13cab488da..a87de11fe2 100644 --- a/wmi/src/wmi_unified_non_tlv.c +++ b/wmi/src/wmi_unified_non_tlv.c @@ -840,7 +840,7 @@ send_pdev_utf_cmd_non_tlv(wmi_unified_t wmi_handle, while (param->len) { if (param->len > MAX_WMI_UTF_LEN) - chunkLen = MAX_WMI_UTF_LEN; /* MAX messsage.. */ + chunkLen = MAX_WMI_UTF_LEN; /* MAX message.. */ else chunkLen = param->len; @@ -939,7 +939,7 @@ send_pdev_qvit_cmd_non_tlv(wmi_unified_t wmi_handle, while (param->len) { if (param->len > MAX_WMI_QVIT_LEN) - chunkLen = MAX_WMI_QVIT_LEN; /* MAX messsage.. */ + chunkLen = MAX_WMI_QVIT_LEN; /* MAX message.. */ else chunkLen = param->len; @@ -4283,7 +4283,7 @@ send_pdev_fips_cmd_non_tlv(wmi_unified_t wmi_handle, int c; - /* Checking if kmalloc is succesful to allocate space */ + /* Checking if kmalloc is successful to allocate space */ if (key_unaligned == NULL) return QDF_STATUS_SUCCESS; /* Checking if space is aligned */ @@ -4306,7 +4306,7 @@ send_pdev_fips_cmd_non_tlv(wmi_unified_t wmi_handle, DUMP_PREFIX_NONE, 16, 1, key_aligned, param->key_len, true); - /* Checking if kmalloc is succesful to allocate space */ + /* Checking if kmalloc is successful to allocate space */ if (data_unaligned == NULL) return QDF_STATUS_SUCCESS; /* Checking of space is aligned */ @@ -6149,7 +6149,7 @@ static QDF_STATUS extract_fips_event_data_non_tlv(wmi_unified_t wmi_handle, u_int8_t *data_aligned = NULL; int c; - /* Checking if kmalloc does succesful allocation */ + /* Checking if kmalloc does successful allocation */ if (data_unaligned == NULL) return QDF_STATUS_E_FAILURE; @@ -6240,7 +6240,7 @@ static QDF_STATUS extract_tbttoffset_num_vdevs_non_tlv(void *wmi_hdl, * extract_tbttoffset_update_params_non_tlv() - extract tbtt offset update param * @wmi_handle: wmi handle * @param evt_buf: pointer to event buffer - * @param idx: Index refering to a vdev + * @param idx: Index referring to a vdev * @param tbtt_param: Pointer to tbttoffset event param * * Return: 0 for success or error code diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index fe7842ef65..f2828c6c35 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -1122,7 +1122,7 @@ send_pdev_utf_cmd_tlv(wmi_unified_t wmi_handle, while (param->len) { if (param->len > MAX_WMI_UTF_LEN) - chunk_len = MAX_WMI_UTF_LEN; /* MAX messsage */ + chunk_len = MAX_WMI_UTF_LEN; /* MAX message */ else chunk_len = param->len; @@ -6853,7 +6853,7 @@ static QDF_STATUS send_dbs_scan_sel_params_cmd_tlv(wmi_unified_t wmi_handle, * list that need to be applied to the scan results to form the * probable candidates for roaming. * - * Return: Return success upon succesfully passing the + * Return: Return success upon successfully passing the * parameters to the firmware, otherwise failure. */ static QDF_STATUS send_roam_scan_filter_cmd_tlv(wmi_unified_t wmi_handle, @@ -13087,7 +13087,7 @@ send_pdev_qvit_cmd_tlv(wmi_unified_t wmi_handle, while (param->len) { if (param->len > MAX_WMI_QVIT_LEN) - chunk_len = MAX_WMI_QVIT_LEN; /* MAX messsage */ + chunk_len = MAX_WMI_QVIT_LEN; /* MAX message */ else chunk_len = param->len; @@ -14025,7 +14025,7 @@ static QDF_STATUS fips_align_data_be(wmi_unified_t wmi_handle, data_unaligned = qdf_mem_malloc( sizeof(u_int8_t)*param->data_len + FIPS_ALIGN); - /* Checking if kmalloc is succesful to allocate space */ + /* Checking if kmalloc is successful to allocate space */ if (key_unaligned == NULL) return QDF_STATUS_SUCCESS; /* Checking if space is aligned */ @@ -14048,7 +14048,7 @@ static QDF_STATUS fips_align_data_be(wmi_unified_t wmi_handle, DUMP_PREFIX_NONE, 16, 1, key_aligned, param->key_len, true); - /* Checking if kmalloc is succesful to allocate space */ + /* Checking if kmalloc is successful to allocate space */ if (data_unaligned == NULL) return QDF_STATUS_SUCCESS; /* Checking of space is aligned */ @@ -18450,7 +18450,7 @@ static QDF_STATUS extract_ext_tbttoffset_num_vdevs_tlv(void *wmi_hdl, * extract_tbttoffset_update_params_tlv() - extract tbtt offset param * @wmi_handle: wmi handle * @param evt_buf: pointer to event buffer - * @param idx: Index refering to a vdev + * @param idx: Index referring to a vdev * @param tbtt_param: Pointer to tbttoffset event param * * Return: QDF_STATUS_SUCCESS for success or error code @@ -18484,7 +18484,7 @@ static QDF_STATUS extract_tbttoffset_update_params_tlv(void *wmi_hdl, * extract_ext_tbttoffset_update_params_tlv() - extract ext tbtt offset param * @wmi_handle: wmi handle * @param evt_buf: pointer to event buffer - * @param idx: Index refering to a vdev + * @param idx: Index referring to a vdev * @param tbtt_param: Pointer to tbttoffset event param * * Return: QDF_STATUS_SUCCESS for success or error code @@ -20422,7 +20422,7 @@ static QDF_STATUS fips_conv_data_be(uint32_t data_len, uint8_t *data) data_unaligned = qdf_mem_malloc(((sizeof(uint8_t) * data_len) + FIPS_ALIGN)); /* Assigning unaligned space to copy the data */ - /* Checking if kmalloc does succesful allocation */ + /* Checking if kmalloc does successful allocation */ if (data_unaligned == NULL) return QDF_STATUS_E_FAILURE;