Procházet zdrojové kódy

qcacld-3.0: mac: Fix misspellings

Address the following issues in the core/mac folder:
CHECK: 'absense' may be misspelled - perhaps 'absence'?
CHECK: 'accquired' may be misspelled - perhaps 'acquired'?
CHECK: 'acknowledgement' may be misspelled - perhaps 'acknowledgment'?
CHECK: 'arbitary' may be misspelled - perhaps 'arbitrary'?
CHECK: 'automaticly' may be misspelled - perhaps 'automatically'?
CHECK: 'calulate' may be misspelled - perhaps 'calculate'?
CHECK: 'couter' may be misspelled - perhaps 'counter'?
CHECK: 'defferred' may be misspelled - perhaps 'deferred'?
CHECK: 'Defintions' may be misspelled - perhaps 'Definitions'?
CHECK: 'dependant' may be misspelled - perhaps 'dependent'?
CHECK: 'dosen' may be misspelled - perhaps 'doesn'?
CHECK: 'endianess' may be misspelled - perhaps 'endianness'?
CHECK: 'explicitely' may be misspelled - perhaps 'explicitly'?
CHECK: 'fimware' may be misspelled - perhaps 'firmware'?
CHECK: 'fucntion' may be misspelled - perhaps 'function'?
CHECK: 'Funtion' may be misspelled - perhaps 'Function'?
CHECK: 'immediatly' may be misspelled - perhaps 'immediately'?
CHECK: 'implemetation' may be misspelled - perhaps 'implementation'?
CHECK: 'Intialize' may be misspelled - perhaps 'Initialize'?
CHECK: 'lengh' may be misspelled - perhaps 'length'?
CHECK: 'managment' may be misspelled - perhaps 'management'?
CHECK: 'Managment' may be misspelled - perhaps 'Management'?
CHECK: 'messsages' may be misspelled - perhaps 'messages'?
CHECK: 'Notifed' may be misspelled - perhaps 'Notified'?
CHECK: 'parametes' may be misspelled - perhaps 'parameters'?
CHECK: 'Paramters' may be misspelled - perhaps 'Parameters'?
CHECK: 'processsing' may be misspelled - perhaps 'processing'?
CHECK: 'receving' may be misspelled - perhaps 'receiving'?
CHECK: 'Recieved' may be misspelled - perhaps 'Received'?
CHECK: 'reponse' may be misspelled - perhaps 'response'?
CHECK: 'reseting' may be misspelled - perhaps 'resetting'?

Change-Id: Id58b5bf38fe88007c88cbda62a1fc43c0f1b3a37
CRs-Fixed: 2241942
Jeff Johnson před 7 roky
rodič
revize
47d7524e3e
32 změnil soubory, kde provedl 58 přidání a 58 odebrání
  1. 1 1
      core/mac/inc/ani_global.h
  2. 2 2
      core/mac/inc/qwlan_version.h
  3. 1 1
      core/mac/inc/sir_api.h
  4. 1 1
      core/mac/inc/sir_mac_prot_def.h
  5. 1 1
      core/mac/src/include/sir_params.h
  6. 2 2
      core/mac/src/include/utils_api.h
  7. 2 2
      core/mac/src/pe/include/lim_ft_defs.h
  8. 1 1
      core/mac/src/pe/include/lim_session.h
  9. 1 1
      core/mac/src/pe/lim/lim_api.c
  10. 1 1
      core/mac/src/pe/lim/lim_assoc_utils.c
  11. 1 1
      core/mac/src/pe/lim/lim_ft.c
  12. 1 1
      core/mac/src/pe/lim/lim_ibss_peer_mgmt.c
  13. 4 4
      core/mac/src/pe/lim/lim_process_action_frame.c
  14. 1 1
      core/mac/src/pe/lim/lim_process_assoc_req_frame.c
  15. 1 1
      core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c
  16. 1 1
      core/mac/src/pe/lim/lim_process_beacon_frame.c
  17. 4 4
      core/mac/src/pe/lim/lim_process_message_queue.c
  18. 1 1
      core/mac/src/pe/lim/lim_process_mlm_req_messages.c
  19. 3 3
      core/mac/src/pe/lim/lim_process_sme_req_messages.c
  20. 4 4
      core/mac/src/pe/lim/lim_process_tdls.c
  21. 1 1
      core/mac/src/pe/lim/lim_security_utils.c
  22. 2 2
      core/mac/src/pe/lim/lim_send_management_frames.c
  23. 1 1
      core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
  24. 5 5
      core/mac/src/pe/lim/lim_ser_des_utils.h
  25. 1 1
      core/mac/src/pe/lim/lim_session.c
  26. 1 1
      core/mac/src/pe/lim/lim_sme_req_utils.h
  27. 2 2
      core/mac/src/pe/lim/lim_trace.c
  28. 4 4
      core/mac/src/pe/lim/lim_utils.c
  29. 1 1
      core/mac/src/pe/nan/nan_datapath.h
  30. 3 3
      core/mac/src/pe/sch/sch_beacon_process.c
  31. 2 2
      core/mac/src/sys/legacy/src/system/src/mac_init_api.c
  32. 1 1
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 1 - 1
core/mac/inc/ani_global.h

@@ -820,7 +820,7 @@ typedef struct sRrmContext {
 } tRrmContext, *tpRrmContext;
 } tRrmContext, *tpRrmContext;
 
 
 typedef struct sHalMacStartParameters {
 typedef struct sHalMacStartParameters {
-	/* parametes for the Firmware */
+	/* parameters for the Firmware */
 	enum qdf_driver_type driverType;
 	enum qdf_driver_type driverType;
 
 
 } tHalMacStartParameters;
 } tHalMacStartParameters;

+ 2 - 2
core/mac/inc/qwlan_version.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -25,7 +25,7 @@
 
 
    BRIEF DESCRIPTION:
    BRIEF DESCRIPTION:
    WLAN Host Version file.
    WLAN Host Version file.
-   Build number automaticly updated by build scripts.
+   Build number automatically updated by build scripts.
 
 
    ===========================================================================*/
    ===========================================================================*/
 
 

+ 1 - 1
core/mac/inc/sir_api.h

@@ -1115,7 +1115,7 @@ typedef struct sSirSmeJoinReq {
 	 */
 	 */
 } tSirSmeJoinReq, *tpSirSmeJoinReq;
 } tSirSmeJoinReq, *tpSirSmeJoinReq;
 
 
-/* / Definition for reponse message to previously issued join request */
+/* / Definition for response message to previously issued join request */
 /* / MAC ---> */
 /* / MAC ---> */
 typedef struct sSirSmeJoinRsp {
 typedef struct sSirSmeJoinRsp {
 	uint16_t messageType;   /* eWNI_SME_JOIN_RSP */
 	uint16_t messageType;   /* eWNI_SME_JOIN_RSP */

+ 1 - 1
core/mac/inc/sir_mac_prot_def.h

@@ -208,7 +208,7 @@
 #define SIR_MAC_DLP_RSP             1
 #define SIR_MAC_DLP_RSP             1
 #define SIR_MAC_DLP_TEARDOWN        2
 #define SIR_MAC_DLP_TEARDOWN        2
 
 
-/* block acknowledgement action frame types */
+/* block acknowledgment action frame types */
 #define SIR_MAC_ACTION_VENDOR_SPECIFIC 9
 #define SIR_MAC_ACTION_VENDOR_SPECIFIC 9
 #define SIR_MAC_ACTION_VENDOR_SPECIFIC_CATEGORY     0x7F
 #define SIR_MAC_ACTION_VENDOR_SPECIFIC_CATEGORY     0x7F
 #define SIR_MAC_ACTION_P2P_SUBTYPE_PRESENCE_RSP     2
 #define SIR_MAC_ACTION_P2P_SUBTYPE_PRESENCE_RSP     2

+ 1 - 1
core/mac/src/include/sir_params.h

@@ -780,7 +780,7 @@ struct sir_mgmt_msg {
 
 
 /* ****************************************** *
 /* ****************************************** *
 *                                            *
 *                                            *
-*         EVENT TYPE Defintions              *
+*         EVENT TYPE Definitions              *
 *                                            *
 *                                            *
 * ****************************************** */
 * ****************************************** */
 
 

+ 2 - 2
core/mac/src/include/utils_api.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -615,7 +615,7 @@ static inline int32_t hal_round_s32(int32_t p)
 	return k;
 	return k;
 }
 }
 
 
-/* New functions for endianess conversion */
+/* New functions for endianness conversion */
 #ifdef ANI_LITTLE_BYTE_ENDIAN
 #ifdef ANI_LITTLE_BYTE_ENDIAN
 #define ani_cpu_to_be16(x) sir_swap_u16((x))
 #define ani_cpu_to_be16(x) sir_swap_u16((x))
 #define ani_cpu_to_le16(x) (x)
 #define ani_cpu_to_le16(x) (x)

+ 2 - 2
core/mac/src/pe/include/lim_ft_defs.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -113,7 +113,7 @@ typedef struct sFTPEContext {
 	uint32_t smeSessionId;
 	uint32_t smeSessionId;
 
 
 	/* This flag is required to indicate on which session the preauth
 	/* This flag is required to indicate on which session the preauth
-	 * has taken place, since the auth reponse for preauth will come
+	 * has taken place, since the auth response for preauth will come
 	 * for a new BSSID for which there is no session yet. This flag
 	 * for a new BSSID for which there is no session yet. This flag
 	 * will be used to extract the session from the session preauth
 	 * will be used to extract the session from the session preauth
 	 * has been initiated
 	 * has been initiated

+ 1 - 1
core/mac/src/pe/include/lim_session.h

@@ -478,7 +478,7 @@ typedef struct sPESession       /* Added to Support BT-AMP */
 	tComebackTimerInfo pmfComebackTimerInfo;
 	tComebackTimerInfo pmfComebackTimerInfo;
 #endif /* WLAN_FEATURE_11W */
 #endif /* WLAN_FEATURE_11W */
 	uint8_t  is_key_installed;
 	uint8_t  is_key_installed;
-	/* timer for reseting protection fileds at regular intervals */
+	/* timer for resetting protection fileds at regular intervals */
 	qdf_mc_timer_t protection_fields_reset_timer;
 	qdf_mc_timer_t protection_fields_reset_timer;
 	void *mac_ctx;
 	void *mac_ctx;
 	/*
 	/*

+ 1 - 1
core/mac/src/pe/lim/lim_api.c

@@ -202,7 +202,7 @@ static void __lim_init_vars(tpAniSirGlobal pMac)
 	/* Place holder for Measurement Req/Rsp/Ind related info */
 	/* Place holder for Measurement Req/Rsp/Ind related info */
 
 
 
 
-	/* Deferred Queue Paramters */
+	/* Deferred Queue Parameters */
 	qdf_mem_set(&pMac->lim.gLimDeferredMsgQ, sizeof(tSirAddtsReq), 0);
 	qdf_mem_set(&pMac->lim.gLimDeferredMsgQ, sizeof(tSirAddtsReq), 0);
 
 
 	/* addts request if any - only one can be outstanding at any time */
 	/* addts request if any - only one can be outstanding at any time */

+ 1 - 1
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -3247,7 +3247,7 @@ lim_check_and_announce_join_success(tpAniSirGlobal mac_ctx,
 
 
 		/*
 		/*
 		 * If MAX Noa exceeds 3 secs we will consider only 3 secs to
 		 * If MAX Noa exceeds 3 secs we will consider only 3 secs to
-		 * avoid arbitary values in noa duration field
+		 * avoid arbitrary values in noa duration field
 		 */
 		 */
 		noa = noa > MAX_NOA_PERIOD_IN_MICROSECS ?
 		noa = noa > MAX_NOA_PERIOD_IN_MICROSECS ?
 				MAX_NOA_PERIOD_IN_MICROSECS : noa;
 				MAX_NOA_PERIOD_IN_MICROSECS : noa;

+ 1 - 1
core/mac/src/pe/lim/lim_ft.c

@@ -1083,7 +1083,7 @@ tSirRetStatus lim_process_ft_aggr_qos_req(tpAniSirGlobal pMac, uint32_t *pMsgBuf
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 	else {
 	else {
 		/* Implies it is a LFR3.0 based 11r connection
 		/* Implies it is a LFR3.0 based 11r connection
-		 * so donot send add ts request to fimware since it
+		 * so donot send add ts request to firmware since it
 		 * already has the RIC IEs */
 		 * already has the RIC IEs */
 
 
 		/* Send the Aggr QoS response to SME */
 		/* Send the Aggr QoS response to SME */

+ 1 - 1
core/mac/src/pe/lim/lim_ibss_peer_mgmt.c

@@ -851,7 +851,7 @@ lim_ibss_decide_protection(tpAniSirGlobal pMac, tpDphHashNode pStaDs,
 		if ((phyMode == WNI_CFG_PHY_MODE_11G)
 		if ((phyMode == WNI_CFG_PHY_MODE_11G)
 		    || (psessionEntry->htCapability)) {
 		    || (psessionEntry->htCapability)) {
 			/* As we found in the past, it is possible that a 11n STA sends
 			/* As we found in the past, it is possible that a 11n STA sends
-			 * Beacon with HT IE but not ERP IE.  So the absense of ERP IE
+			 * Beacon with HT IE but not ERP IE.  So the absence of ERP IE
 			 * in the Beacon is not enough to conclude that STA is 11b.
 			 * in the Beacon is not enough to conclude that STA is 11b.
 			 */
 			 */
 			if ((pStaDs->erpEnabled == eHAL_CLEAR) &&
 			if ((pStaDs->erpEnabled == eHAL_CLEAR) &&

+ 4 - 4
core/mac/src/pe/lim/lim_process_action_frame.c

@@ -100,7 +100,7 @@ void lim_stop_tx_and_switch_channel(tpAniSirGlobal pMac, uint8_t sessionId)
 	}
 	}
 
 
 	pMac->lim.limTimers.gLimChannelSwitchTimer.sessionId = sessionId;
 	pMac->lim.limTimers.gLimChannelSwitchTimer.sessionId = sessionId;
-	/* change the channel immediatly only if
+	/* change the channel immediately only if
 	 * the channel switch count is 0
 	 * the channel switch count is 0
 	 */
 	 */
 	if (psessionEntry->gLimChannelSwitch.switchCount == 0) {
 	if (psessionEntry->gLimChannelSwitch.switchCount == 0) {
@@ -744,7 +744,7 @@ static void __lim_process_add_ts_rsp(tpAniSirGlobal mac_ctx,
 	}
 	}
 
 
 	/*
 	/*
-	 * for successful addts reponse, try to add the classifier.
+	 * for successful addts response, try to add the classifier.
 	 * if this fails for any reason, we should send a delts request to the
 	 * if this fails for any reason, we should send a delts request to the
 	 * ap for now, its ok not to send a delts since we are going to add
 	 * ap for now, its ok not to send a delts since we are going to add
 	 * support for multiple tclas soon and until then we won't send any
 	 * support for multiple tclas soon and until then we won't send any
@@ -1559,7 +1559,7 @@ static void __lim_process_sa_query_response_action_frame(tpAniSirGlobal pMac,
 	if (DPH_SA_QUERY_IN_PROGRESS != pSta->pmfSaQueryState)
 	if (DPH_SA_QUERY_IN_PROGRESS != pSta->pmfSaQueryState)
 		return;
 		return;
 
 
-	/* Extract 11w trsansId from SA query reponse action frame
+	/* Extract 11w trsansId from SA query response action frame
 	   In SA query response action frame:
 	   In SA query response action frame:
 	   Category       : 1 byte
 	   Category       : 1 byte
 	   Action         : 1 byte
 	   Action         : 1 byte
@@ -1586,7 +1586,7 @@ static void __lim_process_sa_query_response_action_frame(tpAniSirGlobal pMac,
  *
  *
  ***FUNCTION:
  ***FUNCTION:
  * This function checks if an Action frame should be dropped since it is
  * This function checks if an Action frame should be dropped since it is
- * a Robust Managment Frame, it is unprotected, and it is received on a
+ * a Robust Management Frame, it is unprotected, and it is received on a
  * connection where PMF is enabled.
  * connection where PMF is enabled.
  *
  *
  ***LOGIC:
  ***LOGIC:

+ 1 - 1
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -671,7 +671,7 @@ lim_process_for_spectrum_mgmt(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
 
 
 			/*
 			/*
 			 * TODO: presently, this is not handled. In the current
 			 * TODO: presently, this is not handled. In the current
-			 * implemetation, the AP would allow the station to
+			 * implementation, the AP would allow the station to
 			 * associate even if it doesn't support spectrum
 			 * associate even if it doesn't support spectrum
 			 * management.
 			 * management.
 			 */
 			 */

+ 1 - 1
core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c

@@ -565,7 +565,7 @@ lim_process_assoc_rsp_frame(tpAniSirGlobal mac_ctx,
 		eLIM_MLM_WT_FT_REASSOC_RSP_STATE)
 		eLIM_MLM_WT_FT_REASSOC_RSP_STATE)
 		))) {
 		))) {
 		/* Received unexpected Re/Association Response frame */
 		/* Received unexpected Re/Association Response frame */
-		pe_debug("Recieved Re/Assoc rsp in unexpected state: %d on session: %d",
+		pe_debug("Received Re/Assoc rsp in unexpected state: %d on session: %d",
 			session_entry->limMlmState, session_entry->peSessionId);
 			session_entry->limMlmState, session_entry->peSessionId);
 		if (!hdr->fc.retry) {
 		if (!hdr->fc.retry) {
 			if (!(mac_ctx->lim.retry_packet_cnt & 0xf)) {
 			if (!(mac_ctx->lim.retry_packet_cnt & 0xf)) {

+ 1 - 1
core/mac/src/pe/lim/lim_process_beacon_frame.c

@@ -97,7 +97,7 @@ lim_process_beacon_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
 	/*
 	/*
 	 * during scanning, when any session is active, and
 	 * during scanning, when any session is active, and
 	 * beacon/Pr belongs to one of the session, fill up the
 	 * beacon/Pr belongs to one of the session, fill up the
-	 * following, TBD - HB couter
+	 * following, TBD - HB counter
 	 */
 	 */
 	if (sir_compare_mac_addr(session->bssId,
 	if (sir_compare_mac_addr(session->bssId,
 				bcn_ptr->bssid)) {
 				bcn_ptr->bssid)) {

+ 4 - 4
core/mac/src/pe/lim/lim_process_message_queue.c

@@ -437,7 +437,7 @@ uint8_t static def_msg_decision(tpAniSirGlobal pMac, struct scheduler_msg *limMs
 
 
 /* this function should not changed */
 /* this function should not changed */
 	if (pMac->lim.gLimSmeState == eLIM_SME_OFFLINE_STATE) {
 	if (pMac->lim.gLimSmeState == eLIM_SME_OFFLINE_STATE) {
-		/* Defer processsing this message */
+		/* Defer processing this message */
 		if (lim_defer_msg(pMac, limMsg) != TX_SUCCESS) {
 		if (lim_defer_msg(pMac, limMsg) != TX_SUCCESS) {
 			QDF_TRACE(QDF_MODULE_ID_PE, LOGE,
 			QDF_TRACE(QDF_MODULE_ID_PE, LOGE,
 					FL("Unable to Defer Msg"));
 					FL("Unable to Defer Msg"));
@@ -501,7 +501,7 @@ uint8_t static def_msg_decision(tpAniSirGlobal pMac, struct scheduler_msg *limMs
 			(mgmt_pkt_defer)) {
 			(mgmt_pkt_defer)) {
 			pe_debug("Defer the current message %s , gLimProcessDefdMsgs is false and system is not in scan/learn mode",
 			pe_debug("Defer the current message %s , gLimProcessDefdMsgs is false and system is not in scan/learn mode",
 				       lim_msg_str(limMsg->type));
 				       lim_msg_str(limMsg->type));
-			/* Defer processsing this message */
+			/* Defer processing this message */
 			if (lim_defer_msg(pMac, limMsg) != TX_SUCCESS) {
 			if (lim_defer_msg(pMac, limMsg) != TX_SUCCESS) {
 				QDF_TRACE(QDF_MODULE_ID_PE, LOGE,
 				QDF_TRACE(QDF_MODULE_ID_PE, LOGE,
 					FL("Unable to Defer Msg"));
 					FL("Unable to Defer Msg"));
@@ -1534,7 +1534,7 @@ static void lim_process_messages(tpAniSirGlobal mac_ctx,
 			break;
 			break;
 		}
 		}
 		/* System is in DFS (Learn) mode.
 		/* System is in DFS (Learn) mode.
-		 * Defer processsing this message
+		 * Defer processing this message
 		 */
 		 */
 		if (lim_defer_msg(mac_ctx, msg) != TX_SUCCESS) {
 		if (lim_defer_msg(mac_ctx, msg) != TX_SUCCESS) {
 			if (!(mac_ctx->lim.deferredMsgCnt & 0xF))
 			if (!(mac_ctx->lim.deferredMsgCnt & 0xF))
@@ -2180,7 +2180,7 @@ static void lim_process_normal_hdd_msg(tpAniSirGlobal mac_ctx,
 		(lim_is_system_in_scan_state(mac_ctx))) && defer_msg) {
 		(lim_is_system_in_scan_state(mac_ctx))) && defer_msg) {
 		/*
 		/*
 		 * System is in DFS (Learn) mode or awaiting addts response or
 		 * System is in DFS (Learn) mode or awaiting addts response or
-		 * if radar is detected, Defer processsing this message
+		 * if radar is detected, Defer processing this message
 		 */
 		 */
 		if (lim_defer_msg(mac_ctx, msg) != TX_SUCCESS) {
 		if (lim_defer_msg(mac_ctx, msg) != TX_SUCCESS) {
 #ifdef WLAN_DEBUG
 #ifdef WLAN_DEBUG

+ 1 - 1
core/mac/src/pe/lim/lim_process_mlm_req_messages.c

@@ -239,7 +239,7 @@ lim_change_channel_with_callback(tpAniSirGlobal mac_ctx, uint8_t new_chan,
  * This function is called to get the list,
  * This function is called to get the list,
  * change the channel type and set again.
  * change the channel type and set again.
  * NOTE: If a channel is ACTIVE, this function will make it as PASSIVE
  * NOTE: If a channel is ACTIVE, this function will make it as PASSIVE
- *       If a channel is PASSIVE, this fucntion will make it as ACTIVE
+ *       If a channel is PASSIVE, this function will make it as ACTIVE
  *
  *
  * Return: None
  * Return: None
  */
  */

+ 3 - 3
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -2155,7 +2155,7 @@ static void __lim_process_sme_disassoc_req(tpAniSirGlobal pMac, uint32_t *pMsgBu
 			break;
 			break;
 
 
 		case eLIM_SME_WT_DISASSOC_STATE:
 		case eLIM_SME_WT_DISASSOC_STATE:
-			/* PE Recieved a Disassoc frame. Normally it gets DISASSOC_CNF but it
+			/* PE Received a Disassoc frame. Normally it gets DISASSOC_CNF but it
 			 * received DISASSOC_REQ. Which means host is also trying to disconnect.
 			 * received DISASSOC_REQ. Which means host is also trying to disconnect.
 			 * PE can continue processing DISASSOC_REQ and send the response instead
 			 * PE can continue processing DISASSOC_REQ and send the response instead
 			 * of failing the request. SME will anyway ignore DEAUTH_IND that was sent
 			 * of failing the request. SME will anyway ignore DEAUTH_IND that was sent
@@ -2503,7 +2503,7 @@ static void __lim_process_sme_deauth_req(tpAniSirGlobal mac_ctx,
 		case eLIM_SME_WT_DEAUTH_STATE:
 		case eLIM_SME_WT_DEAUTH_STATE:
 		case eLIM_SME_WT_DISASSOC_STATE:
 		case eLIM_SME_WT_DISASSOC_STATE:
 			/*
 			/*
-			 * PE Recieved a Deauth/Disassoc frame. Normally it get
+			 * PE Received a Deauth/Disassoc frame. Normally it get
 			 * DEAUTH_CNF/DISASSOC_CNF but it received DEAUTH_REQ.
 			 * DEAUTH_CNF/DISASSOC_CNF but it received DEAUTH_REQ.
 			 * Which means host is also trying to disconnect.
 			 * Which means host is also trying to disconnect.
 			 * PE can continue processing DEAUTH_REQ and send
 			 * PE can continue processing DEAUTH_REQ and send
@@ -3984,7 +3984,7 @@ static void __lim_process_sme_set_ht2040_mode(tpAniSirGlobal pMac,
 				qdf_mem_free(pHtOpMode);
 				qdf_mem_free(pHtOpMode);
 				return;
 				return;
 			}
 			}
-			pe_debug("Notifed FW about OP mode: %d for staId=%d",
+			pe_debug("Notified FW about OP mode: %d for staId=%d",
 				pHtOpMode->opMode, staId);
 				pHtOpMode->opMode, staId);
 
 
 		} else
 		} else

+ 4 - 4
core/mac/src/pe/lim/lim_process_tdls.c

@@ -2822,7 +2822,7 @@ tSirRetStatus lim_process_sme_tdls_mgmt_send_req(tpAniSirGlobal mac_ctx,
 	uint8_t session_id;
 	uint8_t session_id;
 	tSirResultCodes result_code = eSIR_SME_INVALID_PARAMETERS;
 	tSirResultCodes result_code = eSIR_SME_INVALID_PARAMETERS;
 
 
-	pe_debug("Send Mgmt Recieved");
+	pe_debug("Send Mgmt Received");
 	session_entry = pe_find_session_by_bssid(mac_ctx,
 	session_entry = pe_find_session_by_bssid(mac_ctx,
 					 send_req->bssid.bytes, &session_id);
 					 send_req->bssid.bytes, &session_id);
 	if (NULL == session_entry) {
 	if (NULL == session_entry) {
@@ -2982,7 +2982,7 @@ tSirRetStatus lim_process_sme_tdls_add_sta_req(tpAniSirGlobal pMac,
 	tpPESession psessionEntry;
 	tpPESession psessionEntry;
 	uint8_t sessionId;
 	uint8_t sessionId;
 
 
-	pe_debug("TDLS Add STA Request Recieved");
+	pe_debug("TDLS Add STA Request Received");
 	psessionEntry =
 	psessionEntry =
 		pe_find_session_by_bssid(pMac, pAddStaReq->bssid.bytes,
 		pe_find_session_by_bssid(pMac, pAddStaReq->bssid.bytes,
 					 &sessionId);
 					 &sessionId);
@@ -3046,7 +3046,7 @@ tSirRetStatus lim_process_sme_tdls_del_sta_req(tpAniSirGlobal pMac,
 	uint8_t sessionId;
 	uint8_t sessionId;
 	tSirRetStatus status = eSIR_FAILURE;
 	tSirRetStatus status = eSIR_FAILURE;
 
 
-	pe_debug("TDLS Delete STA Request Recieved");
+	pe_debug("TDLS Delete STA Request Received");
 	psessionEntry =
 	psessionEntry =
 		pe_find_session_by_bssid(pMac, pDelStaReq->bssid.bytes,
 		pe_find_session_by_bssid(pMac, pDelStaReq->bssid.bytes,
 					 &sessionId);
 					 &sessionId);
@@ -3100,7 +3100,7 @@ lim_tdls_del_sta_error:
 }
 }
 
 
 /**
 /**
- * lim_check_aid_and_delete_peer() - Funtion to check aid and delete peer
+ * lim_check_aid_and_delete_peer() - Function to check aid and delete peer
  * @p_mac: pointer to mac context
  * @p_mac: pointer to mac context
  * @session_entry: pointer to PE session
  * @session_entry: pointer to PE session
  *
  *

+ 1 - 1
core/mac/src/pe/lim/lim_security_utils.c

@@ -303,7 +303,7 @@ void lim_add_pre_auth_node(tpAniSirGlobal pMac, struct tLimPreAuthNode *pAuthNod
  * lim_release_pre_auth_node
  * lim_release_pre_auth_node
  *
  *
  ***FUNCTION:
  ***FUNCTION:
- * This function is called to realease the accquired
+ * This function is called to realease the acquired
  * pre auth node from list.
  * pre auth node from list.
  *
  *
  ***LOGIC:
  ***LOGIC:

+ 2 - 2
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -1712,7 +1712,7 @@ lim_send_assoc_req_mgmt_frame(tpAniSirGlobal mac_ctx,
 			extr_ext_flag = (extr_ext_cap.num_bytes > 0);
 			extr_ext_flag = (extr_ext_cap.num_bytes > 0);
 		}
 		}
 	} else {
 	} else {
-		pe_debug("No addn IE or peer dosen't support addnIE for Assoc Req");
+		pe_debug("No addn IE or peer doesn't support addnIE for Assoc Req");
 		extr_ext_flag = false;
 		extr_ext_flag = false;
 	}
 	}
 
 
@@ -4601,7 +4601,7 @@ tSirRetStatus lim_send_sa_query_response_frame(tpAniSirGlobal pMac,
 					       tpPESession psessionEntry)
 					       tpPESession psessionEntry)
 {
 {
 
 
-	tDot11fSaQueryRsp frm;  /* SA query reponse action frame */
+	tDot11fSaQueryRsp frm;  /* SA query response action frame */
 	uint8_t *pFrame;
 	uint8_t *pFrame;
 	tSirRetStatus nSirStatus;
 	tSirRetStatus nSirStatus;
 	tpSirMacMgmtHdr pMacHdr;
 	tpSirMacMgmtHdr pMacHdr;

+ 1 - 1
core/mac/src/pe/lim/lim_send_sme_rsp_messages.c

@@ -2453,7 +2453,7 @@ lim_handle_bss_color_change_ie(tpAniSirGlobal mac_ctx,
 
 
 /** -----------------------------------------------------------------
 /** -----------------------------------------------------------------
    \brief lim_process_beacon_tx_success_ind() - This function is used
    \brief lim_process_beacon_tx_success_ind() - This function is used
-   explicitely to handle successful beacon transmission indication
+   explicitly to handle successful beacon transmission indication
    from the FW. This is a generic event generated by the FW afer the
    from the FW. This is a generic event generated by the FW afer the
    first beacon is sent out after the beacon template update by the
    first beacon is sent out after the beacon template update by the
    host
    host

+ 5 - 5
core/mac/src/pe/lim/lim_ser_des_utils.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2011-2015, 2016-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -48,7 +48,7 @@ static inline void lim_copy_u16(uint8_t *ptr, uint16_t u16Val)
 	*ptr++ = (uint8_t) (u16Val & 0xff);
 	*ptr++ = (uint8_t) (u16Val & 0xff);
 	*ptr = (uint8_t) ((u16Val >> 8) & 0xff);
 	*ptr = (uint8_t) ((u16Val >> 8) & 0xff);
 #else
 #else
-#error "Unknown combination of OS Type and endianess"
+#error "Unknown combination of OS Type and endianness"
 #endif
 #endif
 }
 }
 
 
@@ -58,7 +58,7 @@ static inline uint16_t lim_get_u16(uint8_t *ptr)
 	(defined(ANI_OS_TYPE_ANDROID) && defined(ANI_LITTLE_BYTE_ENDIAN)))
 	(defined(ANI_OS_TYPE_ANDROID) && defined(ANI_LITTLE_BYTE_ENDIAN)))
 	return ((uint16_t) (*(ptr + 1) << 8)) | ((uint16_t) (*ptr));
 	return ((uint16_t) (*(ptr + 1) << 8)) | ((uint16_t) (*ptr));
 #else
 #else
-#error "Unknown combination of OS Type and endianess"
+#error "Unknown combination of OS Type and endianness"
 #endif
 #endif
 }
 }
 
 
@@ -71,7 +71,7 @@ static inline void lim_copy_u32(uint8_t *ptr, uint32_t u32Val)
 	*ptr++ = (uint8_t) ((u32Val >> 16) & 0xff);
 	*ptr++ = (uint8_t) ((u32Val >> 16) & 0xff);
 	*ptr = (uint8_t) ((u32Val >> 24) & 0xff);
 	*ptr = (uint8_t) ((u32Val >> 24) & 0xff);
 #else
 #else
-#error "Unknown combination of OS Type and endianess"
+#error "Unknown combination of OS Type and endianness"
 #endif
 #endif
 }
 }
 
 
@@ -82,7 +82,7 @@ static inline uint32_t lim_get_u32(uint8_t *ptr)
 	return ((*(ptr + 3) << 24) |
 	return ((*(ptr + 3) << 24) |
 		(*(ptr + 2) << 16) | (*(ptr + 1) << 8) | (*(ptr)));
 		(*(ptr + 2) << 16) | (*(ptr + 1) << 8) | (*(ptr)));
 #else
 #else
-#error "Unknown combination of OS Type and endianess"
+#error "Unknown combination of OS Type and endianness"
 #endif
 #endif
 }
 }
 
 

+ 1 - 1
core/mac/src/pe/lim/lim_session.c

@@ -584,7 +584,7 @@ pe_create_session(tpAniSirGlobal pMac, uint8_t *bssid, uint8_t *sessionId,
 	if (bssType == eSIR_MONITOR_MODE)
 	if (bssType == eSIR_MONITOR_MODE)
 		sir_copy_mac_addr(pMac->lim.gpSession[i].selfMacAddr, bssid);
 		sir_copy_mac_addr(pMac->lim.gpSession[i].selfMacAddr, bssid);
 	session_ptr->valid = true;
 	session_ptr->valid = true;
-	/* Intialize the SME and MLM states to IDLE */
+	/* Initialize the SME and MLM states to IDLE */
 	session_ptr->limMlmState = eLIM_MLM_IDLE_STATE;
 	session_ptr->limMlmState = eLIM_MLM_IDLE_STATE;
 	session_ptr->limSmeState = eLIM_SME_IDLE_STATE;
 	session_ptr->limSmeState = eLIM_SME_IDLE_STATE;
 	session_ptr->limCurrentAuthType = eSIR_OPEN_SYSTEM;
 	session_ptr->limCurrentAuthType = eSIR_OPEN_SYSTEM;

+ 1 - 1
core/mac/src/pe/lim/lim_sme_req_utils.h

@@ -19,7 +19,7 @@
 /*
 /*
  *
  *
  * This file lim_sme_req_utils.h contains the utility definitions
  * This file lim_sme_req_utils.h contains the utility definitions
- * LIM uses while processing SME request messsages.
+ * LIM uses while processing SME request messages.
  * Author:        Chandra Modumudi
  * Author:        Chandra Modumudi
  * Date:          02/13/02
  * Date:          02/13/02
  * History:-
  * History:-

+ 2 - 2
core/mac/src/pe/lim/lim_trace.c

@@ -327,7 +327,7 @@ void mac_trace_msg_tx_new(tpAniSirGlobal pMac, uint8_t module, uint8_t session,
 }
 }
 
 
 /*
 /*
- * bit31: Rx message defferred or not
+ * bit31: Rx message deferred or not
  * bit 0-15: message ID:
  * bit 0-15: message ID:
  */
  */
 void mac_trace_msg_rx(tpAniSirGlobal pMac, uint8_t session, uint32_t data)
 void mac_trace_msg_rx(tpAniSirGlobal pMac, uint8_t session, uint32_t data)
@@ -355,7 +355,7 @@ void mac_trace_msg_rx(tpAniSirGlobal pMac, uint8_t session, uint32_t data)
 }
 }
 
 
 /*
 /*
- * bit31: Rx message defferred or not
+ * bit31: Rx message deferred or not
  * bit 0-15: message ID:
  * bit 0-15: message ID:
  */
  */
 void mac_trace_msg_rx_new(tpAniSirGlobal pMac, uint8_t module, uint8_t session,
 void mac_trace_msg_rx_new(tpAniSirGlobal pMac, uint8_t module, uint8_t session,

+ 4 - 4
core/mac/src/pe/lim/lim_utils.c

@@ -873,7 +873,7 @@ uint8_t lim_write_deferred_msg_q(tpAniSirGlobal mac_ctx,
 	if (SIR_BB_XPORT_MGMT_MSG == lim_msg->type) {
 	if (SIR_BB_XPORT_MGMT_MSG == lim_msg->type) {
 		lim_util_get_type_subtype(lim_msg->bodyptr,
 		lim_util_get_type_subtype(lim_msg->bodyptr,
 					&type, &subtype);
 					&type, &subtype);
-		pe_debug(" Deferred managment type %d subtype %d ",
+		pe_debug(" Deferred management type %d subtype %d ",
 			type, subtype);
 			type, subtype);
 	}
 	}
 
 
@@ -2935,7 +2935,7 @@ uint8_t lim_get_ht_capability(tpAniSirGlobal pMac,
  * @bcn_prms:   beacon parameters
  * @bcn_prms:   beacon parameters
  * @pe_session: pe session entry
  * @pe_session: pe session entry
  *
  *
- * This fucntion updates protection params for enable 11a protection request
+ * This function updates protection params for enable 11a protection request
  *
  *
  * @Return: void
  * @Return: void
  */
  */
@@ -2996,7 +2996,7 @@ lim_enable_11a_protection(tpAniSirGlobal mac_ctx,
  * @bcn_prms:   beacon parameters
  * @bcn_prms:   beacon parameters
  * @pe_session: pe session entry
  * @pe_session: pe session entry
  *
  *
- * This fucntion updates protection params for disable 11a protection request
+ * This function updates protection params for disable 11a protection request
  *
  *
  * @Return: void
  * @Return: void
  */
  */
@@ -8171,7 +8171,7 @@ QDF_STATUS lim_util_get_type_subtype(void *pkt, uint8_t *type,
 		*type = hdr->fc.type;
 		*type = hdr->fc.type;
 		*subtype = hdr->fc.subType;
 		*subtype = hdr->fc.subType;
 	} else {
 	} else {
-		pe_err("Not a managment packet type %d", hdr->fc.type);
+		pe_err("Not a management packet type %d", hdr->fc.type);
 		return QDF_STATUS_E_INVAL;
 		return QDF_STATUS_E_INVAL;
 	}
 	}
 	return QDF_STATUS_SUCCESS;
 	return QDF_STATUS_SUCCESS;

+ 1 - 1
core/mac/src/pe/nan/nan_datapath.h

@@ -56,7 +56,7 @@ struct peer_nan_datapath_map;
  * @ht_mimo_ps_state: MIMO power state
  * @ht_mimo_ps_state: MIMO power state
  * @ht_ampdu_density: AMPDU density
  * @ht_ampdu_density: AMPDU density
  * @ht_max_rxampdu_factor: receieve AMPDU factor
  * @ht_max_rxampdu_factor: receieve AMPDU factor
- * @ht_max_amsdu_len: Max AMSDU lengh supported
+ * @ht_max_amsdu_len: Max AMSDU length supported
  * @ht_supp_chan_widthset: Supported channel widthset
  * @ht_supp_chan_widthset: Supported channel widthset
  * @ht_ldpc_capable: LDPC capable
  * @ht_ldpc_capable: LDPC capable
  * @heartbeat_failure: heart beat failure indication flag
  * @heartbeat_failure: heart beat failure indication flag

+ 3 - 3
core/mac/src/pe/sch/sch_beacon_process.c

@@ -352,7 +352,7 @@ sch_bcn_process_sta(tpAniSirGlobal mac_ctx,
 	tpDphHashNode pStaDs = NULL;
 	tpDphHashNode pStaDs = NULL;
 	/*
 	/*
 	 *  This handles two cases:
 	 *  This handles two cases:
-	 *  -- Infra STA receving beacons from AP
+	 *  -- Infra STA receiving beacons from AP
 	 */
 	 */
 
 
 	/**
 	/**
@@ -757,9 +757,9 @@ static void get_local_power_constraint_beacon(
  * @session:        pe session pointer
  * @session:        pe session pointer
  *
  *
  * Following scenarios exist when Session exists
  * Following scenarios exist when Session exists
- *   IBSS STA receving beacons from IBSS Peers, who are part of IBSS.
+ *   IBSS STA receiving beacons from IBSS Peers, who are part of IBSS.
  *     - call lim_handle_ibs_scoalescing with that session context.
  *     - call lim_handle_ibs_scoalescing with that session context.
- *   Infra STA receving beacons from AP to which it is connected
+ *   Infra STA receiving beacons from AP to which it is connected
  *     - call sch_beacon_processFromAP with that session's context.
  *     - call sch_beacon_processFromAP with that session's context.
  *     - call sch_beacon_processFromAP with that session's context.
  *     - call sch_beacon_processFromAP with that session's context.
  *     (here need to make sure BTAP creates session entry for BT STA)
  *     (here need to make sure BTAP creates session entry for BT STA)

+ 2 - 2
core/mac/src/sys/legacy/src/system/src/mac_init_api.c

@@ -106,8 +106,8 @@ tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
 
 
 	/*
 	/*
 	 * Set various global fields of p_mac here
 	 * Set various global fields of p_mac here
-	 * (Could be platform dependant as some variables in p_mac are platform
-	 * dependant)
+	 * (Could be platform dependent as some variables in p_mac are platform
+	 * dependent)
 	 */
 	 */
 	p_mac->hHdd = hHdd;
 	p_mac->hHdd = hHdd;
 
 

+ 1 - 1
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -1215,7 +1215,7 @@ populate_dot11f_ext_cap(tpAniSirGlobal pMac,
 	if (psessionEntry && psessionEntry->enable_bcast_probe_rsp)
 	if (psessionEntry && psessionEntry->enable_bcast_probe_rsp)
 		p_ext_cap->fils_capability = 1;
 		p_ext_cap->fils_capability = 1;
 
 
-	/* Need to calulate the num_bytes based on bits set */
+	/* Need to calculate the num_bytes based on bits set */
 	if (pDot11f->present)
 	if (pDot11f->present)
 		pDot11f->num_bytes = lim_compute_ext_cap_ie_length(pDot11f);
 		pDot11f->num_bytes = lim_compute_ext_cap_ie_length(pDot11f);