qcacld-3.0: core: sap: Fix misspellings

Fix misspellings in core/sap/...

Change-Id: I945759b3f51e43206b58cae88c07bda5aff3a1fe
CRs-Fixed: 3303625
This commit is contained in:
Jeff Johnson
2022-09-29 14:17:09 -07:00
committed by Madan Koyyalamudi
parent 17fc1e0890
commit 39dc04806c
7 changed files with 27 additions and 26 deletions

View File

@@ -127,12 +127,12 @@ typedef enum {
eSAP_STA_ASSOC_IND, /* Indicate assoc req to upper layers */
/*
* Event sent when we have successfully associated a station and
* upper layer neeeds to allocate a context
* upper layer needs to allocate a context
*/
eSAP_STA_ASSOC_EVENT,
/*
* Event sent when we have successfully reassociated a station and
* upper layer neeeds to allocate a context
* upper layer needs to allocate a context
*/
eSAP_STA_REASSOC_EVENT,
/*
@@ -180,10 +180,10 @@ typedef enum {
} eSapAuthType;
typedef enum {
/* Disassociation was internally initated from CORE stack */
/* Disassociation was internally initiated from CORE stack */
eSAP_MAC_INITATED_DISASSOC = 0x10000,
/*
* Disassociation was internally initated from host by
* Disassociation was internally initiated from host by
* invoking wlansap_disassoc_sta call
*/
eSAP_USR_INITATED_DISASSOC
@@ -778,7 +778,7 @@ QDF_STATUS sap_init_ctx(struct sap_context *sap_ctx,
*
* When SAP session is about to close, this API needs to be called
* to de-initialize all the members of sap context structure, so that
* nobody can accidently start using the sap context.
* nobody can accidentally start using the sap context.
*
* Return: The result code associated with performing the operation
* QDF_STATUS_E_FAULT: BSS could not be stopped
@@ -931,7 +931,7 @@ QDF_STATUS wlansap_deauth_sta(struct sap_context *sap_ctx,
/**
* wlansap_set_channel_change_with_csa() - Set channel change with CSA
* @sap_ctx: Pointer to SAP context
* @target_chan_freq: Target channel frequncy
* @target_chan_freq: Target channel frequency
* @target_bw: Target bandwidth
* @strict: if true switch to the requested channel always, fail
* otherwise

View File

@@ -291,7 +291,7 @@ wlansap_filter_unsafe_ch(struct wlan_objmgr_psoc *psoc,
* would contain the channels in acs cfg. Now since the scan takes time
* there could be channels present in acs cfg that could become unsafe
* in the mean time, so it is better to filter out those channels from
* the acs channel list before chosing one of them as a default channel
* the acs channel list before choosing one of them as a default channel
*/
for (i = 0; i < sap_ctx->acs_cfg->ch_list_count; i++) {
freq = sap_ctx->acs_cfg->freq_list[i];

View File

@@ -363,8 +363,8 @@ sap_process_avoid_ie(mac_handle_t mac_handle, struct sap_context *sap_ctx,
#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
/**
* sap_select_preferred_channel_from_channel_list() - to calc best cahnnel
* @best_ch_freq: best chan freq already calculated among all the chanels
* sap_select_preferred_channel_from_channel_list() - to calc best channel
* @best_ch_freq: best chan freq already calculated among all the channels
* @sap_ctx: sap context
* @spectinfo_param: Pointer to tSapChSelSpectInfo structure
*
@@ -540,7 +540,7 @@ static bool sap_chan_sel_init(mac_handle_t mac_handle,
* sapweight_rssi_count() - calculates the channel weight due to rssi
and data count(here number of BSS observed)
* @sap_ctx : Softap context
* @rssi : Max signal strength receieved from a BSS for the channel
* @rssi : Max signal strength received from a BSS for the channel
* @count : Number of BSS observed in the channel
*
* Return: uint32_t Calculated channel weight based on above two
@@ -1244,7 +1244,7 @@ static bool ch_in_pcl(struct sap_context *sap_ctx, uint32_t ch_freq)
/**
* sap_upd_chan_spec_params() - sap_upd_chan_spec_params
* updates channel parameters obtained from Beacon
* @scan_entry: Beacon strucutre populated by scan
* @scan_entry: Beacon structure populated by scan
* @ch_width: Channel width
* @sec_ch_offset: Secondary Channel Offset
* @center_freq0: Central frequency 0 for the given channel
@@ -1421,7 +1421,7 @@ static void sap_compute_spect_weight(tSapChSelSpectInfo *pSpectInfoParams,
* and not meant to be included in the ACS scan results.
* So just assign RSSI as -100, bsscount as 0, and weight as max
* to them, so that they always stay low in sorting of best
* channles which were included in ACS scan list
* channels which were included in ACS scan list
*/
found = false;
for (i = 0; i < sap_ctx->num_of_channel; i++) {
@@ -2632,7 +2632,7 @@ uint32_t sap_select_channel(mac_handle_t mac_handle,
}
/*
* in case the best channel seleted is not in PCL and there is another
* in case the best channel selected is not in PCL and there is another
* channel which has same weightage and is in PCL, choose the one in
* PCL
*/

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2012-2015, 2017-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
* any purpose with or without fee is hereby granted, provided that the
@@ -107,7 +108,7 @@ typedef struct {
uint16_t bssCount; /* bss found in scanresult for this channel */
int32_t rssiAgr; /* Max value of rssi among all BSS(es) from scanresult for this channel */
uint32_t weight; /* Weightage of this channel */
uint32_t weight_copy; /* copy of the orignal weight */
uint32_t weight_copy; /* copy of the original weight */
bool valid; /* Is this a valid center frequency for regulatory domain */
bool weight_calc_done;
} tSapSpectChInfo; /* tDfsSpectChInfo; */

View File

@@ -239,7 +239,7 @@ static qdf_freq_t sap_random_channel_sel(struct sap_context *sap_ctx)
flag |= DFS_RANDOM_CH_FLAG_NO_LOWER_5G_CH;
/*
* Dont choose 6ghz channel currently as legacy clients wont be able to
* Dont choose 6ghz channel currently as legacy clients won't be able to
* scan them. In future create an ini if any customer wants 6ghz freq
* to be prioritize over 5ghz/2.4ghz.
* Currently for SAP there is a high chance of 6ghz being selected as
@@ -2006,7 +2006,7 @@ bool find_ch_freq_in_radar_hist(struct dfs_radar_history *radar_result,
* sap_append_cac_history() - Add CAC history to list
* @radar_result: radar history buffer
* @idx: current radar history element number
* @max_elems: max elements nummber of radar history buffer.
* @max_elems: max elements number of radar history buffer.
*
* This function is to add the CAC history to radar history list.
*
@@ -2894,7 +2894,7 @@ QDF_STATUS sap_cac_end_notify(mac_handle_t mac_handle,
* All APs are done with CAC timer, all APs should start beaconing.
* Lets assume AP1 and AP2 started beaconing on DFS channel, Now lets
* say AP1 goes down and comes back on same DFS channel. In this case
* AP1 shouldn't start CAC timer and start beacon immediately beacause
* AP1 shouldn't start CAC timer and start beacon immediately because
* AP2 is already beaconing on this channel. This case will be handled
* by checking against eSAP_DFS_SKIP_CAC while starting the timer.
*/
@@ -3400,7 +3400,7 @@ static QDF_STATUS sap_fsm_handle_start_failure(struct sap_context *sap_ctx,
/*
* Stop the CAC timer only in following conditions
* single AP: if there is a single AP then stop timer
* mulitple APs: incase of multiple APs, make sure that
* multiple APs: incase of multiple APs, make sure that
* all APs are down.
*/
if (!sap_find_valid_concurrent_session(mac_handle)) {
@@ -3999,7 +3999,7 @@ void sap_remove_mac_from_acl(struct qdf_mac_addr *macList,
qdf_mem_copy((macList + i)->bytes, (macList + i + 1)->bytes,
QDF_MAC_ADDR_SIZE);
}
/* The last space should be made empty since all mac addesses moved one step up */
/* The last space should be made empty since all mac addresses moved one step up */
qdf_mem_zero((macList + (*size) - 1)->bytes, QDF_MAC_ADDR_SIZE);
/* reduce the list size by 1 */
(*size)--;
@@ -4073,7 +4073,7 @@ void sap_dump_acs_channel(struct sap_acs_cfg *acs_cfg)
uint8_t *chan_buff = NULL;
/*
* Buffer of (num channl * 5) + 1 to consider the 4 char freq
* Buffer of (num channel * 5) + 1 to consider the 4 char freq
* and 1 space after it for each channel and 1 to end the string
* with NULL.
*/
@@ -4661,7 +4661,7 @@ bool is_concurrent_sap_ready_for_channel_change(mac_handle_t mac_handle,
* check if other beaconing entity's channel is same DFS channel. If they are
* same then concurrent sap is doing SCC DFS.
*
* Return: true if two or more beaconing entitity doing SCC DFS else false
* Return: true if two or more beaconing entities doing SCC DFS else false
*/
bool sap_is_conc_sap_doing_scc_dfs(mac_handle_t mac_handle,
struct sap_context *given_sapctx)

View File

@@ -212,7 +212,7 @@ struct sap_context {
/*
* sap_state, sap_status are created
* to inform upper layers about ACS scan status.
* Don't use these members for anyother purposes.
* Don't use these members for any other purposes.
*/
eSapHddEvent sap_state;
eSapStatus sap_status;

View File

@@ -742,7 +742,7 @@ QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
config->self_macaddr.bytes, QDF_MAC_ADDR_SIZE);
/*
* Set the DFS Test Mode setting
* Set beacon channel count before chanel switch
* Set beacon channel count before channel switch
*/
qdf_status = ucfg_mlme_get_sap_chn_switch_bcn_count(
pmac->psoc,
@@ -970,7 +970,7 @@ QDF_STATUS wlansap_modify_acl(struct sap_context *sap_ctx,
sap_print_acl(sap_ctx->denyMacList, sap_ctx->nDenyMac);
/* the expectation is a mac addr will not be in both the lists
* at the same time. It is the responsiblity of userspace to
* at the same time. It is the responsibility of userspace to
* ensure this
*/
sta_allow_list =
@@ -2510,7 +2510,7 @@ void wlansap_extend_to_acs_range(mac_handle_t mac_handle,
*end_ch_freq = tmp_end_ch_freq;
/* Note if the ACS range include only DFS channels, do not cross range
* Active scanning in adjacent non DFS channels results in transmission
* spikes in DFS specturm channels which is due to emission spill.
* spikes in DFS spectrum channels which is due to emission spill.
* Remove the active channels from extend ACS range for DFS only range
*/
if (wlan_reg_is_dfs_for_freq(mac_ctx->pdev, *start_ch_freq)) {
@@ -2577,7 +2577,7 @@ QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx,
sap_err("Randomize the DFS NOL");
} else {
sap_err("unsupport type %d", conf);
sap_err("unsupported type %d", conf);
}
return QDF_STATUS_SUCCESS;