소스 검색

qcacld-3.0: core: mac: Fix misspellings

Fix misspellings in core/mac/...

Change-Id: Ife5a311f3501239898cbc59a0d104d8656c99112
CRs-Fixed: 3303627
Jeff Johnson 2 년 전
부모
커밋
2c512a643c
50개의 변경된 파일150개의 추가작업 그리고 138개의 파일을 삭제
  1. 11 11
      core/mac/inc/sir_api.h
  2. 2 1
      core/mac/inc/wlan_tgt_def_config_hl.h
  3. 2 2
      core/mac/src/cfg/cfgUtil/dot11f.frms
  4. 3 3
      core/mac/src/include/parser_api.h
  5. 2 2
      core/mac/src/include/utils_api.h
  6. 2 2
      core/mac/src/pe/include/lim_fils_defs.h
  7. 2 1
      core/mac/src/pe/include/lim_ft.h
  8. 4 4
      core/mac/src/pe/include/lim_session.h
  9. 2 1
      core/mac/src/pe/include/rrm_global.h
  10. 3 2
      core/mac/src/pe/include/sch_api.h
  11. 3 2
      core/mac/src/pe/include/sch_global.h
  12. 2 1
      core/mac/src/pe/lim/lim_admit_control.c
  13. 4 4
      core/mac/src/pe/lim/lim_api.c
  14. 2 2
      core/mac/src/pe/lim/lim_assoc_utils.c
  15. 2 2
      core/mac/src/pe/lim/lim_assoc_utils.h
  16. 1 1
      core/mac/src/pe/lim/lim_ft.c
  17. 1 1
      core/mac/src/pe/lim/lim_link_monitoring_algo.c
  18. 2 2
      core/mac/src/pe/lim/lim_process_action_frame.c
  19. 2 2
      core/mac/src/pe/lim/lim_process_assoc_req_frame.c
  20. 2 2
      core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c
  21. 4 4
      core/mac/src/pe/lim/lim_process_auth_frame.c
  22. 2 2
      core/mac/src/pe/lim/lim_process_deauth_frame.c
  23. 1 1
      core/mac/src/pe/lim/lim_process_disassoc_frame.c
  24. 3 3
      core/mac/src/pe/lim/lim_process_fils.c
  25. 4 4
      core/mac/src/pe/lim/lim_process_message_queue.c
  26. 3 2
      core/mac/src/pe/lim/lim_process_mlm_host_roam.c
  27. 1 2
      core/mac/src/pe/lim/lim_process_mlm_req_messages.c
  28. 10 10
      core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
  29. 4 4
      core/mac/src/pe/lim/lim_process_probe_req_frame.c
  30. 7 7
      core/mac/src/pe/lim/lim_process_sme_req_messages.c
  31. 3 3
      core/mac/src/pe/lim/lim_process_tdls.c
  32. 1 1
      core/mac/src/pe/lim/lim_prop_exts_utils.c
  33. 2 1
      core/mac/src/pe/lim/lim_scan_result_utils.c
  34. 2 1
      core/mac/src/pe/lim/lim_security_utils.c
  35. 2 2
      core/mac/src/pe/lim/lim_send_frames_host_roam.c
  36. 8 8
      core/mac/src/pe/lim/lim_send_management_frames.c
  37. 2 2
      core/mac/src/pe/lim/lim_send_sme_rsp_messages.h
  38. 1 1
      core/mac/src/pe/lim/lim_types.h
  39. 14 14
      core/mac/src/pe/lim/lim_utils.c
  40. 3 3
      core/mac/src/pe/lim/lim_utils.h
  41. 1 1
      core/mac/src/pe/nan/nan_datapath.c
  42. 2 2
      core/mac/src/pe/sch/sch_api.c
  43. 1 1
      core/mac/src/pe/sch/sch_beacon_gen.c
  44. 1 1
      core/mac/src/pe/sch/sch_beacon_process.c
  45. 1 1
      core/mac/src/pe/sch/sch_message.c
  46. 2 1
      core/mac/src/sys/common/inc/wlan_qct_sys.h
  47. 2 1
      core/mac/src/sys/legacy/src/platform/inc/sys_wrapper.h
  48. 2 1
      core/mac/src/sys/legacy/src/platform/src/sys_wrapper.c
  49. 2 1
      core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
  50. 5 5
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

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

@@ -1275,7 +1275,7 @@ struct switch_channel_ind {
 
 
 /* / Definition for MIC failure indication */
 /* / Definition for MIC failure indication */
 /* / MAC ---> */
 /* / MAC ---> */
-/* / MAC reports this each time a MIC failure occures on Rx TKIP packet */
+/* / MAC reports this each time a MIC failure occurs on Rx TKIP packet */
 struct mic_failure_ind {
 struct mic_failure_ind {
 	uint16_t messageType;   /* eWNI_SME_MIC_FAILURE_IND */
 	uint16_t messageType;   /* eWNI_SME_MIC_FAILURE_IND */
 	uint16_t length;
 	uint16_t length;
@@ -1584,7 +1584,7 @@ typedef struct sSirWPSProbeRspIE {
 	 */
 	 */
 	uint32_t DeviceSubCategory;
 	uint32_t DeviceSubCategory;
 	tSirText DeviceName;
 	tSirText DeviceName;
-	uint16_t ConfigMethod;  /* Configuaration method */
+	uint16_t ConfigMethod;  /* Configuration method */
 	uint8_t RFBand;         /* RF bands available on the AP */
 	uint8_t RFBand;         /* RF bands available on the AP */
 } tSirWPSProbeRspIE;
 } tSirWPSProbeRspIE;
 
 
@@ -1616,7 +1616,7 @@ typedef struct sSirWPSBeaconIE {
 } tSirWPSBeaconIE;
 } tSirWPSBeaconIE;
 
 
 typedef struct sSirAPWPSIEs {
 typedef struct sSirAPWPSIEs {
-	tSirWPSProbeRspIE SirWPSProbeRspIE;     /*WPS Set Probe Respose IE */
+	tSirWPSProbeRspIE SirWPSProbeRspIE;     /*WPS Set Probe Response IE */
 	tSirWPSBeaconIE SirWPSBeaconIE; /*WPS Set Beacon IE */
 	tSirWPSBeaconIE SirWPSBeaconIE; /*WPS Set Beacon IE */
 } tSirAPWPSIEs, *tpSiriAPWPSIEs;
 } tSirAPWPSIEs, *tpSiriAPWPSIEs;
 
 
@@ -3242,7 +3242,7 @@ struct sir_wifi_peer_signal_stats {
  * @aggr_len: length of the MPDU aggregation size buffer
  * @aggr_len: length of the MPDU aggregation size buffer
  * @mpdu_aggr_size: histogram of MPDU aggregation size
  * @mpdu_aggr_size: histogram of MPDU aggregation size
  * @success_mcs_len: length of success mcs buffer
  * @success_mcs_len: length of success mcs buffer
- * @success_mcs: histogram of successed received MPDUs encoding rate
+ * @success_mcs: histogram of successful received MPDUs encoding rate
  * @fail_mcs_len: length of failed mcs buffer
  * @fail_mcs_len: length of failed mcs buffer
  * @fail_mcs: histogram of failed received MPDUs encoding rate
  * @fail_mcs: histogram of failed received MPDUs encoding rate
  * @delay_len: length of the delay histofram buffer
  * @delay_len: length of the delay histofram buffer
@@ -3358,7 +3358,7 @@ struct sir_wifi_ll_ext_peer_stats {
  * @cca: physical channel CCA stats
  * @cca: physical channel CCA stats
  * @stats: pointer to stats data buffer.
  * @stats: pointer to stats data buffer.
  *
  *
- * Structure of the whole statictics is like this:
+ * Structure of the whole statistics is like this:
  *     ---------------------------------
  *     ---------------------------------
  *     |      trigger_cond_i           |
  *     |      trigger_cond_i           |
  *     +-------------------------------+
  *     +-------------------------------+
@@ -3537,7 +3537,7 @@ struct sir_rx_threshold {
 /**
 /**
  * struct sir_wifi_ll_ext_stats_threshold - Threshold for stats update
  * struct sir_wifi_ll_ext_stats_threshold - Threshold for stats update
  * @period: MAC counter indication period (unit in ms)
  * @period: MAC counter indication period (unit in ms)
- * @enable: if threshold mechnism is enabled or disabled
+ * @enable: if threshold mechanism is enabled or disabled
  * @enable_bitmap: whether dedicated threshold is enabed.
  * @enable_bitmap: whether dedicated threshold is enabed.
  *     Every MAC counter has a dedicated threshold. If the dedicated
  *     Every MAC counter has a dedicated threshold. If the dedicated
  *     threshold is not set in the bitmap, global threshold will take
  *     threshold is not set in the bitmap, global threshold will take
@@ -3593,7 +3593,7 @@ struct sir_rx_threshold {
  * @rx_thresh: RX threshold
  * @rx_thresh: RX threshold
  *
  *
  * Generally, Link layer statistics is reported periodically. But if the
  * Generally, Link layer statistics is reported periodically. But if the
- * variation of one stats of compared to the pervious notification exceeds
+ * variation of one stats of compared to the previous notification exceeds
  * a threshold, FW will report the new stats immediately.
  * a threshold, FW will report the new stats immediately.
  * This structure contains threshold for different counters.
  * This structure contains threshold for different counters.
  */
  */
@@ -4587,7 +4587,7 @@ struct sme_tx_fail_cnt_threshold {
 /**
 /**
  * struct sme_short_retry_limit - transmission retry limit for short frames.
  * struct sme_short_retry_limit - transmission retry limit for short frames.
  * @session_id: Session id
  * @session_id: Session id
- * @short_retry_limit: tranmission retry limit for short frame.
+ * @short_retry_limit: transmission retry limit for short frame.
  *
  *
  */
  */
 struct sme_short_retry_limit {
 struct sme_short_retry_limit {
@@ -4596,9 +4596,9 @@ struct sme_short_retry_limit {
 };
 };
 
 
 /**
 /**
- * struct sme_long_retry_limit - tranmission retry limit for long frames
+ * struct sme_long_retry_limit - transmission retry limit for long frames
  * @session_id: Session id
  * @session_id: Session id
- * @short_retry_limit: tranmission retry limit for long frames.
+ * @short_retry_limit: transmission retry limit for long frames.
  *
  *
  */
  */
 struct sme_long_retry_limit {
 struct sme_long_retry_limit {
@@ -5045,7 +5045,7 @@ struct sir_peer_set_rx_blocksize {
  * @node: Node pointer
  * @node: Node pointer
  * @bssid: BSSID of the AP
  * @bssid: BSSID of the AP
  * @retry_delay: Retry delay received during last rejection in ms
  * @retry_delay: Retry delay received during last rejection in ms
- * @ expected_rssi: RSSI at which STA can initate
+ * @ expected_rssi: RSSI at which STA can initiate
  * @time_during_rejection: Timestamp during last rejection in millisec
  * @time_during_rejection: Timestamp during last rejection in millisec
  * @reject_reason: reason to add the BSSID to DLM
  * @reject_reason: reason to add the BSSID to DLM
  * @source: Source of adding the BSSID to DLM
  * @source: Source of adding the BSSID to DLM

+ 2 - 1
core/mac/inc/wlan_tgt_def_config_hl.h

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2013-2021 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
  * 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
@@ -118,7 +119,7 @@
 #define CFG_TGT_NUM_VDEV_HANDLERS       4
 #define CFG_TGT_NUM_VDEV_HANDLERS       4
 /*
 /*
  * set this to 8:
  * set this to 8:
- *     one for WAL interals (connection pause)
+ *     one for WAL internals (connection pause)
  *     one for the control stack,
  *     one for the control stack,
  *     one for the data stack
  *     one for the data stack
  *     and one for debugging
  *     and one for debugging

+ 2 - 2
core/mac/src/cfg/cfgUtil/dot11f.frms

@@ -1202,7 +1202,7 @@ TLV VendorExtension ( TLV_VENDOR_EXTENSION ) ( 2 : 2 ) MSB
     vendorId[ 3 ];
     vendorId[ 3 ];
 
 
     /**
     /**
-     * \breif Version2
+     * \brief Version2
      *
      *
      * The Version2 field specifies the version Wi-Fi Simple
      * The Version2 field specifies the version Wi-Fi Simple
      * Configuration implemented by the device sending this attribute.
      * Configuration implemented by the device sending this attribute.
@@ -3609,7 +3609,7 @@ MULTIIE WscProbeReq ( EID_VENDOR_SPECIFIC ) OUI( 0x00, 0x50, 0xF2, 0x04 )
 
 
     OPTIONALTLV  RequestDeviceType;              // When a device receives a Probe
     OPTIONALTLV  RequestDeviceType;              // When a device receives a Probe
                                                  // Request containing this type,
                                                  // Request containing this type,
-                                                 // It will only reponse if Primary
+                                                 // It will only respond if Primary
                                                  // or Secondary Device Type matches.
                                                  // or Secondary Device Type matches.
 
 
 } // End Multi-IE WscProbeReq.
 } // End Multi-IE WscProbeReq.

+ 3 - 3
core/mac/src/include/parser_api.h

@@ -1532,7 +1532,7 @@ void lim_ieee80211_pack_ehtcap(uint8_t *ie, tDot11fIEeht_cap dot11f_eht_cap,
  * @dot11f_he_cap: dot11f HE capabilities IE structure
  * @dot11f_he_cap: dot11f HE capabilities IE structure
  * @freq: frequency
  * @freq: frequency
  *
  *
- * This API is used to strip and decode EHT caps IE which is of varaible in
+ * This API is used to strip and decode EHT caps IE which is of variable in
  * length depending on the HE capabilities IE content.
  * length depending on the HE capabilities IE content.
  *
  *
  * Return: QDF_STATUS
  * Return: QDF_STATUS
@@ -1569,7 +1569,7 @@ void lim_ieee80211_pack_ehtop(uint8_t *ie, tDot11fIEeht_op dot11f_eht_op,
  * @dot11f_he_op: dot11f HE operation IE structure
  * @dot11f_he_op: dot11f HE operation IE structure
  * @dot11f_ht_info: dot11f HT info IE structure
  * @dot11f_ht_info: dot11f HT info IE structure
  *
  *
- * This API is used to strip and decode EHT operations IE which is of varaible
+ * This API is used to strip and decode EHT operations IE which is of variable
  * in length depending on the HE capabilities IE content.
  * in length depending on the HE capabilities IE content.
  *
  *
  * Return: QDF_STATUS
  * Return: QDF_STATUS
@@ -1684,7 +1684,7 @@ QDF_STATUS populate_dot11f_btm_extended_caps(struct mac_context *mac_ctx,
 					     struct sDot11fIEExtCap *dot11f);
 					     struct sDot11fIEExtCap *dot11f);
 
 
 /**
 /**
- * lim_truncate_ppet: truncates ppet of trailling zeros
+ * lim_truncate_ppet: truncates ppet of trailing zeros
  * @ppet: ppet to truncate
  * @ppet: ppet to truncate
  * max_len: max length of ppet
  * max_len: max length of ppet
  *
  *

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

@@ -54,7 +54,7 @@ static inline uint16_t sir_swap_u16(uint16_t val)
  *
  *
  * FUNCTION:
  * FUNCTION:
  * This function is called to swap two U8s of an uint16_t value depending
  * This function is called to swap two U8s of an uint16_t value depending
- * on endiannes of the target processor/compiler the software is
+ * on endianness of the target processor/compiler the software is
  * running on
  * running on
  *
  *
  * LOGIC:
  * LOGIC:
@@ -106,7 +106,7 @@ static inline uint32_t sir_swap_u32(uint32_t val)
  *
  *
  * FUNCTION:
  * FUNCTION:
  * This function is called to swap U8s of an uint32_t value depending
  * This function is called to swap U8s of an uint32_t value depending
- * on endiannes of the target processor/compiler the software is
+ * on endianness of the target processor/compiler the software is
  * running on
  * running on
  *
  *
  * LOGIC:
  * LOGIC:

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

@@ -1,6 +1,6 @@
 /*
 /*
  * Copyright (c) 2017, 2019-2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2017, 2019-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
  * 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
@@ -140,7 +140,7 @@ struct eap_auth_reserved {
 	uint8_t flag_r:1;
 	uint8_t flag_r:1;
 	uint8_t flag_b:1;
 	uint8_t flag_b:1;
 	uint8_t flag_l:1;
 	uint8_t flag_l:1;
-	uint8_t reverved:5;
+	uint8_t reserved:5;
 };
 };
 
 
 /*
 /*

+ 2 - 1
core/mac/src/pe/include/lim_ft.h

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2011-2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2011-2021 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
  * 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
@@ -31,7 +32,7 @@
 #include <lim_ser_des_utils.h>
 #include <lim_ser_des_utils.h>
 
 
 /*-------------------------------------------------------------------------
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
    ------------------------------------------------------------------------*/
 void lim_ft_open(struct mac_context *mac, struct pe_session *pe_session);
 void lim_ft_open(struct mac_context *mac, struct pe_session *pe_session);
 void lim_ft_cleanup(struct mac_context *mac, struct pe_session *pe_session);
 void lim_ft_cleanup(struct mac_context *mac, struct pe_session *pe_session);

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

@@ -409,7 +409,7 @@ struct pe_session {
 	ePhyChanBondState htSecondaryChannelOffset;
 	ePhyChanBondState htSecondaryChannelOffset;
 	enum reg_wifi_band limRFBand;
 	enum reg_wifi_band limRFBand;
 
 
-	/* These global varibales moved to session Table to support BT-AMP : Oct 9th review */
+	/* These global variables moved to session Table to support BT-AMP : Oct 9th review */
 	tAniAuthType limCurrentAuthType;
 	tAniAuthType limCurrentAuthType;
 	uint16_t limCurrentBssCaps;
 	uint16_t limCurrentBssCaps;
 	uint8_t limCurrentBssQosCaps;
 	uint8_t limCurrentBssQosCaps;
@@ -419,7 +419,7 @@ struct pe_session {
 	/* Parameters  For Reassociation */
 	/* Parameters  For Reassociation */
 	tSirMacAddr limReAssocbssId;
 	tSirMacAddr limReAssocbssId;
 	uint32_t lim_reassoc_chan_freq;
 	uint32_t lim_reassoc_chan_freq;
-	/* CB paramaters required/duplicated for Reassoc since re-assoc mantains its own params in lim */
+	/* CB parameters required/duplicated for Reassoc since re-assoc maintains its own params in lim */
 	uint8_t reAssocHtSupportedChannelWidthSet;
 	uint8_t reAssocHtSupportedChannelWidthSet;
 	uint8_t reAssocHtRecommendedTxWidthSet;
 	uint8_t reAssocHtRecommendedTxWidthSet;
 	ePhyChanBondState reAssocHtSecondaryChannelOffset;
 	ePhyChanBondState reAssocHtSecondaryChannelOffset;
@@ -703,7 +703,7 @@ struct pe_session {
 	bool isNonRoamReassoc;
 	bool isNonRoamReassoc;
 	qdf_mc_timer_t pmf_retry_timer;
 	qdf_mc_timer_t pmf_retry_timer;
 	struct comeback_timer_info pmf_retry_timer_info;
 	struct comeback_timer_info pmf_retry_timer_info;
-	/* timer for resetting protection fileds at regular intervals */
+	/* timer for resetting protection fields at regular intervals */
 	qdf_mc_timer_t protection_fields_reset_timer;
 	qdf_mc_timer_t protection_fields_reset_timer;
 	/* timer to decrement CSA/ECSA count */
 	/* timer to decrement CSA/ECSA count */
 	qdf_mc_timer_t ap_ecsa_timer;
 	qdf_mc_timer_t ap_ecsa_timer;
@@ -818,7 +818,7 @@ struct pe_session {
 };
 };
 
 
 /*-------------------------------------------------------------------------
 /*-------------------------------------------------------------------------
-   Function declarations and documenation
+   Function declarations and documentation
    ------------------------------------------------------------------------*/
    ------------------------------------------------------------------------*/
 
 
 #ifdef WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY
 #ifdef WLAN_ALLOCATE_GLOBAL_BUFFERS_DYNAMICALLY

+ 2 - 1
core/mac/src/pe/include/rrm_global.h

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2011-2012, 2014-2020 The Linux Foundation. All rights reserved.
  * Copyright (c) 2011-2012, 2014-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * 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
@@ -63,7 +64,7 @@ typedef struct sSirBeaconReportReqInd {
 	tSirMacAddr macaddrBssid;
 	tSirMacAddr macaddrBssid;
 	/* 0:Passive, 1: Active, 2: table mode */
 	/* 0:Passive, 1: Active, 2: table mode */
 	uint8_t fMeasurementtype[SIR_ESE_MAX_MEAS_IE_REQS];
 	uint8_t fMeasurementtype[SIR_ESE_MAX_MEAS_IE_REQS];
-	tAniSSID ssId;          /* May be wilcard. */
+	tAniSSID ssId;          /* May be wildcard. */
 	uint16_t uDialogToken;
 	uint16_t uDialogToken;
 	struct report_channel_list channel_list; /* From AP channel report. */
 	struct report_channel_list channel_list; /* From AP channel report. */
 	tRrmMsgReqSource msgSource;
 	tRrmMsgReqSource msgSource;

+ 3 - 2
core/mac/src/pe/include/sch_api.h

@@ -1,6 +1,7 @@
 /*
 /*
  * Copyright (c) 2011-2015, 2017-2019, 2021 The Linux Foundation. All rights
  * Copyright (c) 2011-2015, 2017-2019, 2021 The Linux Foundation. All rights
  * reserved.
  * reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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
@@ -60,7 +61,7 @@ QDF_STATUS sch_set_fixed_beacon_fields(struct mac_context *mac,
  * sch_process_pre_beacon_ind() - Process the PreBeacon Indication from the Lim
  * sch_process_pre_beacon_ind() - Process the PreBeacon Indication from the Lim
  * @mac: pointer to mac structure
  * @mac: pointer to mac structure
  * @msg: schedular msg
  * @msg: schedular msg
- * @reason: beaon update reason
+ * @reason: beacon update reason
  *
  *
  * return: success: QDF_STATUS_SUCCESS failure: QDF_STATUS_E_FAILURE
  * return: success: QDF_STATUS_SUCCESS failure: QDF_STATUS_E_FAILURE
  */
  */
@@ -86,7 +87,7 @@ void sch_set_beacon_interval(struct mac_context *mac,
  * @bcn_payload: beacon payload
  * @bcn_payload: beacon payload
  * @size: beacon size
  * @size: beacon size
  * @session:pe session
  * @session:pe session
- * @reason: beaon update reason
+ * @reason: beacon update reason
  *
  *
  * return: success: QDF_STATUS_SUCCESS failure: QDF_STATUS_E_FAILURE
  * return: success: QDF_STATUS_SUCCESS failure: QDF_STATUS_E_FAILURE
  */
  */

+ 3 - 2
core/mac/src/pe/include/sch_global.h

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2013-2014, 2017-2019, 2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2013-2014, 2017-2019, 2021 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
  * 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,11 +49,11 @@
  * struct ml_sch_partner_info - Partner link information
  * struct ml_sch_partner_info - Partner link information
  * @vdev_id: Vdev id
  * @vdev_id: Vdev id
  * @beacon_interval: Beacon interval
  * @beacon_interval: Beacon interval
- * @bcn_csa_cnt_ofst: CSA swith count offset in beacon frame
+ * @bcn_csa_cnt_ofst: CSA switch count offset in beacon frame
  * @bcn_ext_csa_cnt_ofst: ECSA switch count offset in beacon frame
  * @bcn_ext_csa_cnt_ofst: ECSA switch count offset in beacon frame
  * @link_info_sta_prof_ofst: offset sta profile in link info.
  * @link_info_sta_prof_ofst: offset sta profile in link info.
  *                           If per sta profile exists, this value is non zero
  *                           If per sta profile exists, this value is non zero
- * @prb_csa_cnt_ofst: CSA swith count offset in probe frame
+ * @prb_csa_cnt_ofst: CSA switch count offset in probe frame
  * @prb_ext_csa_cnt_ofst: ECSA switch count offset in probe frame
  * @prb_ext_csa_cnt_ofst: ECSA switch count offset in probe frame
  * @csa_ext_csa_exist: csa or ext csa exists
  * @csa_ext_csa_exist: csa or ext csa exists
  */
  */

+ 2 - 1
core/mac/src/pe/lim/lim_admit_control.c

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2011-2020 The Linux Foundation. All rights reserved.
  * Copyright (c) 2011-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
  * 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
@@ -404,7 +405,7 @@ lim_tspec_find_by_sta_addr(struct mac_context *mac,
 
 
 /** -------------------------------------------------------------
 /** -------------------------------------------------------------
    \fn lim_tspec_find_by_assoc_id
    \fn lim_tspec_find_by_assoc_id
-   \brief find tspec with matchin staid and Tspec
+   \brief find tspec with matching staid and Tspec
    \param   struct mac_context *mac
    \param   struct mac_context *mac
    \param       uint32_t               staid
    \param       uint32_t               staid
    \param       struct mac_tspec_ie    *pTspecIE
    \param       struct mac_tspec_ie    *pTspecIE

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

@@ -1467,7 +1467,7 @@ lim_enc_type_matched(struct mac_context *mac_ctx,
 	 * check for security type in case
 	 * check for security type in case
 	 * OSEN session.
 	 * OSEN session.
 	 * For WPS registration session no need to detect
 	 * For WPS registration session no need to detect
-	 * detect security mismatch as it wont match and
+	 * detect security mismatch as it won't match and
 	 * driver may end up sending probe request without
 	 * driver may end up sending probe request without
 	 * WPS IE during WPS registration process.
 	 * WPS IE during WPS registration process.
 	 */
 	 */
@@ -2202,7 +2202,7 @@ lim_roam_fill_bss_descr(struct mac_context *mac,
 	}
 	}
 
 
 	/*
 	/*
-	 * Length of BSS desription is without length of
+	 * Length of BSS description is without length of
 	 * length itself and length of pointer
 	 * length itself and length of pointer
 	 * that holds ieFields
 	 * that holds ieFields
 	 *
 	 *
@@ -2887,7 +2887,7 @@ static bool lim_is_beacon_miss_scenario(struct mac_context *mac,
 
 
    This function is called before enqueuing the frame to PE queue for further processing.
    This function is called before enqueuing the frame to PE queue for further processing.
    This prevents unnecessary frames getting into PE Queue and drops them right away.
    This prevents unnecessary frames getting into PE Queue and drops them right away.
-   Frames will be droped in the following scenarios:
+   Frames will be dropped in the following scenarios:
 
 
    - In Scan State, drop the frames which are not marked as scan frames
    - In Scan State, drop the frames which are not marked as scan frames
    - In non-Scan state, drop the frames which are marked as scan frames.
    - In non-Scan state, drop the frames which are marked as scan frames.
@@ -2939,7 +2939,7 @@ tMgmtFrmDropReason lim_is_pkt_candidate_for_drop(struct mac_context *mac,
 			return eMGMT_DROP_NO_DROP;
 			return eMGMT_DROP_NO_DROP;
 
 
 		/* Drop INFRA Beacons and Probe Responses in IBSS Mode */
 		/* Drop INFRA Beacons and Probe Responses in IBSS Mode */
-		/* This can be enhanced to even check the SSID before deciding to enque the frame. */
+		/* This can be enhanced to even check the SSID before deciding to enqueue the frame. */
 		if (capabilityInfo.ess)
 		if (capabilityInfo.ess)
 			return eMGMT_DROP_INFRA_BCN_IN_IBSS;
 			return eMGMT_DROP_INFRA_BCN_IN_IBSS;
 
 

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

@@ -4301,7 +4301,7 @@ QDF_STATUS lim_sta_send_add_bss_pre_assoc(struct mac_context *mac,
 					      pe_session, retCode);
 					      pe_session, retCode);
 	qdf_mem_free(pAddBssParams);
 	qdf_mem_free(pAddBssParams);
 	/*
 	/*
-	 * Set retCode sucess as lim_process_sta_add_bss_rsp_pre_assoc take
+	 * Set retCode success as lim_process_sta_add_bss_rsp_pre_assoc take
 	 * care of failure
 	 * care of failure
 	 */
 	 */
 	retCode = QDF_STATUS_SUCCESS;
 	retCode = QDF_STATUS_SUCCESS;
@@ -4450,7 +4450,7 @@ void lim_init_pre_auth_timer_table(struct mac_context *mac,
 
 
 /** -------------------------------------------------------------
 /** -------------------------------------------------------------
    \fn lim_acquire_free_pre_auth_node
    \fn lim_acquire_free_pre_auth_node
-   \brief Retrives a free Pre Auth node from Pre Auth Table.
+   \brief Retrieves a free Pre Auth node from Pre Auth Table.
    \param     struct mac_context *   mac
    \param     struct mac_context *   mac
    \param     tpLimPreAuthTable pPreAuthTimerTable
    \param     tpLimPreAuthTable pPreAuthTimerTable
    \return none
    \return none

+ 2 - 2
core/mac/src/pe/lim/lim_assoc_utils.h

@@ -1,6 +1,6 @@
 /*
 /*
  * Copyright (c) 2011-2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2011-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
  * 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
@@ -239,7 +239,7 @@ void lim_update_assoc_sta_datas(struct mac_context *mac,
  * @bss_chan_freq: operating frequency of bss
  * @bss_chan_freq: operating frequency of bss
  * @ht_cap: ht capability extract from beacon/assoc response
  * @ht_cap: ht capability extract from beacon/assoc response
  * @ht_inf: ht information extract from beacon/assoc response
  * @ht_inf: ht information extract from beacon/assoc response
- * @chan_width_support: local wide bandwith support capability
+ * @chan_width_support: local wide bandwidth support capability
  * @add_bss: add bss request struct to be updated
  * @add_bss: add bss request struct to be updated
  *
  *
  * Return: none
  * Return: none

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

@@ -395,7 +395,7 @@ static uint8_t lim_convert_phymode_to_dot11mode(enum wlan_phymode phymode)
  * @bcn: beacon structure
  * @bcn: beacon structure
  * @band: reg_wifi_band
  * @band: reg_wifi_band
  *
  *
- * The function is to calculate dot11 mode in case fw doen't send phy mode.
+ * The function is to calculate dot11 mode in case fw doesn't send phy mode.
  *
  *
  * Return: dot11mode.
  * Return: dot11mode.
  */
  */

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

@@ -51,7 +51,7 @@
  * lim_delete_sta_util - utility function for deleting station context
  * lim_delete_sta_util - utility function for deleting station context
  *
  *
  * @mac_ctx: global MAC context
  * @mac_ctx: global MAC context
- * @msg: pointer to delte station context
+ * @msg: pointer to delete station context
  * @session_entry: PE session entry
  * @session_entry: PE session entry
  *
  *
  * utility function called to clear up station context.
  * utility function called to clear up station context.

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

@@ -97,7 +97,7 @@ void lim_stop_tx_and_switch_channel(struct mac_context *mac, uint8_t sessionId)
 	 * If status is QDF_STATUS_E_FAILURE, mean HW mode change was required
 	 * If status is QDF_STATUS_E_FAILURE, mean HW mode change was required
 	 * but driver failed to set HW mode so ignore CSA for the channel.
 	 * but driver failed to set HW mode so ignore CSA for the channel.
 	 * If status is QDF_STATUS_SUCCESS mean HW mode change was required
 	 * If status is QDF_STATUS_SUCCESS mean HW mode change was required
-	 * and was sucessfully changed so the channel switch will continue after
+	 * and was successfully changed so the channel switch will continue after
 	 * HW mode change completion.
 	 * HW mode change completion.
 	 * If status is QDF_STATUS_E_NOSUPPORT or QDF_STATUS_E_ALREADY, mean
 	 * If status is QDF_STATUS_E_NOSUPPORT or QDF_STATUS_E_ALREADY, mean
 	 * DBS is not supported or required HW mode is already set, so
 	 * DBS is not supported or required HW mode is already set, so
@@ -1340,7 +1340,7 @@ static void __lim_process_sa_query_request_action_frame(struct mac_context *mac,
 		/*
 		/*
 		 * In case of channel switch, last ocv frequency will be
 		 * In case of channel switch, last ocv frequency will be
 		 * different from current frquency.
 		 * different from current frquency.
-		 * If there is channel switch and OCI is inavlid in sa_query,
+		 * If there is channel switch and OCI is invalid in sa_query,
 		 * deauth STA on new channel.
 		 * deauth STA on new channel.
 		 */
 		 */
 		if (sta_ds && sta_ds->ocv_enabled &&
 		if (sta_ds && sta_ds->ocv_enabled &&

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

@@ -408,7 +408,7 @@ static bool lim_chk_rates(struct mac_context *mac_ctx, tSirMacAddr sa,
 	if (lim_check_rx_basic_rates(mac_ctx, basic_rates, session) == true)
 	if (lim_check_rx_basic_rates(mac_ctx, basic_rates, session) == true)
 		return true;
 		return true;
 
 
-	pe_warn("Assoc Req rejected: unsupported rates, soruce addr: %s"
+	pe_warn("Assoc Req rejected: unsupported rates, source addr: %s"
 			QDF_MAC_ADDR_FMT,
 			QDF_MAC_ADDR_FMT,
 		(LIM_ASSOC == sub_type) ? "Assoc" : "ReAssoc",
 		(LIM_ASSOC == sub_type) ? "Assoc" : "ReAssoc",
 		QDF_MAC_ADDR_REF(sa));
 		QDF_MAC_ADDR_REF(sa));
@@ -2702,7 +2702,7 @@ void lim_process_assoc_req_frame(struct mac_context *mac_ctx,
 			return;
 			return;
 		} else if (sta_ds->rmfEnabled && !sta_ds->is_key_installed) {
 		} else if (sta_ds->rmfEnabled && !sta_ds->is_key_installed) {
 			/* When PMF enabled, SA Query will be triggered
 			/* When PMF enabled, SA Query will be triggered
-			 * unexpectly if duplicated assoc_req received -
+			 * unexpectedly if duplicated assoc_req received -
 			 * 1) after pre_auth node deleted and
 			 * 1) after pre_auth node deleted and
 			 * 2) before key installed.
 			 * 2) before key installed.
 			 * Here drop such duplicated assoc_req frame.
 			 * Here drop such duplicated assoc_req frame.

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

@@ -763,7 +763,7 @@ lim_update_iot_aggr_sz(struct mac_context *mac_ctx, uint8_t *ie_ptr,
 
 
 /**
 /**
  * hdd_cm_update_mcs_rate_set() - Update MCS rate set from HT capability
  * hdd_cm_update_mcs_rate_set() - Update MCS rate set from HT capability
- * @vdev: Pointer to vdev boject
+ * @vdev: Pointer to vdev object
  * @ht_cap: pointer to parsed HT capability
  * @ht_cap: pointer to parsed HT capability
  *
  *
  * Return: None.
  * Return: None.
@@ -1222,7 +1222,7 @@ lim_process_assoc_rsp_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info,
 	 */
 	 */
 	if (!lim_verify_fils_params_assoc_rsp(mac_ctx, session_entry,
 	if (!lim_verify_fils_params_assoc_rsp(mac_ctx, session_entry,
 						assoc_rsp, &assoc_cnf)) {
 						assoc_rsp, &assoc_cnf)) {
-		pe_err("FILS params doesnot match");
+		pe_err("FILS params does not match");
 		assoc_cnf.resultCode = eSIR_SME_INVALID_ASSOC_RSP_RXED;
 		assoc_cnf.resultCode = eSIR_SME_INVALID_ASSOC_RSP_RXED;
 		assoc_cnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
 		assoc_cnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
 		/* Send advisory Disassociation frame to AP */
 		/* Send advisory Disassociation frame to AP */

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

@@ -102,7 +102,7 @@ static inline unsigned int is_auth_valid(struct mac_context *mac,
  * @wep_params: pointer to wlan_mlme_wep_cfg
  * @wep_params: pointer to wlan_mlme_wep_cfg
  * @key_id: key id
  * @key_id: key id
  * @default_key: output of the key
  * @default_key: output of the key
- * @key_len: output of ket length
+ * @key_len: output of key length
  *
  *
  * Return: QDF_STATUS
  * Return: QDF_STATUS
  */
  */
@@ -377,7 +377,7 @@ void lim_sae_auth_cleanup_retry(struct mac_context *mac_ctx,
  * @q_len: length of queued sae auth retry frame
  * @q_len: length of queued sae auth retry frame
  * @rx_pkt_info: Rx packet
  * @rx_pkt_info: Rx packet
  *
  *
- * Return: True if SAE auth seq is mached else false
+ * Return: True if SAE auth seq is matched else false
  */
  */
 static bool lim_is_sae_auth_algo_match(uint8_t *queued_frame, uint16_t q_len,
 static bool lim_is_sae_auth_algo_match(uint8_t *queued_frame, uint16_t q_len,
 				       uint8_t *rx_pkt_info)
 				       uint8_t *rx_pkt_info)
@@ -1182,7 +1182,7 @@ static void lim_process_auth_frame_type3(struct mac_context *mac_ctx,
 					auth_node->challengeText,
 					auth_node->challengeText,
 					SIR_MAC_SAP_AUTH_CHALLENGE_LENGTH)) {
 					SIR_MAC_SAP_AUTH_CHALLENGE_LENGTH)) {
 			/*
 			/*
-			 * Challenge match. STA is autheticated
+			 * Challenge match. STA is authenticated
 			 * Delete Authentication response timer if running
 			 * Delete Authentication response timer if running
 			 */
 			 */
 			lim_deactivate_and_change_per_sta_id_timer(mac_ctx,
 			lim_deactivate_and_change_per_sta_id_timer(mac_ctx,
@@ -1343,7 +1343,7 @@ static void lim_process_auth_frame_type4(struct mac_context *mac_ctx,
  * NOTE:
  * NOTE:
  * 1. Authentication failures are reported to SME with same status code
  * 1. Authentication failures are reported to SME with same status code
  *    received from the peer MAC entity.
  *    received from the peer MAC entity.
- * 2. Authentication frame2/4 received with alogirthm number other than
+ * 2. Authentication frame2/4 received with algorithm number other than
  *    one requested in frame1/3 are logged with an error and auth confirm
  *    one requested in frame1/3 are logged with an error and auth confirm
  *    will be sent to SME only after auth failure timeout.
  *    will be sent to SME only after auth failure timeout.
  * 3. Inconsistency in the spec:
  * 3. Inconsistency in the spec:

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

@@ -324,7 +324,7 @@ lim_process_deauth_frame(struct mac_context *mac, uint8_t *pRxPacketInfo,
 
 
 #ifdef WLAN_FEATURE_SAE
 #ifdef WLAN_FEATURE_SAE
 /*
 /*
- * lim_process_sae_auth_msg() - Process auth msg after recieving deauth
+ * lim_process_sae_auth_msg() - Process auth msg after receiving deauth
  * @mac_ctx: Global MAC context
  * @mac_ctx: Global MAC context
  * @pe_session: PE session entry pointer
  * @pe_session: PE session entry pointer
  * @addr: peer address/ source address
  * @addr: peer address/ source address
@@ -446,7 +446,7 @@ void lim_perform_deauth(struct mac_context *mac_ctx, struct pe_session *pe_sessi
 				 pe_session->peSessionId,
 				 pe_session->peSessionId,
 				 pe_session->limMlmState));
 				 pe_session->limMlmState));
 
 
-			/* Deactive Association response timeout */
+			/* Deactivate Association response timeout */
 			lim_deactivate_and_change_timer(mac_ctx,
 			lim_deactivate_and_change_timer(mac_ctx,
 					eLIM_ASSOC_FAIL_TIMER);
 					eLIM_ASSOC_FAIL_TIMER);
 
 

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

@@ -20,7 +20,7 @@
 /*
 /*
  *
  *
  * This file lim_process_disassoc_frame.cc contains the code
  * This file lim_process_disassoc_frame.cc contains the code
- * for processing Disassocation Frame.
+ * for processing Disassociation Frame.
  * Author:        Chandra Modumudi
  * Author:        Chandra Modumudi
  * Date:          03/24/02
  * Date:          03/24/02
  * History:-
  * History:-

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

@@ -282,7 +282,7 @@ static QDF_STATUS lim_get_key_from_prf(uint8_t *type, uint8_t *secret,
 	uint16_t key_bit_length = keylen * 8;
 	uint16_t key_bit_length = keylen * 8;
 	uint8_t key_length[2];
 	uint8_t key_length[2];
 	uint32_t i = 0, remain_len;
 	uint32_t i = 0, remain_len;
-	uint16_t interation;
+	uint16_t iteration;
 	uint8_t crypto_digest_len = lim_get_crypto_digest_len(type);
 	uint8_t crypto_digest_len = lim_get_crypto_digest_len(type);
 	uint8_t tmp_hash[SHA384_DIGEST_SIZE] = {0};
 	uint8_t tmp_hash[SHA384_DIGEST_SIZE] = {0};
 
 
@@ -304,9 +304,9 @@ static QDF_STATUS lim_get_key_from_prf(uint8_t *type, uint8_t *secret,
 	addr[3] = key_length;
 	addr[3] = key_length;
 	len[3] = sizeof(key_length);
 	len[3] = sizeof(key_length);
 
 
-	for (interation = 1; i < keylen; interation++) {
+	for (iteration = 1; i < keylen; iteration++) {
 		remain_len = keylen - i;
 		remain_len = keylen - i;
-		qdf_mem_copy(count, &interation, sizeof(interation));
+		qdf_mem_copy(count, &iteration, sizeof(iteration));
 
 
 		if (remain_len >= crypto_digest_len)
 		if (remain_len >= crypto_digest_len)
 			remain_len = crypto_digest_len;
 			remain_len = crypto_digest_len;

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

@@ -1685,7 +1685,7 @@ static void lim_process_messages(struct mac_context *mac_ctx,
 			}
 			}
 		} else {
 		} else {
 			/* PE is not deferring this 802.11 frame so we need to
 			/* PE is not deferring this 802.11 frame so we need to
-			 * call cds_pkt_return. Asumption here is when Rx mgmt
+			 * call cds_pkt_return. Assumption here is when Rx mgmt
 			 * frame processing is done, cds packet could be
 			 * frame processing is done, cds packet could be
 			 * freed here.
 			 * freed here.
 			 */
 			 */
@@ -1929,7 +1929,7 @@ static void lim_process_messages(struct mac_context *mac_ctx,
 				(uint8_t)msg->bodyval;
 				(uint8_t)msg->bodyval;
 			/*
 			/*
 			 * if message comes for DFS channel, no need to update:
 			 * if message comes for DFS channel, no need to update:
-			 * 1) We wont have MCC with DFS channels. so no need to
+			 * 1) We won't have MCC with DFS channels. so no need to
 			 *    add Q2Q IE
 			 *    add Q2Q IE
 			 * 2) We cannot end up in DFS channel SCC by channel
 			 * 2) We cannot end up in DFS channel SCC by channel
 			 *    switch from non DFS MCC scenario, so no need to
 			 *    switch from non DFS MCC scenario, so no need to
@@ -2180,7 +2180,7 @@ static void lim_process_normal_hdd_msg(struct mac_context *mac_ctx,
 		 * 1. If we are in learn mode and we receive any of these
 		 * 1. If we are in learn mode and we receive any of these
 		 * messages, you have to come out of scan and process the
 		 * messages, you have to come out of scan and process the
 		 * message, hence dont defer the message here. In handler,
 		 * message, hence dont defer the message here. In handler,
-		 * these message could be defered till we actually come out of
+		 * these message could be deferred till we actually come out of
 		 * scan mode.
 		 * scan mode.
 		 * 2. If radar is detected, you might have to defer all of
 		 * 2. If radar is detected, you might have to defer all of
 		 * these messages except Stop BSS request/ Switch channel
 		 * these messages except Stop BSS request/ Switch channel
@@ -2212,7 +2212,7 @@ static void lim_process_normal_hdd_msg(struct mac_context *mac_ctx,
 	} else {
 	} else {
 		/*
 		/*
 		 * These messages are from HDD.Since these requests may also be
 		 * These messages are from HDD.Since these requests may also be
-		 * generated internally within LIM module, need to distinquish
+		 * generated internally within LIM module, need to distinguish
 		 * and send response to host
 		 * and send response to host
 		 */
 		 */
 		if (rsp_reqd)
 		if (rsp_reqd)

+ 3 - 2
core/mac/src/pe/lim/lim_process_mlm_host_roam.c

@@ -89,7 +89,8 @@ void lim_process_mlm_reassoc_req(struct mac_context *mac_ctx,
 		 * parameters code.
 		 * parameters code.
 		 */
 		 */
 
 
-		pe_warn("unexpect msg state: %X role: %d MAC" QDF_MAC_ADDR_FMT,
+		pe_warn("unexpected msg state: %X role: %d MAC "
+			QDF_MAC_ADDR_FMT,
 			session->limMlmState, GET_LIM_SYSTEM_ROLE(session),
 			session->limMlmState, GET_LIM_SYSTEM_ROLE(session),
 			QDF_MAC_ADDR_REF(reassoc_req->peerMacAddr));
 			QDF_MAC_ADDR_REF(reassoc_req->peerMacAddr));
 		lim_print_mlm_state(mac_ctx, LOGW, session->limMlmState);
 		lim_print_mlm_state(mac_ctx, LOGW, session->limMlmState);
@@ -144,7 +145,7 @@ void lim_process_mlm_reassoc_req(struct mac_context *mac_ctx,
 	return;
 	return;
 end:
 end:
 	reassoc_cnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
 	reassoc_cnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
-	/* Update PE sessio Id */
+	/* Update PE session Id */
 	reassoc_cnf.sessionId = reassoc_req->sessionId;
 	reassoc_cnf.sessionId = reassoc_req->sessionId;
 	/* Free up buffer allocated for reassocReq */
 	/* Free up buffer allocated for reassocReq */
 	qdf_mem_free(reassoc_req);
 	qdf_mem_free(reassoc_req);

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

@@ -549,8 +549,7 @@ static bool lim_is_auth_req_expected(struct mac_context *mac_ctx,
 }
 }
 
 
 /**
 /**
- * lim_is_preauth_ctx_exisits() - check if preauth context exists
- *
+ * lim_is_preauth_ctx_exists() - check if preauth context exists
  * @mac_ctx:          global MAC context
  * @mac_ctx:          global MAC context
  * @session:          PE session entry
  * @session:          PE session entry
  * @preauth_node_ptr: pointer to preauth node pointer
  * @preauth_node_ptr: pointer to preauth node pointer

+ 10 - 10
core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c

@@ -965,7 +965,7 @@ void lim_process_mlm_disassoc_cnf(struct mac_context *mac_ctx,
 			eLIM_SME_WT_DEAUTH_STATE)) {
 			eLIM_SME_WT_DEAUTH_STATE)) {
 			/*
 			/*
 			 * Should not have received
 			 * Should not have received
-			 * Disassocate confirm
+			 * Disassociate confirm
 			 * from MLM in other states.Log error
 			 * from MLM in other states.Log error
 			 */
 			 */
 			pe_err("received MLM_DISASSOC_CNF in state %X",
 			pe_err("received MLM_DISASSOC_CNF in state %X",
@@ -1428,7 +1428,7 @@ void lim_process_mlm_add_sta_rsp(struct mac_context *mac,
 {
 {
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
-	/* the deffered flag. */
+	/* the deferred flag. */
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
 	if (LIM_IS_AP_ROLE(pe_session)) {
 	if (LIM_IS_AP_ROLE(pe_session)) {
 		lim_process_ap_mlm_add_sta_rsp(mac, limMsgQ, pe_session);
 		lim_process_ap_mlm_add_sta_rsp(mac, limMsgQ, pe_session);
@@ -1598,7 +1598,7 @@ void lim_process_mlm_del_bss_rsp(struct mac_context *mac,
 {
 {
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
-	/* the deffered flag. */
+	/* the deferred flag. */
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
 	mac->sys.gSysFrameCount[SIR_MAC_MGMT_FRAME][SIR_MAC_MGMT_DEAUTH] = 0;
 	mac->sys.gSysFrameCount[SIR_MAC_MGMT_FRAME][SIR_MAC_MGMT_DEAUTH] = 0;
 
 
@@ -1776,7 +1776,7 @@ void lim_process_mlm_del_sta_rsp(struct mac_context *mac_ctx,
 	 * initiating req. there might be nested request
 	 * initiating req. there might be nested request
 	 * in the case of nested request the new request
 	 * in the case of nested request the new request
 	 * initiated from the response will take care of resetting
 	 * initiated from the response will take care of resetting
-	 * the deffered flag.
+	 * the deferred flag.
 	 */
 	 */
 	struct pe_session *session_entry;
 	struct pe_session *session_entry;
 	tpDeleteStaParams del_sta_params;
 	tpDeleteStaParams del_sta_params;
@@ -2365,7 +2365,7 @@ void lim_handle_add_bss_rsp(struct mac_context *mac_ctx,
 	 * we need to process the deferred message since the
 	 * we need to process the deferred message since the
 	 * initiating req.there might be nested request.
 	 * initiating req.there might be nested request.
 	 * in the case of nested request the new request initiated
 	 * in the case of nested request the new request initiated
-	 * from the response will take care of resetting the deffered
+	 * from the response will take care of resetting the deferred
 	 * flag.
 	 * flag.
 	 */
 	 */
 	SET_LIM_PROCESS_DEFD_MESGS(mac_ctx, true);
 	SET_LIM_PROCESS_DEFD_MESGS(mac_ctx, true);
@@ -2751,7 +2751,7 @@ end:
 	}
 	}
 
 
 	mlmReassocCnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
 	mlmReassocCnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
-	/* Update PE sessio Id */
+	/* Update PE session Id */
 	mlmReassocCnf.sessionId = pe_session->peSessionId;
 	mlmReassocCnf.sessionId = pe_session->peSessionId;
 
 
 	lim_post_sme_message(mac, LIM_MLM_REASSOC_CNF,
 	lim_post_sme_message(mac, LIM_MLM_REASSOC_CNF,
@@ -3116,7 +3116,7 @@ void lim_process_switch_channel_rsp(struct mac_context *mac,
 	struct wlan_channel *vdev_chan;
 	struct wlan_channel *vdev_chan;
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
-	/* the deffered flag. */
+	/* the deferred flag. */
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
 	status = rsp->status;
 	status = rsp->status;
 
 
@@ -3165,7 +3165,7 @@ void lim_process_switch_channel_rsp(struct mac_context *mac,
 							  gpchangeChannelData,
 							  gpchangeChannelData,
 							  pe_session);
 							  pe_session);
 
 
-		/* If MCC upgrade/DBS downgrade happended during channel switch,
+		/* If MCC upgrade/DBS downgrade happened during channel switch,
 		 * the policy manager connection table needs to be updated.
 		 * the policy manager connection table needs to be updated.
 		 */
 		 */
 		policy_mgr_update_connection_info(mac->psoc,
 		policy_mgr_update_connection_info(mac->psoc,
@@ -3188,7 +3188,7 @@ void lim_process_switch_channel_rsp(struct mac_context *mac,
 		 * SAP.
 		 * SAP.
 		 */
 		 */
 		lim_send_sme_ap_channel_switch_resp(mac, pe_session, rsp);
 		lim_send_sme_ap_channel_switch_resp(mac, pe_session, rsp);
-		/* If MCC upgrade/DBS downgrade happended during channel switch,
+		/* If MCC upgrade/DBS downgrade happened during channel switch,
 		 * the policy manager connection table needs to be updated.
 		 * the policy manager connection table needs to be updated.
 		 */
 		 */
 		policy_mgr_update_connection_info(mac->psoc,
 		policy_mgr_update_connection_info(mac->psoc,
@@ -3198,7 +3198,7 @@ void lim_process_switch_channel_rsp(struct mac_context *mac,
 	case LIM_SWITCH_CHANNEL_MONITOR:
 	case LIM_SWITCH_CHANNEL_MONITOR:
 		lim_handle_mon_switch_channel_rsp(pe_session, status);
 		lim_handle_mon_switch_channel_rsp(pe_session, status);
 		/*
 		/*
-		 * If MCC upgrade/DBS downgrade happended during channel switch,
+		 * If MCC upgrade/DBS downgrade happened during channel switch,
 		 * the policy manager connection table needs to be updated.
 		 * the policy manager connection table needs to be updated.
 		 */
 		 */
 		policy_mgr_update_connection_info(mac->psoc,
 		policy_mgr_update_connection_info(mac->psoc,

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

@@ -112,7 +112,7 @@ static void lim_update_pbc_session_entry(struct mac_context *mac,
 		(uint32_t) (qdf_mc_timer_get_system_ticks() /
 		(uint32_t) (qdf_mc_timer_get_system_ticks() /
 			    QDF_TICKS_PER_SECOND);
 			    QDF_TICKS_PER_SECOND);
 
 
-	pe_debug("Receive WPS probe reques curTime: %d", curTime);
+	pe_debug("Receive WPS probe request curTime: %d", curTime);
 	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 			   addr, QDF_MAC_ADDR_SIZE);
 			   addr, QDF_MAC_ADDR_SIZE);
 	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
@@ -226,7 +226,7 @@ static bool lim_check11b_rates(uint8_t rate)
 #ifdef CONFIG_BAND_6GHZ
 #ifdef CONFIG_BAND_6GHZ
 /**
 /**
  * lim_need_broadcast_probe_rsp: check whether need broadcast probe rsp
  * lim_need_broadcast_probe_rsp: check whether need broadcast probe rsp
- * @session: a ponter to session entry
+ * @session: a pointer to session entry
  * @probe_req_da: probe request dst addr
  * @probe_req_da: probe request dst addr
  *
  *
  * Return: bool
  * Return: bool
@@ -252,7 +252,7 @@ static bool lim_need_broadcast_probe_rsp(struct pe_session *session,
  * lim_process_probe_req_frame: to process probe req frame
  * lim_process_probe_req_frame: to process probe req frame
  * @mac_ctx: Pointer to Global MAC structure
  * @mac_ctx: Pointer to Global MAC structure
  * @rx_pkt_info: A pointer to Buffer descriptor + associated PDUs
  * @rx_pkt_info: A pointer to Buffer descriptor + associated PDUs
- * @session: a ponter to session entry
+ * @session: a pointer to session entry
  *
  *
  * This function is called by limProcessMessageQueue() upon
  * This function is called by limProcessMessageQueue() upon
  * Probe Request frame reception. This function processes received
  * Probe Request frame reception. This function processes received
@@ -374,7 +374,7 @@ lim_process_probe_req_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info,
 			}
 			}
 		}
 		}
 		ssid.length = session->ssId.length;
 		ssid.length = session->ssId.length;
-		/* Copy the SSID from sessio entry to local variable */
+		/* Copy the SSID from session entry to local variable */
 		qdf_mem_copy(ssid.ssId, session->ssId.ssId,
 		qdf_mem_copy(ssid.ssId, session->ssId.ssId,
 				session->ssId.length);
 				session->ssId.length);
 
 

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

@@ -1545,7 +1545,7 @@ static bool lim_is_fast_roam_enabled(struct mac_context *mac_ctx,
 
 
 	/*
 	/*
 	 * If fast roam in concurrency is disabled and there are concurrent
 	 * If fast roam in concurrency is disabled and there are concurrent
-	 * sessions runnig return false.
+	 * sessions running return false.
 	 */
 	 */
 	if (policy_mgr_get_connection_count(mac_ctx->psoc))
 	if (policy_mgr_get_connection_count(mac_ctx->psoc))
 		return false;
 		return false;
@@ -2578,7 +2578,7 @@ lim_verify_dot11_mode_with_crypto(struct pe_session *session)
 	else
 	else
 		session->dot11mode = MLME_DOT11_MODE_11A;
 		session->dot11mode = MLME_DOT11_MODE_11A;
 
 
-	pe_info("HT not supported with TKIP/WEP overiding dot11mode to %d",
+	pe_info("HT not supported with TKIP/WEP overriding dot11mode to %d",
 		session->dot11mode);
 		session->dot11mode);
 
 
 	session->he_with_wep_tkip =
 	session->he_with_wep_tkip =
@@ -4458,7 +4458,7 @@ struct pe_session *lim_get_disconnect_session(struct mac_context *mac_ctx,
 	 * NB disconnect is received before reassoc can start OR reassoc failure
 	 * NB disconnect is received before reassoc can start OR reassoc failure
 	 * lead to disconnect, new AP's session will be idle in wait reassoc
 	 * lead to disconnect, new AP's session will be idle in wait reassoc
 	 * state and vdev in INIT state, so cleanup the session and send
 	 * state and vdev in INIT state, so cleanup the session and send
-	 * responce of disconnect complete.
+	 * response of disconnect complete.
 	 */
 	 */
 	if (session &&
 	if (session &&
 	    QDF_IS_STATUS_SUCCESS(wlan_vdev_mlme_is_init_state(session->vdev))) {
 	    QDF_IS_STATUS_SUCCESS(wlan_vdev_mlme_is_init_state(session->vdev))) {
@@ -6587,7 +6587,7 @@ void __lim_process_sme_assoc_cnf_new(struct mac_context *mac_ctx, uint32_t msg_t
 		goto end;
 		goto end;
 	}
 	}
 	/*
 	/*
-	 * Deactivate/delet CNF_WAIT timer since ASSOC_CNF
+	 * Deactivate/delete CNF_WAIT timer since ASSOC_CNF
 	 * has been received
 	 * has been received
 	 */
 	 */
 	pe_debug("Received SME_ASSOC_CNF. Delete Timer");
 	pe_debug("Received SME_ASSOC_CNF. Delete Timer");
@@ -8825,7 +8825,7 @@ static void lim_process_update_add_ies(struct mac_context *mac_ctx,
 			qdf_mem_free(addn_ie->probeRespData_buff);
 			qdf_mem_free(addn_ie->probeRespData_buff);
 			/* adjust length accordingly */
 			/* adjust length accordingly */
 			addn_ie->probeRespDataLen = new_length;
 			addn_ie->probeRespDataLen = new_length;
-			/* save refernece of local buffer in PE session */
+			/* save reference of local buffer in PE session */
 			addn_ie->probeRespData_buff = new_ptr;
 			addn_ie->probeRespData_buff = new_ptr;
 			goto end;
 			goto end;
 		}
 		}
@@ -9098,7 +9098,7 @@ skip_vht:
 	 * interval until switchCount become 0 and bcn template with new
 	 * interval until switchCount become 0 and bcn template with new
 	 * switchCount will be sent to firmware.
 	 * switchCount will be sent to firmware.
 	 * OR
 	 * OR
-	 * If no tx complete for beacon is recived till this timer expire
+	 * If no tx complete for beacon is received till this timer expire
 	 * this will be restarted for every beacon interval until switchCount
 	 * this will be restarted for every beacon interval until switchCount
 	 * become 0 and bcn template with new switchCount will be sent to
 	 * become 0 and bcn template with new switchCount will be sent to
 	 * firmware.
 	 * firmware.
@@ -9678,7 +9678,7 @@ void lim_process_obss_color_collision_info(struct mac_context *mac_ctx,
 
 
 		if (session->obss_color_collision_dec_evt !=
 		if (session->obss_color_collision_dec_evt !=
 		    obss_color_info->evt_type) {
 		    obss_color_info->evt_type) {
-			pe_debug("%d: Wrong event: %d, skiping",
+			pe_debug("%d: Wrong event: %d, skipping",
 				 obss_color_info->vdev_id,
 				 obss_color_info->vdev_id,
 				 obss_color_info->evt_type);
 				 obss_color_info->evt_type);
 			return;
 			return;

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

@@ -435,7 +435,7 @@ static uint32_t lim_prepare_tdls_frame_header(struct mac_context *mac, uint8_t *
 
 
 	/*
 	/*
 	 * if TDLS frame goes through the AP link, it follows normal address
 	 * if TDLS frame goes through the AP link, it follows normal address
-	 * pattern, if TDLS frame goes thorugh the direct link, then
+	 * pattern, if TDLS frame goes through the direct link, then
 	 * A1--> Peer STA addr, A2-->Self STA address, A3--> BSSID
 	 * A1--> Peer STA addr, A2-->Self STA address, A3--> BSSID
 	 */
 	 */
 	(tdlsLinkType == TDLS_LINK_AP) ? ((addr1 = (link_iden->bssid)),
 	(tdlsLinkType == TDLS_LINK_AP) ? ((addr1 = (link_iden->bssid)),
@@ -537,7 +537,7 @@ static QDF_STATUS lim_mgmt_tdls_tx_complete(void *context,
 
 
 /*
 /*
  * This function can be used for bacst or unicast discovery request
  * This function can be used for bacst or unicast discovery request
- * We are not differentiating it here, it will all depnds on peer MAC address,
+ * We are not differentiating it here, it will all depend on peer MAC address,
  */
  */
 static QDF_STATUS lim_send_tdls_dis_req_frame(struct mac_context *mac,
 static QDF_STATUS lim_send_tdls_dis_req_frame(struct mac_context *mac,
 					      struct qdf_mac_addr peer_mac,
 					      struct qdf_mac_addr peer_mac,
@@ -3889,7 +3889,7 @@ void lim_update_tdls_2g_bw(struct pe_session *session)
 	 * For 2.4 GHz band, if AP switches its BW from 40 MHz to 20 Mhz, it
 	 * For 2.4 GHz band, if AP switches its BW from 40 MHz to 20 Mhz, it
 	 * changes its beacon respectivily with ch_width 20 Mhz without STA
 	 * changes its beacon respectivily with ch_width 20 Mhz without STA
 	 * disconnection.
 	 * disconnection.
-	 * This will result in TDLS remaining on 40 MHz and not follwoing APs BW
+	 * This will result in TDLS remaining on 40 MHz and not following APs BW
 	 * on 2.4 GHz.
 	 * on 2.4 GHz.
 	 * Better Teardown the link here and with traffic going on between peers
 	 * Better Teardown the link here and with traffic going on between peers
 	 * the tdls connection will again be restablished with the new BW
 	 * the tdls connection will again be restablished with the new BW

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

@@ -248,7 +248,7 @@ void lim_update_he_bw_cap_mcs(struct pe_session *session,
 				STA_PREFER_BW_80MHZ) {
 				STA_PREFER_BW_80MHZ) {
 			is_80mhz = 1;
 			is_80mhz = 1;
 			if (session->ch_width == CH_WIDTH_160MHZ) {
 			if (session->ch_width == CH_WIDTH_160MHZ) {
-				pe_debug("STA prferred HE80 over HE160, falling back to 80MHz");
+				pe_debug("STA preferred HE80 over HE160, falling back to 80MHz");
 				session->ch_width = CH_WIDTH_80MHZ;
 				session->ch_width = CH_WIDTH_80MHZ;
 			}
 			}
 		} else {
 		} else {

+ 2 - 1
core/mac/src/pe/lim/lim_scan_result_utils.c

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2011-2020 The Linux Foundation. All rights reserved.
  * Copyright (c) 2011-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
  * 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
@@ -85,7 +86,7 @@ lim_collect_bss_description(struct mac_context *mac,
 	rfBand = WMA_GET_RX_RFBAND(pRxPacketInfo);
 	rfBand = WMA_GET_RX_RFBAND(pRxPacketInfo);
 
 
 	/**
 	/**
-	 * Length of BSS desription is without length of
+	 * Length of BSS description is without length of
 	 * length itself and length of pointer that holds ieFields.
 	 * length itself and length of pointer that holds ieFields.
 	 *
 	 *
 	 * struct bss_description
 	 * struct bss_description

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

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
  * Copyright (c) 2013-2021 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
  * 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
@@ -289,7 +290,7 @@ void lim_add_pre_auth_node(struct mac_context *mac, struct tLimPreAuthNode *pAut
  * lim_release_pre_auth_node
  * lim_release_pre_auth_node
  *
  *
  ***FUNCTION:
  ***FUNCTION:
- * This function is called to realease the acquired
+ * This function is called to release the acquired
  * pre auth node from list.
  * pre auth node from list.
  *
  *
  ***LOGIC:
  ***LOGIC:

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

@@ -102,7 +102,7 @@ void lim_send_reassoc_req_with_ft_ies_mgmt_frame(struct mac_context *mac_ctx,
 
 
 	vdev_id = pe_session->vdev_id;
 	vdev_id = pe_session->vdev_id;
 
 
-	/* check this early to avoid unncessary operation */
+	/* check this early to avoid unnecessary operation */
 	if (!pe_session->pLimReAssocReq)
 	if (!pe_session->pLimReAssocReq)
 		return;
 		return;
 
 
@@ -588,7 +588,7 @@ end:
 	}
 	}
 	mlmReassocCnf.resultCode = eSIR_SME_FT_REASSOC_FAILURE;
 	mlmReassocCnf.resultCode = eSIR_SME_FT_REASSOC_FAILURE;
 	mlmReassocCnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
 	mlmReassocCnf.protStatusCode = STATUS_UNSPECIFIED_FAILURE;
-	/* Update PE sessio Id */
+	/* Update PE session Id */
 	mlmReassocCnf.sessionId = pe_session->peSessionId;
 	mlmReassocCnf.sessionId = pe_session->peSessionId;
 
 
 	lim_post_sme_message(mac, LIM_MLM_REASSOC_CNF,
 	lim_post_sme_message(mac, LIM_MLM_REASSOC_CNF,

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

@@ -348,7 +348,7 @@ lim_send_probe_req_mgmt_frame(struct mac_context *mac_ctx,
 		p2pie = limGetP2pIEPtr(mac_ctx, additional_ie, addn_ielen);
 		p2pie = limGetP2pIEPtr(mac_ctx, additional_ie, addn_ielen);
 
 
 	/*
 	/*
-	 * Don't include 11b rate if it is a P2P serach or probe request is
+	 * Don't include 11b rate if it is a P2P search or probe request is
 	 * sent by P2P Client
 	 * sent by P2P Client
 	 */
 	 */
 	if ((MLME_DOT11_MODE_11B != dot11mode) && (p2pie) &&
 	if ((MLME_DOT11_MODE_11B != dot11mode) && (p2pie) &&
@@ -394,7 +394,7 @@ lim_send_probe_req_mgmt_frame(struct mac_context *mac_ctx,
 	}
 	}
 
 
 	/*
 	/*
-	 * Set channelbonding information as "disabled" when tunned to a
+	 * Set channelbonding information as "disabled" when tuned to a
 	 * 2.4 GHz channel
 	 * 2.4 GHz channel
 	 */
 	 */
 	if (wlan_reg_is_24ghz_ch_freq(chan_freq)) {
 	if (wlan_reg_is_24ghz_ch_freq(chan_freq)) {
@@ -687,10 +687,10 @@ static QDF_STATUS lim_get_addn_ie_for_probe_resp(struct mac_context *mac,
  * lim_add_additional_ie() - Add additional IE to management frame
  * lim_add_additional_ie() - Add additional IE to management frame
  * @frame:          pointer to frame
  * @frame:          pointer to frame
  * @frame_offset:   current offset of frame
  * @frame_offset:   current offset of frame
- * @add_ie:         pointer to addtional ie
- * @add_ie_len:     length of addtional ie
+ * @add_ie:         pointer to additional ie
+ * @add_ie_len:     length of additional ie
  * @p2p_ie:         pointer to p2p ie
  * @p2p_ie:         pointer to p2p ie
- * @noa_ie:         pointer to noa ie, this is seperate p2p ie
+ * @noa_ie:         pointer to noa ie, this is separate p2p ie
  * @noa_ie_len:     length of noa ie
  * @noa_ie_len:     length of noa ie
  * @noa_stream:     pointer to noa stream, this is noa attribute only
  * @noa_stream:     pointer to noa stream, this is noa attribute only
  * @noa_stream_len: length of noa stream
  * @noa_stream_len: length of noa stream
@@ -707,7 +707,7 @@ static void lim_add_additional_ie(uint8_t *frame, uint32_t frame_offset,
 	uint16_t p2p_ie_offset;
 	uint16_t p2p_ie_offset;
 
 
 	if (!add_ie_len || !add_ie) {
 	if (!add_ie_len || !add_ie) {
-		pe_debug("no valid addtional ie");
+		pe_debug("no valid additional ie");
 		return;
 		return;
 	}
 	}
 
 
@@ -2358,7 +2358,7 @@ static QDF_STATUS lim_assoc_tx_complete_cnf(void *context,
 
 
 #ifdef WLAN_ADAPTIVE_11R
 #ifdef WLAN_ADAPTIVE_11R
 /**
 /**
- * lim_fill_adaptive_11r_ie() - Populate the Vendor secific adaptive 11r
+ * lim_fill_adaptive_11r_ie() - Populate the Vendor specific adaptive 11r
  * IE to association request frame
  * IE to association request frame
  * @pe_session: pointer to PE session
  * @pe_session: pointer to PE session
  * @ie_buf: buffer to which Adaptive 11r IE will be copied
  * @ie_buf: buffer to which Adaptive 11r IE will be copied
@@ -2497,7 +2497,7 @@ lim_send_assoc_req_mgmt_frame(struct mac_context *mac_ctx,
 
 
 	vdev_id = pe_session->vdev_id;
 	vdev_id = pe_session->vdev_id;
 
 
-	/* check this early to avoid unncessary operation */
+	/* check this early to avoid unnecessary operation */
 	if (!pe_session->lim_join_req) {
 	if (!pe_session->lim_join_req) {
 		pe_err("pe_session->lim_join_req is NULL");
 		pe_err("pe_session->lim_join_req is NULL");
 		qdf_mem_free(mlm_assoc_req);
 		qdf_mem_free(mlm_assoc_req);

+ 2 - 2
core/mac/src/pe/lim/lim_send_sme_rsp_messages.h

@@ -99,7 +99,7 @@ void lim_send_sme_join_reassoc_rsp(struct mac_context *mac_ctx,
  * @pe_session: PE Session Info
  * @pe_session: PE Session Info
  * @req: connect req if pe session is NULL
  * @req: connect req if pe session is NULL
  * @reason: reason of failure, valid only if status is failure
  * @reason: reason of failure, valid only if status is failure
- * @connect_status: Indicates the staus of the req
+ * @connect_status: Indicates the status of the req
  * @status_code: Protocol Status Code
  * @status_code: Protocol Status Code
  * @is_reassoc: if reassoc resp
  * @is_reassoc: if reassoc resp
  *
  *
@@ -258,7 +258,7 @@ void lim_send_sme_ap_channel_switch_resp(struct mac_context *mac,
 					 struct vdev_start_response *rsp);
 					 struct vdev_start_response *rsp);
 /*
 /*
  * lim_process_beacon_tx_success_ind() - handle successful beacon transmission
  * lim_process_beacon_tx_success_ind() - handle successful beacon transmission
- * indication from the FW This is a generic event generated by the FW afer the
+ * indication from the FW This is a generic event generated by the FW after the
  * first beacon is sent out after the beacon template update by the host.
  * first beacon is sent out after the beacon template update by the host.
  *
  *
  * @mac_ctx: Global mac_ctx
  * @mac_ctx: Global mac_ctx

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

@@ -93,7 +93,7 @@ enum mlmmsgtype {
 
 
 #define LIM_DECRYPT_ICV_FAIL    1
 #define LIM_DECRYPT_ICV_FAIL    1
 
 
-/* / Definitions to distinquish between Association/Reassociaton */
+/* / Definitions to distinguish between Association/Reassociaton */
 #define LIM_ASSOC    0
 #define LIM_ASSOC    0
 #define LIM_REASSOC  1
 #define LIM_REASSOC  1
 
 

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

@@ -1002,7 +1002,7 @@ uint8_t lim_is_null_ssid(tSirMacSSid *ssid)
 		fnull_ssid = true;
 		fnull_ssid = true;
 		return fnull_ssid;
 		return fnull_ssid;
 	}
 	}
-	/* If the first charactes is space, then check if all
+	/* If the first characters is space, then check if all
 	 * characters in SSID are spaces to consider it as NULL SSID
 	 * characters in SSID are spaces to consider it as NULL SSID
 	 */
 	 */
 	if ((ASCII_SPACE_CHARACTER == ssid->ssId[0]) &&
 	if ((ASCII_SPACE_CHARACTER == ssid->ssId[0]) &&
@@ -1010,7 +1010,7 @@ uint8_t lim_is_null_ssid(tSirMacSSid *ssid)
 			fnull_ssid = true;
 			fnull_ssid = true;
 			return fnull_ssid;
 			return fnull_ssid;
 	} else {
 	} else {
-		/* check if all the charactes in SSID are NULL */
+		/* check if all the characters in SSID are NULL */
 		ssid_len = ssid->length;
 		ssid_len = ssid->length;
 		ssid_str = ssid->ssId;
 		ssid_str = ssid->ssId;
 
 
@@ -2273,7 +2273,7 @@ uint8_t lim_get_ht_capability(struct mac_context *mac,
 	/* accessed */
 	/* accessed */
 	/* */
 	/* */
 	if (htCap >= eHT_ANTENNA_SELECTION && htCap < eHT_SI_GRANULARITY) {
 	if (htCap >= eHT_ANTENNA_SELECTION && htCap < eHT_SI_GRANULARITY) {
-		/* Get Antenna Seletion HT Capabilities */
+		/* Get Antenna Selection HT Capabilities */
 		ptr = (uint8_t *) &macASCapabilityInfo;
 		ptr = (uint8_t *) &macASCapabilityInfo;
 		*((uint8_t *)ptr) = (uint8_t)(vht_cap_info->as_cap & 0xff);
 		*((uint8_t *)ptr) = (uint8_t)(vht_cap_info->as_cap & 0xff);
 	} else if (htCap >= eHT_TX_BEAMFORMING &&
 	} else if (htCap >= eHT_TX_BEAMFORMING &&
@@ -3837,7 +3837,7 @@ void lim_update_sta_run_time_ht_switch_chnl_params(struct mac_context *mac,
 	/* If channel mismatch the CSA will take care of this change */
 	/* If channel mismatch the CSA will take care of this change */
 	if (pHTInfo->primaryChannel != wlan_reg_freq_to_chan(
 	if (pHTInfo->primaryChannel != wlan_reg_freq_to_chan(
 			mac->pdev, pe_session->curr_op_freq)) {
 			mac->pdev, pe_session->curr_op_freq)) {
-		pe_debug("Current channel doesnt match HT info ignore");
+		pe_debug("Current channel doesn't match HT info ignore");
 		return;
 		return;
 	}
 	}
 
 
@@ -5317,7 +5317,7 @@ static void lim_check_conc_and_send_edca(struct mac_context *mac,
 			sch_qos_update_broadcast(mac, sap_session);
 			sch_qos_update_broadcast(mac, sap_session);
 
 
 	/*
 	/*
-	 * In case of mcc, where cb can come from scc to mcc swtich where we
+	 * In case of mcc, where cb can come from scc to mcc switch where we
 	 * need to restore the default parameters
 	 * need to restore the default parameters
 	 */
 	 */
 			if (sta_session) {
 			if (sta_session) {
@@ -5431,7 +5431,7 @@ void lim_check_and_reset_protection_params(struct mac_context *mac_ctx)
  * @ext_cap: Pointer to extended capability
  * @ext_cap: Pointer to extended capability
  * @mac_ctx: global MAC context
  * @mac_ctx: global MAC context
  *
  *
- * This funciton update hash node's RTT capability based on received
+ * This function update hash node's RTT capability based on received
  * Extended capability IE.
  * Extended capability IE.
  *
  *
  * Return: None
  * Return: None
@@ -5479,7 +5479,7 @@ void lim_set_peer_twt_cap(struct pe_session *session, struct s_ext_cap *ext_cap)
  * @buf: buffer containing IE
  * @buf: buffer containing IE
  * @len: length of buffer
  * @len: length of buffer
  *
  *
- * This funciton sends the IE data to WMA.
+ * This function sends the IE data to WMA.
  *
  *
  * Return: status of operation
  * Return: status of operation
  */
  */
@@ -6389,7 +6389,7 @@ const char *lim_bss_type_to_string(const uint16_t bss_type)
 
 
 /**
 /**
  * lim_init_obss_params(): Initializes the OBSS Scan Parameters
  * lim_init_obss_params(): Initializes the OBSS Scan Parameters
- * @sesssion: LIM session
+ * @session: LIM session
  * @mac_ctx: Mac context
  * @mac_ctx: Mac context
  *
  *
  * Return: None
  * Return: None
@@ -6429,7 +6429,7 @@ void lim_init_obss_params(struct mac_context *mac_ctx, struct pe_session *sessio
 
 
 /**
 /**
  * lim_update_obss_scanparams(): Updates OBSS SCAN IE parameters to session
  * lim_update_obss_scanparams(): Updates OBSS SCAN IE parameters to session
- * @sesssion: LIM session
+ * @session: LIM session
  * @scan_params: Scan parameters
  * @scan_params: Scan parameters
  *
  *
  * Return: None
  * Return: None
@@ -6522,7 +6522,7 @@ uint8_t lim_compute_ext_cap_ie_length(tDot11fIEExtCap *ext_cap)
  *
  *
  * Update the capability info in Assoc/Reassoc request frames and reset
  * Update the capability info in Assoc/Reassoc request frames and reset
  * the spectrum management, short preamble, immediate block ack bits
  * the spectrum management, short preamble, immediate block ack bits
- * if the BSS doesnot support it
+ * if the BSS does not support it
  *
  *
  * Return: None
  * Return: None
  */
  */
@@ -6548,7 +6548,7 @@ void lim_update_caps_info_for_bss(struct mac_context *mac_ctx,
  * lim_send_set_dtim_period(): Send SIR_HAL_SET_DTIM_PERIOD message
  * lim_send_set_dtim_period(): Send SIR_HAL_SET_DTIM_PERIOD message
  * to set dtim period.
  * to set dtim period.
  *
  *
- * @sesssion: LIM session
+ * @session: LIM session
  * @dtim_period: dtim value
  * @dtim_period: dtim value
  * @mac_ctx: Mac context
  * @mac_ctx: Mac context
  * @return None
  * @return None
@@ -7287,7 +7287,7 @@ void lim_log_he_cap(struct mac_context *mac, tDot11fIEhe_cap *he_cap)
 		      he_cap->twt_responder, he_cap->fragmentation,
 		      he_cap->twt_responder, he_cap->fragmentation,
 		      he_cap->max_num_frag_msdu_amsdu_exp,
 		      he_cap->max_num_frag_msdu_amsdu_exp,
 		      he_cap->min_frag_size);
 		      he_cap->min_frag_size);
-	pe_nofl_debug("\ttrig frm mac pad 0x%x multi tid aggr supp 0x%x link adaptaion 0x%x all ack 0x%x trigd_rsp_sched 0x%x a_bsr 0x%x",
+	pe_nofl_debug("\ttrig frm mac pad 0x%x multi tid aggr supp 0x%x link adaptation 0x%x all ack 0x%x trigd_rsp_sched 0x%x a_bsr 0x%x",
 		      he_cap->trigger_frm_mac_pad,
 		      he_cap->trigger_frm_mac_pad,
 		      he_cap->multi_tid_aggr_rx_supp,
 		      he_cap->multi_tid_aggr_rx_supp,
 		      he_cap->he_link_adaptation, he_cap->all_ack,
 		      he_cap->he_link_adaptation, he_cap->all_ack,
@@ -8575,7 +8575,7 @@ void lim_update_session_eht_capable_chan_switch(struct mac_context *mac,
 {
 {
 	session->eht_capable = true;
 	session->eht_capable = true;
 	session->he_capable = true;
 	session->he_capable = true;
-	/* TODO: Updat*/
+	/* TODO: Update */
 	if (wlan_reg_is_6ghz_chan_freq(session->curr_op_freq) &&
 	if (wlan_reg_is_6ghz_chan_freq(session->curr_op_freq) &&
 	    !wlan_reg_is_6ghz_chan_freq(new_chan_freq)) {
 	    !wlan_reg_is_6ghz_chan_freq(new_chan_freq)) {
 		session->htCapability = 1;
 		session->htCapability = 1;
@@ -9103,7 +9103,7 @@ QDF_STATUS lim_send_he_6g_band_caps_ie(struct mac_context *mac_ctx,
 						 sizeof(he_6g_band_caps_ie),
 						 sizeof(he_6g_band_caps_ie),
 						 &size);
 						 &size);
 	if (result != DOT11F_PARSE_SUCCESS) {
 	if (result != DOT11F_PARSE_SUCCESS) {
-		pe_err("pack erro for HE 6g band cap for vdev %d", vdev_id);
+		pe_err("pack error for HE 6g band cap for vdev %d", vdev_id);
 		return QDF_STATUS_E_FAILURE;
 		return QDF_STATUS_E_FAILURE;
 	}
 	}
 	pe_debug("send HE 6ghz band cap: 0x%01x 0x%01x for vdev %d",
 	pe_debug("send HE 6ghz band cap: 0x%01x 0x%01x for vdev %d",

+ 3 - 3
core/mac/src/pe/lim/lim_utils.h

@@ -500,7 +500,7 @@ uint8_t lim_is_null_ssid(tSirMacSSid *pSsid);
 void lim_stop_tx_and_switch_channel(struct mac_context *mac, uint8_t sessionId);
 void lim_stop_tx_and_switch_channel(struct mac_context *mac, uint8_t sessionId);
 
 
 /**
 /**
- * lim_process_channel_switch() - Process chanel switch
+ * lim_process_channel_switch() - Process channel switch
  * @mac: pointer to Global MAC structure
  * @mac: pointer to Global MAC structure
  * @vdev_id: Vdev on which CSA is happening
  * @vdev_id: Vdev on which CSA is happening
  *
  *
@@ -1035,7 +1035,7 @@ QDF_STATUS lim_send_ext_cap_ie(struct mac_context *mac_ctx, uint32_t session_id,
  * @dot11_mode: vdev dot11 mode
  * @dot11_mode: vdev dot11 mode
  * @device_mode: device mode
  * @device_mode: device mode
  *
  *
- * This funciton gets ht and vht capability and send to firmware via wma
+ * This function gets ht and vht capability and send to firmware via wma
  *
  *
  * Return: status of operation
  * Return: status of operation
  */
  */
@@ -2580,7 +2580,7 @@ void lim_req_send_delba_ind_process(struct mac_context *mac_ctx,
 void lim_send_beacon(struct mac_context *mac_ctx, struct pe_session *session);
 void lim_send_beacon(struct mac_context *mac_ctx, struct pe_session *session);
 
 
 /**
 /**
- * lim_ndi_mlme_vdev_up_transition() - Send event to transistion NDI VDEV to UP
+ * lim_ndi_mlme_vdev_up_transition() - Send event to transition NDI VDEV to UP
  * @session: session pointer
  * @session: session pointer
  *
  *
  * Return: None
  * Return: None

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

@@ -96,7 +96,7 @@ static QDF_STATUS lim_add_ndi_peer(struct mac_context *mac_ctx,
 		return QDF_STATUS_E_FAILURE;
 		return QDF_STATUS_E_FAILURE;
 	}
 	}
 
 
-	/* wma decides NDI mode from wma->inferface struct */
+	/* wma decides NDI mode from wma->interface struct */
 	sta_ds->staType = STA_ENTRY_NDI_PEER;
 	sta_ds->staType = STA_ENTRY_NDI_PEER;
 	status = lim_add_sta(mac_ctx, sta_ds, false, session);
 	status = lim_add_sta(mac_ctx, sta_ds, false, session);
 	if (QDF_STATUS_SUCCESS != status) {
 	if (QDF_STATUS_SUCCESS != status) {

+ 2 - 2
core/mac/src/pe/sch/sch_api.c

@@ -52,11 +52,11 @@
 #include <wlan_cmn_ieee80211.h>
 #include <wlan_cmn_ieee80211.h>
 #include <wlan_mgmt_txrx_utils_api.h>
 #include <wlan_mgmt_txrx_utils_api.h>
 
 
-/* Fils Dicovery Frame */
+/* Fils Discovery Frame */
 /**
 /**
  * struct fd_action_header - FILS Discovery Action frame header
  * struct fd_action_header - FILS Discovery Action frame header
  * @action_header: WLAN Action frame header
  * @action_header: WLAN Action frame header
- * @fd_frame_cntl: FILS Disovery Frame Control
+ * @fd_frame_cntl: FILS Discovery Frame Control
  * @timestamp:     Time stamp
  * @timestamp:     Time stamp
  * @bcn_interval:  Beacon Interval
  * @bcn_interval:  Beacon Interval
  * @elem:          variable len sub element fields
  * @elem:          variable len sub element fields

+ 1 - 1
core/mac/src/pe/sch/sch_beacon_gen.c

@@ -570,7 +570,7 @@ sch_set_fixed_beacon_fields(struct mac_context *mac_ctx, struct pe_session *sess
 	populate_dot11f_capabilities(mac_ctx, &bcn_1->Capabilities, session);
 	populate_dot11f_capabilities(mac_ctx, &bcn_1->Capabilities, session);
 	if (session->ssidHidden) {
 	if (session->ssidHidden) {
 		bcn_1->SSID.present = 1;
 		bcn_1->SSID.present = 1;
-		/* rest of the fileds are 0 for hidden ssid */
+		/* rest of the fields are 0 for hidden ssid */
 		if ((session->ssId.length) &&
 		if ((session->ssId.length) &&
 		    (session->ssidHidden == eHIDDEN_SSID_ZERO_CONTENTS))
 		    (session->ssidHidden == eHIDDEN_SSID_ZERO_CONTENTS))
 			bcn_1->SSID.num_ssid = session->ssId.length;
 			bcn_1->SSID.num_ssid = session->ssId.length;

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

@@ -1387,7 +1387,7 @@ QDF_STATUS lim_obss_send_detection_cfg(struct mac_context *mac_ctx,
 			return status;
 			return status;
 		}
 		}
 	} else {
 	} else {
-		pe_debug("Skiping WMA_OBSS_DETECTION_REQ, force = %d", force);
+		pe_debug("Skipping WMA_OBSS_DETECTION_REQ, force = %d", force);
 	}
 	}
 
 
 	return status;
 	return status;

+ 1 - 1
core/mac/src/pe/sch/sch_message.c

@@ -97,7 +97,7 @@ void sch_edca_profile_update_all(struct mac_context *pmac)
 
 
 /**
 /**
  * sch_get_params() - get the local or broadcast parameters based on the profile
  * sch_get_params() - get the local or broadcast parameters based on the profile
- * sepcified in the config params are delivered in this order: BE, BK, VI, VO
+ * specified in the config params are delivered in this order: BE, BK, VI, VO
  */
  */
 static QDF_STATUS
 static QDF_STATUS
 sch_get_params(struct mac_context *mac,
 sch_get_params(struct mac_context *mac,

+ 2 - 1
core/mac/src/sys/common/inc/wlan_qct_sys.h

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
  * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * 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
@@ -47,7 +48,7 @@ struct mac_context;
    -------------------------------------------------------------------------*/
    -------------------------------------------------------------------------*/
 
 
 /**
 /**
- * sys_rsp_cb() - SYS async resonse callback
+ * sys_rsp_cb() - SYS async response callback
  * @user_data: context data for callback
  * @user_data: context data for callback
  *
  *
  * This is a protype for the callback function that SYS makes to various
  * This is a protype for the callback function that SYS makes to various

+ 2 - 1
core/mac/src/sys/legacy/src/platform/inc/sys_wrapper.h

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
  * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * 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
@@ -71,7 +72,7 @@ extern "C" {
 /* Following macro specifies the number of milliseconds which constitute 1 ThreadX timer tick. Used
 /* Following macro specifies the number of milliseconds which constitute 1 ThreadX timer tick. Used
    for mimicking the ThreadX timer behaviour on VOSS. */
    for mimicking the ThreadX timer behaviour on VOSS. */
 /* Use the same MACRO used by firmware modules to calculate TICKs from mSec */
 /* Use the same MACRO used by firmware modules to calculate TICKs from mSec */
-/* Mismatch would cause worng timer value to be programmed */
+/* Mismatch would cause wrong timer value to be programmed */
 #define TX_MSECS_IN_1_TICK  SYS_TICK_DUR_MS
 #define TX_MSECS_IN_1_TICK  SYS_TICK_DUR_MS
 
 
 /* Signature with which the TX_TIMER struct is initialized, when the timer is created */
 /* Signature with which the TX_TIMER struct is initialized, when the timer is created */

+ 2 - 1
core/mac/src/sys/legacy/src/platform/src/sys_wrapper.c

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
  * Copyright (c) 2012-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
  * 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
@@ -45,7 +46,7 @@
    11/20/08    sho    Renamed this to VosWrapper.c; remove all dependencies on
    11/20/08    sho    Renamed this to VosWrapper.c; remove all dependencies on
 			WM platform and allow this to work on all VOSS enabled
 			WM platform and allow this to work on all VOSS enabled
 			platform
 			platform
-   06/24/08    tbh    Modified the file to remove the dependecy on HDD files as
+   06/24/08    tbh    Modified the file to remove the dependency on HDD files as
 			part of Gen6 bring up process.
 			part of Gen6 bring up process.
    10/29/02 Neelay Das Created file.
    10/29/02 Neelay Das Created file.
 
 

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

@@ -1,5 +1,6 @@
 /*
 /*
  * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
  * Copyright (c) 2012-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
  * 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
@@ -99,7 +100,7 @@ QDF_STATUS sys_bbt_process_message_core(struct mac_context *mac_ctx,
 		 */
 		 */
 		if ((subtype == SIR_MAC_MGMT_BEACON) &&
 		if ((subtype == SIR_MAC_MGMT_BEACON) &&
 		     !GET_LIM_PROCESS_DEFD_MESGS(mac_ctx)) {
 		     !GET_LIM_PROCESS_DEFD_MESGS(mac_ctx)) {
-			pe_debug("dropping received beacon in deffered state");
+			pe_debug("dropping received beacon in deferred state");
 			goto fail;
 			goto fail;
 		}
 		}
 
 

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

@@ -2089,7 +2089,7 @@ populate_dot11f_supp_rates(struct mac_context *mac,
 /**
 /**
  * populate_dot11f_rates_tdls() - populate supported rates and
  * populate_dot11f_rates_tdls() - populate supported rates and
  *                                extended supported rates IE.
  *                                extended supported rates IE.
- * @p_mac gloabl - header.
+ * @p_mac global - header.
  * @p_supp_rates - pointer to supported rates IE
  * @p_supp_rates - pointer to supported rates IE
  * @p_ext_supp_rates - pointer to extended supported rates IE
  * @p_ext_supp_rates - pointer to extended supported rates IE
  * @curr_oper_channel - current operating channel
  * @curr_oper_channel - current operating channel
@@ -3175,7 +3175,7 @@ sir_convert_assoc_req_frame2_struct(struct mac_context *mac,
 		qdf_mem_free(ar);
 		qdf_mem_free(ar);
 		return QDF_STATUS_E_FAILURE;
 		return QDF_STATUS_E_FAILURE;
 	} else if (DOT11F_WARNED(status)) {
 	} else if (DOT11F_WARNED(status)) {
-		pe_debug("There were warnings while unpacking an Assoication Request (0x%08x, %d bytes):",
+		pe_debug("There were warnings while unpacking an Association Request (0x%08x, %d bytes):",
 			status, nFrame);
 			status, nFrame);
 	}
 	}
 	/* & "transliterate" from a 'tDot11fAssocRequest' to a 'tSirAssocReq'... */
 	/* & "transliterate" from a 'tDot11fAssocRequest' to a 'tSirAssocReq'... */
@@ -3728,7 +3728,7 @@ sir_convert_assoc_resp_frame2_struct(struct mac_context *mac,
 	/*
 	/*
 	 * decrypt the cipher text using AEAD decryption, if association
 	 * decrypt the cipher text using AEAD decryption, if association
 	 * response status code is successful, else the don't do AEAD decryption
 	 * response status code is successful, else the don't do AEAD decryption
-	 * since AP doesn't inlude FILS session IE when association reject is
+	 * since AP doesn't include FILS session IE when association reject is
 	 * sent
 	 * sent
 	 */
 	 */
 	if (lim_is_fils_connection(session_entry) && !status_code) {
 	if (lim_is_fils_connection(session_entry) && !status_code) {
@@ -5821,7 +5821,7 @@ sir_convert_tpc_req_frame2_struct(struct mac_context *mac,
 		pTpcReqFrame->type = DOT11F_EID_TPCREQUEST;
 		pTpcReqFrame->type = DOT11F_EID_TPCREQUEST;
 		pTpcReqFrame->length = 0;
 		pTpcReqFrame->length = 0;
 	} else {
 	} else {
-		pe_warn("!!!Rcv TPC Req of inalid type!");
+		pe_warn("!!!Rcv TPC Req of invalid type!");
 		return QDF_STATUS_E_FAILURE;
 		return QDF_STATUS_E_FAILURE;
 	}
 	}
 	return QDF_STATUS_SUCCESS;
 	return QDF_STATUS_SUCCESS;
@@ -10832,7 +10832,7 @@ wlan_get_ielen_from_bss_description(struct bss_description *bss_desc)
 	}
 	}
 
 
 	/*
 	/*
-	 * Length of BSS desription is without length of
+	 * Length of BSS description is without length of
 	 * length itself and length of pointer
 	 * length itself and length of pointer
 	 * that holds ieFields
 	 * that holds ieFields
 	 *
 	 *