Browse Source

qcacld-3.0: core: sme: Fix misspellings

Fix misspellings in core/sme/...

Change-Id: Ic5ac73d86a5ef245d2a19d34dc8e97f4f55665b1
CRs-Fixed: 3303624
Jeff Johnson 2 years ago
parent
commit
08a4ea4992

+ 1 - 1
core/sme/inc/csr_internal.h

@@ -479,7 +479,7 @@ uint32_t csr_get_concurrent_operation_freq(struct mac_context *mac_ctx);
  *
  * This routine will return operating channel of active AP/GO channel
  * and will skip the channel of vdev_id_to_skip.
- * If other no reqested mode is active it will return 0
+ * If other no requested mode is active it will return 0
  *
  * Return: uint32_t
  */

+ 8 - 8
core/sme/inc/sme_api.h

@@ -114,7 +114,7 @@
 				      SIR_DELETE_STA_TIMEOUT + 1000)
 #define SME_CMD_STOP_BSS_TIMEOUT (SME_CMD_STOP_BSS_CMD_TIMEOUT + 1000)
 
-/* Peer disconenct timeout = peer delete + 1 sec */
+/* Peer disconnect timeout = peer delete + 1 sec */
 #define SME_CMD_PEER_DISCONNECT_TIMEOUT (SIR_DELETE_STA_TIMEOUT + 1000)
 #define SME_PEER_DISCONNECT_TIMEOUT (SME_CMD_PEER_DISCONNECT_TIMEOUT + 1000)
 
@@ -246,7 +246,7 @@ enum {
 };
 
 /*-------------------------------------------------------------------------
-  Function declarations and documenation
+  Function declarations and documentation
   ------------------------------------------------------------------------*/
 QDF_STATUS sme_open(mac_handle_t mac_handle);
 QDF_STATUS sme_init_chan_list(mac_handle_t mac_handle, uint8_t *alpha2,
@@ -393,11 +393,11 @@ struct wlan_objmgr_vdev *sme_vdev_create(mac_handle_t mac_handle,
 /**
  * sme_vdev_post_vdev_create_setup() - setup the lower layers for the new vdev
  * @mac_handle: The handle returned by mac_open
- * @vdev: Object manger vdev
+ * @vdev: Object manager vdev
  *
  * This api will setup the csr/mlme/wma layer for the newly created vdev.
  *
- * If the post vdev setup is successfull, we will have following vdev refs
+ * If the post vdev setup is successful, we will have following vdev refs
  * 1) WLAN_OBJMGR_ID  for self peer
  * 2) WLAN_LEGACY_WMA_ID for vdev
  *
@@ -408,7 +408,7 @@ QDF_STATUS sme_vdev_post_vdev_create_setup(mac_handle_t mac_handle,
 
 /**
  * sme_vdev_set_data_tx_callback() - Set dp vdev tx callback
- * @vdev: Object manger vdev
+ * @vdev: Object manager vdev
  *
  * This api will setup the dp vdev tx data callbaack.
  *
@@ -881,7 +881,7 @@ QDF_STATUS sme_configure_app_type2_params(mac_handle_t mac_handle,
  *
  * This routine will return operating channel of active AP/GO channel
  * and will skip the channel of vdev_id_to_skip.
- * If other no reqested mode is active it will return 0
+ * If other no requested mode is active it will return 0
  *
  * Return: uint32_t
  */
@@ -2275,7 +2275,7 @@ QDF_STATUS sme_fips_request(mac_handle_t mac_handle, struct fips_params *param,
 #endif /* WLAN_FEATURE_FIPS */
 
 /**
- * sme_set_cts2self_for_p2p_go() - sme function to set ini parms to FW.
+ * sme_set_cts2self_for_p2p_go() - sme function to set ini params to FW.
  * @mac_handle: Opaque handle to the global MAC context
  *
  * Return: QDF_STATUS
@@ -2883,7 +2883,7 @@ QDF_STATUS sme_set_he_bss_color(mac_handle_t mac_handle, uint8_t session_id,
 bool sme_is_conn_state_connected(mac_handle_t mac_handle, uint8_t session_id);
 
 /**
- * sme_get_bss_transition_status() - get bss transition status all cadidates
+ * sme_get_bss_transition_status() - get bss transition status all candidates
  * @mac_handle: handle returned by mac_open
  * @transition_reason : Transition reason
  * @bssid: bssid to get BSS transition status

+ 10 - 10
core/sme/src/common/sme_api.c

@@ -791,7 +791,7 @@ sme_register_vdev_delete_callback(struct mac_context *mac)
 /* Global APIs */
 
 /**
- * sme_open() - Initialze all SME modules and put them at idle state
+ * sme_open() - Initialize all SME modules and put them at idle state
  * @mac_handle:       The handle returned by mac_open
  *
  * The function initializes each module inside SME, PMC, CSR, etc. Upon
@@ -938,7 +938,7 @@ void sme_update_fine_time_measurement_capab(mac_handle_t mac_handle,
 }
 
 /*
- * sme_update_config() - Change configurations for all SME moduels
+ * sme_update_config() - Change configurations for all SME modules
  * The function updates some configuration for modules in SME, CSR, etc
  *  during SMEs close open sequence.
  * Modules inside SME apply the new configuration at the next transaction.
@@ -3084,7 +3084,7 @@ static QDF_STATUS sme_process_nss_update_resp(struct mac_context *mac, uint8_t *
 				command->u.nss_update_cmd.original_vdev_id,
 				command->u.nss_update_cmd.request_id);
 	} else {
-		sme_err("Callback does not exisit");
+		sme_err("Callback does not exist");
 	}
 
 	found = csr_nonscan_active_ll_remove_entry(mac, entry, LL_ACCESS_LOCK);
@@ -5683,7 +5683,7 @@ static bool sme_search_in_base_ch_freq_lst(
  * @reason: Mac Disconnect reason code as per @enum wlan_reason_code
  *
  * If new country code does not support the channel on which STA/P2P client
- * is connetced, it sends the disconnect to the AP/P2P GO
+ * is connected, it sends the disconnect to the AP/P2P GO
  *
  * Return: void
  */
@@ -7227,7 +7227,7 @@ QDF_STATUS sme_get_roam_scan_channel_list(mac_handle_t mac_handle,
 
 /*
  * sme_get_is_ese_feature_enabled() - get ESE feature enabled or not
- *  This is a synchronuous call
+ *  This is a synchronous call
  *
  * mac_handle - The handle returned by mac_open.
  * Return true (1) - if the ESE feature is enabled
@@ -7260,7 +7260,7 @@ bool sme_get_wes_mode(mac_handle_t mac_handle)
 
 /*
  * sme_get_is_lfr_feature_enabled() - get LFR feature enabled or not
- *  This is a synchronuous call
+ *  This is a synchronous call
  * mac_handle - The handle returned by mac_open.
  * Return true (1) - if the feature is enabled
  *	  false (0) - if feature is disabled (compile or runtime)
@@ -7274,7 +7274,7 @@ bool sme_get_is_lfr_feature_enabled(mac_handle_t mac_handle)
 
 /*
  * sme_get_is_ft_feature_enabled() - get FT feature enabled or not
- *  This is a synchronuous call
+ *  This is a synchronous call
  *
  * mac_handle - The handle returned by mac_open.
  * Return true (1) - if the feature is enabled
@@ -12094,7 +12094,7 @@ QDF_STATUS sme_set_fw_test(struct set_fwtest_params *fw_test)
 
 /**
  * sme_ht40_stop_obss_scan() - ht40 obss stop scan
- * @mac_handle: mac handel
+ * @mac_handle: mac handle
  * @vdev_id: vdev identifier
  *
  * Return: Return QDF_STATUS, otherwise appropriate failure code
@@ -14168,7 +14168,7 @@ void sme_display_disconnect_stats(mac_handle_t mac_handle, uint8_t session_id)
 	sme_nofl_info("Total No. of Disconnections: %d",
 		      session->disconnect_stats.disconnection_cnt);
 
-	sme_nofl_info("No. of Diconnects Triggered by Application: %d",
+	sme_nofl_info("No. of Disconnects Triggered by Application: %d",
 		      session->disconnect_stats.disconnection_by_app);
 
 	sme_nofl_info("No. of Disassoc Sent by Peer: %d",
@@ -14187,7 +14187,7 @@ void sme_display_disconnect_stats(mac_handle_t mac_handle, uint8_t session_id)
 #ifdef FEATURE_WLAN_DYNAMIC_CVM
  /**
  * sme_set_vc_mode_config() - Set voltage corner config to FW
- * @bitmap:	Bitmap that referes to voltage corner config with
+ * @bitmap:	Bitmap that refers to voltage corner config with
  * different phymode and bw configuration
  *
  * Return: QDF_STATUS

+ 2 - 2
core/sme/src/common/sme_power_save.c

@@ -378,7 +378,7 @@ QDF_STATUS sme_ps_enable_disable(mac_handle_t mac_handle, uint32_t session_id,
 	status =  sme_enable_sta_ps_check(mac_ctx, session_id, command);
 	if (status != QDF_STATUS_SUCCESS) {
 		/*
-		 * In non associated state driver wont handle the power save
+		 * In non associated state driver won't handle the power save
 		 * But kernel expects return status success even
 		 * in the disconnected state.
 		 */
@@ -784,7 +784,7 @@ QDF_STATUS sme_ps_disable_auto_ps_timer(mac_handle_t mac_handle,
 
 	ps_param = &ps_global_info->ps_params[session_id];
 	/*
-	 * Stop the auto ps entry timer if runnin
+	 * Stop the auto ps entry timer if running
 	 */
 	if (QDF_TIMER_STATE_RUNNING ==
 			qdf_mc_timer_get_current_state(

+ 4 - 4
core/sme/src/csr/csr_api_roam.c

@@ -1165,7 +1165,7 @@ QDF_STATUS csr_stop(struct mac_context *mac)
 	wlan_scan_psoc_set_disable(mac->psoc, REASON_SYSTEM_DOWN);
 
 	/*
-	 * purge all serialization commnad if there are any pending to make
+	 * purge all serialization command if there are any pending to make
 	 * sure memory and vdev ref are freed.
 	 */
 	csr_purge_pdev_all_ser_cmd_list(mac);
@@ -1358,7 +1358,7 @@ static QDF_STATUS csr_roam_close(struct mac_context *mac)
 	struct csr_roam_session *session;
 
 	/*
-	 * purge all serialization commnad if there are any pending to make
+	 * purge all serialization command if there are any pending to make
 	 * sure memory and vdev ref are freed.
 	 */
 	csr_purge_pdev_all_ser_cmd_list(mac);
@@ -3113,7 +3113,7 @@ csr_roam_send_disconnect_done_indication(struct mac_context *mac_ctx,
  * @msg_buf:    message buffer
  *
  * We need to be careful on whether to cast msg_buf (pSmeRsp) to other type of
- * strucutres. It depends on how the message is constructed. If the message is
+ * structures. It depends on how the message is constructed. If the message is
  * sent by lim_send_sme_rsp, the msg_buf is only a generic response and can only
  * be used as pointer to tSirSmeRsp. For the messages where sender allocates
  * memory for specific structures, then it can be cast accordingly.
@@ -3867,7 +3867,7 @@ csr_roam_chk_lnk_assoc_ind_upper_layer(
 	 *in the lim_assoc_rsp_tx_complete -> lim_fill_sme_assoc_ind_params
 	 *and then assoc_ind will pass here, so after using it
 	 *in the csr_send_assoc_ind_to_upper_layer_cnf_msg and
-	 *then free the memroy here.
+	 *then free the memory here.
 	 */
 free_mem:
 	if (assoc_ind->assocReqLength != 0 && assoc_ind->assocReqPtr)

+ 2 - 2
core/sme/src/csr/csr_inside_api.h

@@ -89,7 +89,7 @@ void csr_roam_complete(struct mac_context *mac, uint8_t session_id);
 /**
  * csr_issue_set_context_req_helper  - Function to fill unicast/broadcast keys
  * request to set the keys to fw
- * @mac:         Poiner to mac context
+ * @mac:         Pointer to mac context
  * @vdev_id:     vdev id
  * @bssid:       Connected BSSID
  * @addkey:      Is add key request to crypto
@@ -126,7 +126,7 @@ QDF_STATUS csr_send_assoc_cnf_msg(struct mac_context *mac,
  * csr_get_cfg_valid_channels() - Get valid channel frequency list
  * @mac: mac context
  * @ch_freq_list: valid channel frequencies
- * @num_ch_freq: valid channel nummber
+ * @num_ch_freq: valid channel number
  *
  * This function returns the valid channel frequencies.
  *

+ 13 - 13
core/sme/src/qos/sme_qos.c

@@ -646,7 +646,7 @@ QDF_STATUS sme_qos_close(struct mac_context *mac)
  *               flow (i.e. setup success/failure/release) which needs to
  *               be sent to HDD
  * @HDDcontext: A cookie passed by HDD to be used by SME during any QoS
- *              notification (through the callabck) to HDD
+ *              notification (through the callback) to HDD
  * @UPType: Useful only if HDD or any other upper layer module (BAP etc.)
  *          looking for implicit QoS setup, in that
  *          case, the pQoSInfo will be NULL & SME will know about the AC
@@ -765,7 +765,7 @@ enum sme_qos_statustype sme_qos_modify_req(mac_handle_t mac_handle,
  *             It is only meaningful if the QoS setup for the flow is successful
  *
  * This function should be called only if a QoS is set up with a valid FlowID.
- * HDD sould invoke this API only if an explicit request for QoS release has
+ * HDD should invoke this API only if an explicit request for QoS release has
  * come from Application
  *
  * Return: QDF_STATUS_SUCCESS - Release is successful.
@@ -1001,7 +1001,7 @@ uint8_t sme_qos_get_acm_mask(struct mac_context *mac, struct bss_description
  *                flow (i.e. setup success/failure/release) which needs to
  *                be sent to HDD
  *  @HDDcontext: A cookie passed by HDD to be used by SME during any QoS
- *               notification (through the callabck) to HDD
+ *               notification (through the callback) to HDD
  *  @UPType: Useful only if HDD or any other upper layer module (BAP etc.)
  *           looking for implicit QoS setup, in that
  *           case, the pQoSInfo will be NULL & SME will know about the AC
@@ -1075,7 +1075,7 @@ static enum sme_qos_statustype sme_qos_internal_setup_req(struct mac_context *ma
 	/* check to consider the following flowing scenario.
 	 * Addts request is pending on one AC, while APSD requested on another
 	 * which needs a reassoc. Will buffer a request if Addts is pending
-	 * on any AC, which will safegaurd the above scenario, & also won't
+	 * on any AC, which will safeguard the above scenario, & also won't
 	 * confuse PE with back to back Addts or Addts followed by Reassoc
 	 */
 	if (sme_qos_is_rsp_pending(sessionId, ac)) {
@@ -1524,7 +1524,7 @@ static enum sme_qos_statustype sme_qos_internal_setup_req(struct mac_context *ma
 			pACInfo->curr_state);
 		new_state = pACInfo->curr_state;
 	}
-	/* If current state is same as previous no need for transistion,
+	/* If current state is same as previous no need for transition,
 	 * if we are doing reassoc & we are already in handoff state, no need to
 	 * move to requested state. But make sure to set the previous state as
 	 * requested state
@@ -1650,7 +1650,7 @@ static enum sme_qos_statustype sme_qos_internal_modify_req(struct mac_context *m
 	/* check to consider the following flowing scenario.
 	 * Addts request is pending on one AC, while APSD requested on another
 	 * which needs a reassoc. Will buffer a request if Addts is pending on
-	 * any AC, which will safegaurd the above scenario, & also won't
+	 * any AC, which will safeguard the above scenario, & also won't
 	 * confuse PE with back to back Addts or Addts followed by Reassoc
 	 */
 	if (sme_qos_is_rsp_pending(sessionId, ac)) {
@@ -1933,7 +1933,7 @@ static enum sme_qos_statustype sme_qos_internal_release_req(struct mac_context *
 	/* check to consider the following flowing scenario.
 	 * Addts request is pending on one AC, while APSD requested on another
 	 * which needs a reassoc. Will buffer a request if Addts is pending on
-	 * any AC, which will safegaurd the above scenario, & also won't
+	 * any AC, which will safeguard the above scenario, & also won't
 	 * confuse PE with back to back Addts or Addts followed by Reassoc
 	 */
 	if (sme_qos_is_rsp_pending(sessionId, ac)) {
@@ -3236,7 +3236,7 @@ static QDF_STATUS sme_qos_ft_aggr_qos_req(struct mac_context *mac_ctx, uint8_t
 
 	for (i = 0; i < QCA_WLAN_AC_ALL; i++) {
 		for (j = 0; j < SME_QOS_TSPEC_INDEX_MAX; j++) {
-			sme_debug("ac=%d, tspec_mask_staus=%x, tspec_index=%d direction = %d",
+			sme_debug("ac=%d, tspec_mask_status=%x, tspec_index=%d direction = %d",
 				  i, session->ac_info[i].tspec_mask_status, j,
 				  session->ac_info[i].addTsRsp[j].rsp.tspec.
 				  tsinfo.traffic.direction);
@@ -4218,7 +4218,7 @@ static QDF_STATUS sme_qos_process_reassoc_req_ev(struct mac_context *mac, uint8_
  *
  * This function is called by sme_qos_process_reassoc_success_ev
  * to update the state machine on the reception of reassoc success
- * notificaiton
+ * notification
  *
  * Return: QDF_STATUS
  */
@@ -5268,7 +5268,7 @@ static QDF_STATUS sme_qos_process_add_ts_success_rsp(struct mac_context *mac,
 }
 
 /*
- * sme_qos_aggregate_params() - Utility function to increament the TSPEC
+ * sme_qos_aggregate_params() - Utility function to increment the TSPEC
  *  params per AC. Typical usage while using flow aggregation or deletion of
  *  flows
  *
@@ -6171,7 +6171,7 @@ static QDF_STATUS sme_qos_modification_notify_fnp(struct mac_context *mac, tList
 }
 
 /*
- * sme_qos_modify_fnp() - Utility function (pointer) to delete the origianl
+ * sme_qos_modify_fnp() - Utility function (pointer) to delete the original
  *  entry in FLOW list & add the modified one
  *
  * mac - Pointer to the global MAC parameter structure.
@@ -6992,9 +6992,9 @@ enum sme_qos_statustype sme_qos_re_request_add_ts(struct mac_context *mac_ctx,
 	/*
 	 * call PMC's request for power function
 	 * AND another check is added considering the flowing scenario
-	 * Addts reqest is pending on one AC, while APSD requested on
+	 * Addts request is pending on one AC, while APSD requested on
 	 * another which needs a reassoc. Will buffer a request if Addts
-	 * is pending on any AC, which will safegaurd the above scenario,
+	 * is pending on any AC, which will safeguard the above scenario,
 	 * 2& also won't confuse PE with back to back Addts or Addts
 	 * followed by Reassoc.
 	 */

+ 5 - 5
core/sme/src/rrm/sme_rrm.c

@@ -517,7 +517,7 @@ static QDF_STATUS sme_rrm_send_scan_result(struct mac_context *mac_ctx,
 		 * Spec. doesn't say anything about such condition
 		 * Since section 7.4.6.2 (IEEE802.11k-2008) says-rrm report
 		 * frame should contain one or more report IEs. It probably
-		 * means dont send any respose if no matching BSS found.
+		 * means dont send any response if no matching BSS found.
 		 * Moreover, there is no flag or field in measurement report
 		 * IE(7.3.2.22) OR beacon report IE(7.3.2.22.6) that can be set
 		 * to indicate no BSS found on a given channel. If we finished
@@ -574,13 +574,13 @@ static QDF_STATUS sme_rrm_send_scan_result(struct mac_context *mac_ctx,
 	status = wlan_mlme_get_bssid_vdev_id(mac_ctx->pdev, session_id,
 					     &bss_peer_mac);
 	if (QDF_IS_STATUS_ERROR(status)) {
-		sme_err("Invaild session %d", session_id);
+		sme_err("Invalid session %d", session_id);
 		status = QDF_STATUS_E_FAILURE;
 		goto rrm_send_scan_results_done;
 	}
 
 	if (!cm_is_vdevid_connected(mac_ctx->pdev, session_id)) {
-		sme_err("Invaild session");
+		sme_err("Invalid session");
 		status = QDF_STATUS_E_FAILURE;
 		goto rrm_send_scan_results_done;
 	}
@@ -1699,10 +1699,10 @@ static void rrm_change_default_config_param(struct mac_context *mac)
 }
 
 /**
- * rrm_open() - Initialze all RRM module
+ * rrm_open() - Initialize all RRM module
  * @ mac: The handle returned by mac_open.
  *
- * Initialze all RRM module.
+ * Initialize all RRM module.
  *
  * Return: QDF_STATUS
  */