Преглед изворни кода

qcacld-3.0: sap: Fix misspellings

Address the following issues in the core/sap folder:
CHECK: 'availabe' may be misspelled - perhaps 'available'?
CHECK: 'defult' may be misspelled - perhaps 'default'?
CHECK: 'fucntion' may be misspelled - perhaps 'function'?
CHECK: 'Funtion' may be misspelled - perhaps 'Function'?
CHECK: 'intial' may be misspelled - perhaps 'initial'?

Change-Id: Id1e696f70d4d3c5ff650a353eb8402216909bc2c
CRs-Fixed: 2241944
Jeff Johnson пре 7 година
родитељ
комит
c7e4d16ff9
4 измењених фајлова са 13 додато и 13 уклоњено
  1. 1 1
      core/sap/inc/sap_api.h
  2. 8 8
      core/sap/src/sap_ch_select.c
  3. 2 2
      core/sap/src/sap_fsm.c
  4. 2 2
      core/sap/src/sap_module.c

+ 1 - 1
core/sap/inc/sap_api.h

@@ -194,7 +194,7 @@ typedef enum {
 typedef enum {
 	eSAP_STATUS_SUCCESS,            /* Success.  */
 	eSAP_STATUS_FAILURE,            /* General Failure.  */
-	/* Channel not selected during intial scan.  */
+	/* Channel not selected during initial scan.  */
 	eSAP_START_BSS_CHANNEL_NOT_SELECTED,
 	eSAP_ERROR_MAC_START_FAIL,     /* Failed to start Infra BSS */
 } eSapStatus;

+ 8 - 8
core/sap/src/sap_ch_select.c

@@ -562,7 +562,7 @@ uint8_t sap_select_preferred_channel_from_channel_list(uint8_t best_chnl,
    FUNCTION    sap_chan_sel_init
 
    DESCRIPTION
-    Function sap_chan_sel_init allocates the memory, intializes the
+    Function sap_chan_sel_init allocates the memory, initializes the
     structures used by the channel selection algorithm
 
    DEPENDENCIES
@@ -1737,7 +1737,7 @@ static void sap_chan_sel_exit(tSapChSelSpectInfo *pSpectInfoParams)
    FUNCTION    sap_sort_chl_weight
 
    DESCRIPTION
-    Funtion to sort the channels with the least weight first for 20MHz channels
+    Function to sort the channels with the least weight first for 20MHz channels
 
    DEPENDENCIES
     NA.
@@ -1784,7 +1784,7 @@ static void sap_sort_chl_weight(tSapChSelSpectInfo *pSpectInfoParams)
 }
 
 /**
- * set_ht80_chl_bit() - to set availabe channel to ht80 channel bitmap
+ * set_ht80_chl_bit() - to set available channel to ht80 channel bitmap
  * @channel_bitmap: Pointer to the chan_bonding_bitmap structure
  * @spect_info_params: Pointer to the tSapChSelSpectInfo structure
  *
@@ -1830,7 +1830,7 @@ static void set_ht80_chl_bit(chan_bonding_bitmap *channel_bitmap,
  * sap_sort_chl_weight_ht80() - to sort the channels with the least weight
  * @pSpectInfoParams: Pointer to the tSapChSelSpectInfo structure
  *
- * Funtion to sort the channels with the least weight first for HT80 channels
+ * Function to sort the channels with the least weight first for HT80 channels
  *
  * Return: none
  */
@@ -1962,7 +1962,7 @@ static void sap_sort_chl_weight_ht80(tSapChSelSpectInfo *pSpectInfoParams)
  * sap_sort_chl_weight_vht160() - to sort the channels with the least weight
  * @pSpectInfoParams: Pointer to the tSapChSelSpectInfo structure
  *
- * Funtion to sort the channels with the least weight first for VHT160 channels
+ * Function to sort the channels with the least weight first for VHT160 channels
  *
  * Return: none
  */
@@ -2157,7 +2157,7 @@ static void sap_allocate_max_weight_ht40_5_g(
  * sap_sort_chl_weight_ht40_24_g() - to sort channel with the least weight
  * @pSpectInfoParams: Pointer to the tSapChSelSpectInfo structure
  *
- * Funtion to sort the channels with the least weight first for HT40 channels
+ * Function to sort the channels with the least weight first for HT40 channels
  *
  * Return: none
  */
@@ -2295,7 +2295,7 @@ static void sap_sort_chl_weight_ht40_24_g(tSapChSelSpectInfo *pSpectInfoParams,
    FUNCTION    sap_sort_chl_weight_ht40_5_g
 
    DESCRIPTION
-    Funtion to sort the channels with the least weight first for HT40 channels
+    Function to sort the channels with the least weight first for HT40 channels
 
    DEPENDENCIES
     NA.
@@ -2393,7 +2393,7 @@ static void sap_sort_chl_weight_ht40_5_g(tSapChSelSpectInfo *pSpectInfoParams)
    FUNCTION    sap_sort_chl_weight_all
 
    DESCRIPTION
-    Funtion to sort the channels with the least weight first
+    Function to sort the channels with the least weight first
 
    DEPENDENCIES
     NA.

+ 2 - 2
core/sap/src/sap_fsm.c

@@ -498,7 +498,7 @@ static void sap_get_cac_dur_dfs_region(struct sap_context *sap_ctx,
 
 	if (*dfs_region != DFS_ETSI_REG) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
-			 FL("sapdfs: defult cac duration"));
+			 FL("sapdfs: default cac duration"));
 		return;
 	}
 
@@ -1060,7 +1060,7 @@ QDF_STATUS sap_goto_channel_sel(struct sap_context *sap_context,
 				/*
 				* In case of ACS req before start Bss,
 				* return failure so that the calling
-				* fucntion can use the default channel.
+				* function can use the default channel.
 				*/
 				return QDF_STATUS_E_FAILURE;
 			} else {

+ 2 - 2
core/sap/src/sap_module.c

@@ -1171,7 +1171,7 @@ QDF_STATUS wlansap_deauth_sta(struct sap_context *sap_ctx,
 }
 
 /**
- * wlansap_update_csa_channel_params() - fucntion to populate channel width and
+ * wlansap_update_csa_channel_params() - function to populate channel width and
  *                                        bonding modes.
  * @sap_context: sap adapter context
  * @channel: target channel
@@ -2490,7 +2490,7 @@ QDF_STATUS wlansap_acs_chselect(struct sap_context *sap_context,
 	 *
 	 * 2. Set third parameter to TRUE to indicate the
 	 * channel selection function to register a
-	 * different scan callback fucntion to process
+	 * different scan callback function to process
 	 * the results pre start BSS.
 	 */
 	qdf_status = sap_goto_channel_sel(sap_context, &sapEvent, true, false);