summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/sd8797/mlan
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/sd8797/mlan')
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11d.c10
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11h.c64
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n.c130
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n.h26
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c12
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c82
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_cfp.c66
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c176
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_fw.h66
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_ieee.h40
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_init.c34
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_ioctl.h18
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_join.c48
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_main.h42
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_meas.c38
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_misc.c72
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_scan.c168
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sdio.c108
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_shim.c16
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c106
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c88
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_event.c22
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c230
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c14
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c16
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_txrx.c8
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c124
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c50
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c24
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_util.h66
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_wmm.c60
-rw-r--r--drivers/net/wireless/sd8797/mlan/mlan_wmm.h8
32 files changed, 1016 insertions, 1016 deletions
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11d.c b/drivers/net/wireless/sd8797/mlan/mlan_11d.c
index 809de4cc9ede..1727c5890fc8 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11d.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11d.c
@@ -519,14 +519,14 @@ wlan_11d_process_country_info(mlan_private * pmpriv,
}
if (parsed_region_chan->no_of_chan != 0) {
- /*
+ /*
* Check if the channel number already exists in the
* chan-power table of parsed_region_chan
*/
for (i = 0; (i < region_chan.no_of_chan && i < MAX_NO_OF_CHAN); i++) {
for (j = 0; (j < parsed_region_chan->no_of_chan &&
j < MAX_NO_OF_CHAN); j++) {
- /*
+ /*
* Channel already exists, update the tx power with new tx
* power, since country IE is valid here.
*/
@@ -541,7 +541,7 @@ wlan_11d_process_country_info(mlan_private * pmpriv,
}
if (j == parsed_region_chan->no_of_chan && j < MAX_NO_OF_CHAN) {
- /*
+ /*
* Channel does not exist in the channel power table,
* update this new chan and tx_power to the channel power table
*/
@@ -959,7 +959,7 @@ wlan_11d_parse_domain_info(pmlan_adapter pmadapter,
ENTER();
- /*
+ /*
* Validation Rules:
* 1. Valid Region Code
* 2. First Chan increment
@@ -1330,7 +1330,7 @@ wlan_11d_parse_dnld_countryinfo(mlan_private * pmpriv,
for (j = 0; ((j < region_chan.no_of_chan)
&& (j < MAX_NO_OF_CHAN)); j++) {
- /*
+ /*
* Channel already exists, use minimum of existing
* tx power and tx_power received from
* country info of the current AP
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11h.c b/drivers/net/wireless/sd8797/mlan/mlan_11h.c
index 23970861db1e..7e08f4cd5d8a 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11h.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11h.c
@@ -220,7 +220,7 @@ wlan_11h_set_ibss_dfs_ie(mlan_private * priv, IEEEtypes_IBSS_DFS_t * pdfs)
memset(adapter, pdfs, 0x00, sizeof(IEEEtypes_IBSS_DFS_t));
- /*
+ /*
* A basic measurement report is included with each channel in the
* map field. Initial value for the map for each supported channel
* is with only the unmeasured bit set.
@@ -237,13 +237,13 @@ wlan_11h_set_ibss_dfs_ie(mlan_private * priv, IEEEtypes_IBSS_DFS_t * pdfs)
pdfs->channel_map[num_chans].channel_number =
adapter->parsed_region_chan.chan_pwr[num_chans].chan;
- /*
+ /*
* Set the initial map field with a basic measurement
*/
pdfs->channel_map[num_chans].rpt_map = initial_map;
}
- /*
+ /*
* If we have an established channel map, include it and return
* a valid DFS element
*/
@@ -300,7 +300,7 @@ wlan_11h_set_supp_channels_ie(mlan_private * priv,
cfp_bg = cfp_a = priv->adapter->region_code;
if ((band & BAND_B) || (band & BAND_G)) {
- /*
+ /*
* Channels are contiguous in 2.4GHz, usually only one subband.
*/
switch (cfp_bg) {
@@ -324,7 +324,7 @@ wlan_11h_set_supp_channels_ie(mlan_private * priv,
break;
}
} else if (band & BAND_A) {
- /*
+ /*
* Set the supported channel elements based on the region code,
* incrementing num_subbands for each sub-band we append to the
* element.
@@ -358,7 +358,7 @@ wlan_11h_set_supp_channels_ie(mlan_private * priv,
}
}
- /*
+ /*
* If we have setup any supported subbands in the element, return a
* valid IE along with its size, else return 0.
*/
@@ -651,7 +651,7 @@ wlan_11h_process_infra_join(mlan_private * priv,
/* Setup the Supported Channels IE */
sup_chan_len = wlan_11h_set_supp_channels_ie(priv, band, &sup_chan_ie);
- /*
+ /*
* If we returned a valid Supported Channels IE, wrap and append it
*/
if (sup_chan_len) {
@@ -713,7 +713,7 @@ wlan_11h_process_adhoc(mlan_private * priv,
#endif
if (p11h_bss_info) {
- /*
+ /*
* Copy the DFS Owner/Recovery Interval from the BSS we are joining
*/
memcpy(adapter, dfs_elem.dfs_owner,
@@ -731,12 +731,12 @@ wlan_11h_process_adhoc(mlan_private * priv,
*ppbuffer += size_appended;
ret_len += size_appended;
- /*
+ /*
* Check to see if we are joining a network. Join is indicated by the
* BSS Info pointer being valid (not NULL)
*/
if (p11h_bss_info) {
- /*
+ /*
* If there was a quiet element, include it in adhoc join command
*/
if (p11h_bss_info->quiet.element_id == QUIET) {
@@ -752,7 +752,7 @@ wlan_11h_process_adhoc(mlan_private * priv,
/* Copy the local constraint from the network */
local_constraint = p11h_bss_info->power_constraint.local_constraint;
} else {
- /*
+ /*
* If we are the adhoc starter, we can add a quiet element
*/
if (adapter->state_11h.quiet_ie.quiet_period) {
@@ -1172,27 +1172,27 @@ wlan_11h_get_uap_start_channel(mlan_private * priv, t_u8 uap_band_cfg)
ENTER();
- /*
+ /*
* Set start_chn to the Default. Used if 11h is disabled or the band
* does not require 11h support.
*/
start_chn = DEFAULT_AD_HOC_CHANNEL;
- /*
+ /*
* Check that we are looking for a channel in the A Band
*/
if (uap_band_cfg & UAP_BAND_CONFIG_5GHZ) {
- /*
+ /*
* Set default to the A Band default. Used if random selection fails
* or if 11h is not enabled
*/
start_chn = DEFAULT_AD_HOC_CHANNEL_A;
- /*
+ /*
* Check that 11h is enabled in the driver
*/
if (wlan_11h_is_enabled(priv)) {
- /*
+ /*
* Search the region_channel tables for a channel table
* that is marked for the A Band.
*/
@@ -1203,7 +1203,7 @@ wlan_11h_get_uap_start_channel(mlan_private * priv, t_u8 uap_band_cfg)
if (chn_tbl->valid
&& chn_tbl->region == adapter->region_code
&& chn_tbl->band & BAND_A) {
- /*
+ /*
* Set the start channel. Get a random number and
* use it to pick an entry in the table between 0
* and the number of channels in the table (NumCFP).
@@ -1544,7 +1544,7 @@ wlan_11h_activate(mlan_private * priv, t_void * pioctl_buf, t_bool flag)
/* add bits for master/slave radar detect into enable. */
enable |= wlan_11h_get_current_radar_detect_flags(priv->adapter);
- /*
+ /*
* Send cmd to FW to enable/disable 11h function in firmware
*/
ret = wlan_prepare_cmd(priv,
@@ -1707,29 +1707,29 @@ wlan_11h_get_adhoc_start_channel(mlan_private * priv)
ENTER();
- /*
+ /*
* Set start_chn to the Default. Used if 11h is disabled or the band
* does not require 11h support.
*/
start_chn = DEFAULT_AD_HOC_CHANNEL;
- /*
+ /*
* Check that we are looking for a channel in the A Band
*/
if ((adapter->adhoc_start_band & BAND_A)
|| (adapter->adhoc_start_band & BAND_AN)
) {
- /*
+ /*
* Set default to the A Band default. Used if random selection fails
* or if 11h is not enabled
*/
start_chn = DEFAULT_AD_HOC_CHANNEL_A;
- /*
+ /*
* Check that 11h is enabled in the driver
*/
if (wlan_11h_is_enabled(priv)) {
- /*
+ /*
* Search the region_channel tables for a channel table
* that is marked for the A Band.
*/
@@ -1740,7 +1740,7 @@ wlan_11h_get_adhoc_start_channel(mlan_private * priv)
if (chn_tbl->valid
&& chn_tbl->region == adapter->region_code
&& chn_tbl->band & BAND_A) {
- /*
+ /*
* Set the start channel. Get a random number and
* use it to pick an entry in the table between 0
* and the number of channels in the table (NumCFP).
@@ -1792,7 +1792,7 @@ wlan_11h_radar_detect_required(mlan_private * priv, t_u8 channel)
ENTER();
- /*
+ /*
* No checks for 11h or measurement code being enabled is placed here
* since regulatory requirements exist whether we support them or not.
*/
@@ -2310,7 +2310,7 @@ wlan_11h_process_bss_elem(mlan_adapter * pmadapter,
case SUPPORTED_CHANNELS:
case TPC_REQUEST:
- /*
+ /*
* These elements are not in beacons/probe responses. Included here
* to cover set of enumerated 11h elements.
*/
@@ -2703,8 +2703,8 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
#endif
pstate_rdh->new_channel =
wlan_11h_get_adhoc_start_channel(pmpriv);
- } while ((pstate_rdh->new_channel == pstate_rdh->curr_channel) && (++i < MAX_RANDOM_CHANNEL_RETRIES)); /* avoid
- deadloop
+ } while ((pstate_rdh->new_channel == pstate_rdh->curr_channel) && (++i < MAX_RANDOM_CHANNEL_RETRIES)); /* avoid
+ deadloop
*/
if (i >= MAX_RANDOM_CHANNEL_RETRIES) /* report error */
PRINTM(MERROR, "%s(): ERROR - could not choose new_chan"
@@ -2793,7 +2793,7 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
__FUNCTION__, pstate_rdh->stage,
RDH_stage_str[pstate_rdh->stage], pstate_rdh->priv_curr_idx);
- /* add CHAN_SW IE - firmware will accept on any interface, and apply to
+ /* add CHAN_SW IE - firmware will accept on any interface, and apply to
all */
if (pstate_rdh->priv_curr_idx == RDH_STAGE_FIRST_ENTRY_PRIV_IDX) {
mlan_ioctl_req *pioctl_req = MNULL;
@@ -2834,7 +2834,7 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
__FUNCTION__, pstate_rdh->stage,
RDH_stage_str[pstate_rdh->stage], pstate_rdh->priv_curr_idx);
- /* remove CHAN_SW IE - firmware will accept on any interface, and apply
+ /* remove CHAN_SW IE - firmware will accept on any interface, and apply
to all */
if (pstate_rdh->priv_curr_idx == RDH_STAGE_FIRST_ENTRY_PRIV_IDX) {
mlan_ioctl_req *pioctl_req = MNULL;
@@ -2940,9 +2940,9 @@ wlan_11h_radar_detected_handling(mlan_adapter * pmadapter)
pmpriv->uap_state_chan_cb.get_chan_callback
= wlan_11h_radar_detected_callback;
pstate_rdh->uap_band_cfg |= UAP_BAND_CONFIG_5GHZ; /* DFS
- only
+ only
in
- 5GHz
+ 5GHz
*/
ret = wlan_uap_set_channel(pmpriv, pstate_rdh->uap_band_cfg,
pstate_rdh->new_channel);
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n.c b/drivers/net/wireless/sd8797/mlan/mlan_11n.c
index d55c2e7e4ab3..48b51a5bf7e0 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n.c
@@ -44,7 +44,7 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
*
* @brief set/get max tx buf size
*
@@ -70,8 +70,8 @@ wlan_11n_ioctl_max_tx_buf_size(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get htcapinfo configuration
+/**
+ * @brief Set/get htcapinfo configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -136,7 +136,7 @@ wlan_11n_ioctl_htusrcfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Enable/Disable AMSDU AGGR CTRL
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -175,8 +175,8 @@ wlan_11n_ioctl_amsdu_aggr_ctrl(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get 11n configuration
+/**
+ * @brief Set/get 11n configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -214,7 +214,7 @@ wlan_11n_ioctl_httxcfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/get TX beamforming capabilities
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -242,7 +242,7 @@ wlan_11n_ioctl_tx_bf_cap(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/get TX beamforming configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -281,7 +281,7 @@ wlan_11n_ioctl_tx_bf_cfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/get HT stream configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -326,12 +326,12 @@ wlan_11n_ioctl_stream_cfg(IN pmlan_adapter pmadapter,
}
/**
- * @brief This function will resend addba request to all
- * the peer in the TxBAStreamTbl
- *
+ * @brief This function will resend addba request to all
+ * the peer in the TxBAStreamTbl
+ *
* @param priv A pointer to mlan_private
*
- * @return N/A
+ * @return N/A
*/
static void
wlan_11n_update_addba_request(mlan_private * priv)
@@ -363,8 +363,8 @@ wlan_11n_update_addba_request(mlan_private * priv)
return;
}
-/**
- * @brief Set/get addba parameter
+/**
+ * @brief Set/get addba parameter
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -405,8 +405,8 @@ wlan_11n_ioctl_addba_param(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get addba reject set
+/**
+ * @brief Set/get addba reject set
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -455,8 +455,8 @@ wlan_11n_ioctl_addba_reject(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set/get aggr_prio_tbl
+/**
+ * @brief Set/get aggr_prio_tbl
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -521,7 +521,7 @@ wlan_11n_ioctl_aggr_prio_tbl(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get supported MCS set
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -565,9 +565,9 @@ wlan_11n_ioctl_supported_mcs_set(IN pmlan_adapter pmadapter,
}
/**
- * @brief This function checks if the given pointer is valid entry of
+ * @brief This function checks if the given pointer is valid entry of
* Tx BA Stream table
- *
+ *
* @param priv Pointer to mlan_private
* @param ptxtblptr Pointer to tx ba stream entry
*
@@ -603,9 +603,9 @@ wlan_is_txbastreamptr_valid(mlan_private * priv, TxBAStreamTbl * ptxtblptr)
}
/**
- * @brief This function will return the pointer to a entry in BA Stream
+ * @brief This function will return the pointer to a entry in BA Stream
* table which matches the ba_status requested
- *
+ *
* @param priv A pointer to mlan_private
* @param ba_status Current status of the BA stream
*
@@ -781,9 +781,9 @@ wlan_fill_ht_cap_tlv(mlan_private * priv,
}
#endif /* STA_SUPPORT */
-/**
+/**
* @brief This function prints the 802.11n device capability
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param cap Capability value
*
@@ -854,9 +854,9 @@ wlan_show_dot11ndevcap(pmlan_adapter pmadapter, t_u32 cap)
return;
}
-/**
+/**
* @brief This function prints the 802.11n device MCS
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param support Support value
*
@@ -874,10 +874,10 @@ wlan_show_devmcssupport(pmlan_adapter pmadapter, t_u8 support)
return;
}
-/**
+/**
* @brief This function handles the command response of
* delete a block ack request
- *
+ *
* @param priv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
*
@@ -907,7 +907,7 @@ wlan_ret_11n_delba(mlan_private * priv, HostCmd_DS_COMMAND * resp)
{
wlan_send_addba(priv, ptx_ba_tbl->tid, ptx_ba_tbl->ra);
}
- } else { /*
+ } else { /*
* In case of failure, recreate the deleted stream in
* case we initiated the ADDBA
*/
@@ -928,10 +928,10 @@ wlan_ret_11n_delba(mlan_private * priv, HostCmd_DS_COMMAND * resp)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of
* add a block ack request
- *
+ *
* @param priv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
*
@@ -1008,9 +1008,9 @@ wlan_ret_11n_addba_req(mlan_private * priv, HostCmd_DS_COMMAND * resp)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of reconfigure tx buf
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1045,9 +1045,9 @@ wlan_cmd_recfg_tx_buf(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of amsdu aggr control
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1085,9 +1085,9 @@ wlan_cmd_amsdu_aggr_ctrl(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of amsdu aggr ctrl
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1115,9 +1115,9 @@ wlan_ret_amsdu_aggr_ctrl(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares 11n cfg command
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -1143,9 +1143,9 @@ wlan_cmd_11n_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of 11ncfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1170,9 +1170,9 @@ wlan_ret_11n_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares TX BF configuration command
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1246,10 +1246,10 @@ wlan_cmd_tx_bf_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response
* of TX BF configuration
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1342,7 +1342,7 @@ wlan_ret_tx_bf_cfg(IN pmlan_private pmpriv,
* @param pbss_desc A pointer to BSSDescriptor_t structure
* @param ppbuffer A Pointer to command buffer pointer
*
- * @return bytes added to the buffer
+ * @return bytes added to the buffer
*/
int
wlan_cmd_append_11n_tlv(IN mlan_private * pmpriv,
@@ -1482,7 +1482,7 @@ wlan_cmd_append_11n_tlv(IN mlan_private * pmpriv,
#endif /* STA_SUPPORT */
-/**
+/**
* @brief 11n configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1552,7 +1552,7 @@ wlan_11n_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
/**
* @brief This function will delete the given entry in Tx BA Stream table
- *
+ *
* @param priv Pointer to mlan_private
* @param ptx_tbl Pointer to tx ba stream entry to delete
*
@@ -1588,7 +1588,7 @@ wlan_11n_delete_txbastream_tbl_entry(mlan_private * priv,
/**
* @brief This function will delete all the entries in Tx BA Stream table
- *
+ *
* @param priv A pointer to mlan_private
*
* @return N/A
@@ -1619,9 +1619,9 @@ wlan_11n_deleteall_txbastream_tbl(mlan_private * priv)
}
/**
- * @brief This function will return the pointer to an entry in BA Stream
+ * @brief This function will return the pointer to an entry in BA Stream
* table which matches the give RA/TID pair
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID to find in reordering table
* @param ra RA to find in reordering table
@@ -1667,9 +1667,9 @@ wlan_11n_get_txbastream_tbl(mlan_private * priv, int tid, t_u8 * ra)
}
/**
- * @brief This function will create a entry in tx ba stream table for the
+ * @brief This function will create a entry in tx ba stream table for the
* given RA/TID.
- *
+ *
* @param priv A pointer to mlan_private
* @param ra RA to find in reordering table
* @param tid TID to find in reordering table
@@ -1711,7 +1711,7 @@ wlan_11n_create_txbastream_tbl(mlan_private * priv,
/**
* @brief This function will send a block ack to given tid/ra
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID to send the ADDBA
* @param peer_mac MAC address to send the ADDBA
@@ -1759,7 +1759,7 @@ wlan_send_addba(mlan_private * priv, int tid, t_u8 * peer_mac)
/**
* @brief This function will delete a block ack to given tid/ra
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID to send the ADDBA
* @param peer_mac MAC address to send the ADDBA
@@ -1793,10 +1793,10 @@ wlan_send_delba(mlan_private * priv, int tid, t_u8 * peer_mac, int initiator)
return ret;
}
-/**
+/**
* @brief This function handles the command response of
* delete a block ack request
- *
+ *
* @param priv A pointer to mlan_private structure
* @param del_ba A pointer to command response buffer
*
@@ -1823,9 +1823,9 @@ wlan_11n_delete_bastream(mlan_private * priv, t_u8 * del_ba)
LEAVE();
}
-/**
+/**
* @brief Get Rx reordering table
- *
+ *
* @param priv A pointer to mlan_private structure
* @param buf A pointer to rx_reorder_tbl structure
* @return number of rx reorder table entry
@@ -1872,9 +1872,9 @@ wlan_get_rxreorder_tbl(mlan_private * priv, rx_reorder_tbl * buf)
return count;
}
-/**
+/**
* @brief Get transmit BA stream table
- *
+ *
* @param priv A pointer to mlan_private structure
* @param buf A pointer to tx_ba_stream_tbl structure
* @return number of ba stream table entry
@@ -1916,9 +1916,9 @@ wlan_get_txbastream_tbl(mlan_private * priv, tx_ba_stream_tbl * buf)
/**
* @brief This function cleans up txbastream_tbl for specific station
- *
+ *
* @param priv A pointer to mlan_private
- * @param ra RA to find in txbastream_tbl
+ * @param ra RA to find in txbastream_tbl
* @return N/A
*/
void
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n.h b/drivers/net/wireless/sd8797/mlan/mlan_11n.h
index dc3d98974f03..3b83ad75ebcb 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n.h
@@ -112,7 +112,7 @@ mlan_status wlan_cmd_amsdu_aggr_ctrl(mlan_private * priv,
void wlan_11n_cleanup_txbastream_tbl(mlan_private * priv, t_u8 * ra);
/**
* @brief This function checks whether a station has 11N enabled or not
- *
+ *
* @param priv A pointer to mlan_private
* @param mac station mac address
* @return MTRUE or MFALSE
@@ -129,7 +129,7 @@ is_station_11n_enabled(mlan_private * priv, t_u8 * mac)
/**
* @brief This function get station max amsdu size
- *
+ *
* @param priv A pointer to mlan_private
* @param mac station mac address
* @return max amsdu size statio supported
@@ -146,7 +146,7 @@ get_station_max_amsdu_size(mlan_private * priv, t_u8 * mac)
/**
* @brief This function checks whether a station allows AMPDU or not
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -168,8 +168,8 @@ is_station_ampdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
}
/**
- * @brief This function disable station ampdu for specific tid
- *
+ * @brief This function disable station ampdu for specific tid
+ *
* @param priv A pointer to mlan_private
* @param tid tid index
* @param ra station mac address
@@ -187,7 +187,7 @@ disable_station_ampdu(mlan_private * priv, t_u8 tid, t_u8 * ra)
/**
* @brief This function checks whether current BA stream is high priority or not
- *
+ *
* @param priv A pointer to mlan_private
* @param tid TID
*
@@ -226,7 +226,7 @@ wlan_is_cur_bastream_high_prio(mlan_private * priv, int tid)
/**
* @brief This function checks whether AMPDU is allowed or not
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -249,7 +249,7 @@ wlan_is_ampdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether AMSDU is allowed for BA stream
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -271,7 +271,7 @@ wlan_is_amsdu_in_ampdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether AMSDU is allowed or not
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -299,7 +299,7 @@ wlan_is_amsdu_allowed(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether a BA stream is available or not
- *
+ *
* @param priv A pointer to mlan_private
*
* @return MTRUE or MFALSE
@@ -322,7 +322,7 @@ wlan_is_bastream_avail(mlan_private * priv)
/**
* @brief This function finds the stream to delete
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param ptr_tid TID value of ptr
@@ -372,7 +372,7 @@ wlan_find_stream_to_delete(mlan_private * priv,
/**
* @brief This function checks whether BA stream is setup
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param tid TID value for ptr
@@ -397,7 +397,7 @@ wlan_is_bastream_setup(mlan_private * priv, raListTbl * ptr, int tid)
/**
* @brief This function checks whether 11n is supported
- *
+ *
* @param priv A pointer to mlan_private
* @param ra Address of the receiver STA
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c b/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c
index 239be3d67cea..6af4b6a698e8 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n_aggr.c
@@ -68,7 +68,7 @@ wlan_11n_form_amsdu_pkt(pmlan_adapter pmadapter, t_u8 * amsdu_buf, t_u8 * data,
0x03, /* LLC CTRL */
{0x00, 0x00, 0x00}, /* SNAP OUI */
0x0000 /* SNAP type */
- /*
+ /*
* This field will be overwritten
* later with ethertype
*/
@@ -105,7 +105,7 @@ wlan_11n_form_amsdu_pkt(pmlan_adapter pmadapter, t_u8 * amsdu_buf, t_u8 * data,
* @brief Add TxPD to AMSDU header
*
* @param priv A pointer to mlan_private structure
- * @param mbuf Pointer to buffer where the TxPD will be formed
+ * @param mbuf Pointer to buffer where the TxPD will be formed
*
* @return N/A
*/
@@ -120,8 +120,8 @@ wlan_11n_form_amsdu_txpd(mlan_private * priv, mlan_buffer * mbuf)
ptx_pd = (TxPD *) mbuf->pbuf;
memset(pmadapter, ptx_pd, 0, sizeof(TxPD));
- /*
- * Original priority has been overwritten
+ /*
+ * Original priority has been overwritten
*/
ptx_pd->priority = (t_u8) mbuf->priority;
ptx_pd->pkt_delay_2ms = wlan_wmm_compute_driver_packet_delay(priv, mbuf);
@@ -202,7 +202,7 @@ wlan_11n_get_num_aggrpkts(t_u8 * data, int total_pkt_len)
********************************************************/
/**
- * @brief Deaggregate the received AMSDU packet
+ * @brief Deaggregate the received AMSDU packet
*
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to aggregated data packet
@@ -317,7 +317,7 @@ wlan_11n_deaggregate_pkt(mlan_private * priv, pmlan_buffer pmbuf)
* @param priv A pointer to mlan_private structure
* @param pra_list Pointer to the RA List table containing the pointers
* to packets.
- * @param headroom Any interface specific headroom that may be need. TxPD
+ * @param headroom Any interface specific headroom that may be need. TxPD
* will be formed leaving this headroom.
* @param ptrindex Pointer index
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c b/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c
index cabd78b9017f..870081799c07 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_11n_rxreorder.c
@@ -4,7 +4,7 @@
* driver.
*
* Copyright (C) 2008-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -45,9 +45,9 @@ Change log:
Local Functions
********************************************************/
/**
- * @brief This function will dispatch amsdu packet and
+ * @brief This function will dispatch amsdu packet and
* forward it to kernel/upper layer
- *
+ *
* @param priv A pointer to mlan_private
* @param pmbuf A pointer to the received buffer
*
@@ -72,9 +72,9 @@ wlan_11n_dispatch_amsdu_pkt(mlan_private * priv, pmlan_buffer pmbuf)
}
/**
- * @brief This function will process the rx packet and
+ * @brief This function will process the rx packet and
* forward it to kernel/upper layer
- *
+ *
* @param priv A pointer to mlan_private
* @param payload A pointer to rx packet payload
*
@@ -121,7 +121,7 @@ wlan_11n_dispatch_pkt(t_void * priv, t_void * payload)
/**
* @brief This function restarts the reordering timeout timer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param rx_reor_tbl_ptr A pointer to structure RxReorderTbl
*
@@ -150,7 +150,7 @@ mlan_11n_rxreorder_timer_restart(pmlan_adapter pmadapter,
/**
* @brief This function dispatches all the packets in the buffer.
* There could be holes in the buffer.
- *
+ *
* @param priv A pointer to mlan_private
* @param rx_reor_tbl_ptr A pointer to structure RxReorderTbl
* @param start_win Start window
@@ -190,7 +190,7 @@ wlan_11n_dispatch_pkt_until_start_win(t_void * priv,
pmpriv->adapter->callbacks.moal_spin_lock(pmpriv->adapter->pmoal_handle,
pmpriv->rx_pkt_lock);
- /*
+ /*
* We don't have a circular buffer, hence use rotation to simulate
* circular buffer
*/
@@ -211,7 +211,7 @@ wlan_11n_dispatch_pkt_until_start_win(t_void * priv,
/**
* @brief This function will display the rxReorder table
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param rx_reor_tbl_ptr A pointer to structure RxReorderTbl
*
@@ -230,8 +230,8 @@ wlan_11n_display_tbl_ptr(pmlan_adapter pmadapter,
}
/**
- * @brief This function will dispatch all packets sequentially
- * from start_win until a hole is found and adjust the
+ * @brief This function will dispatch all packets sequentially
+ * from start_win until a hole is found and adjust the
* start_win appropriately
*
* @param priv A pointer to mlan_private
@@ -268,7 +268,7 @@ wlan_11n_scan_and_dispatch(t_void * priv, RxReorderTbl * rx_reor_tbl_ptr)
pmpriv->adapter->callbacks.moal_spin_lock(pmpriv->adapter->pmoal_handle,
pmpriv->rx_pkt_lock);
- /*
+ /*
* We don't have a circular buffer, hence use rotation to simulate
* circular buffer
*/
@@ -291,7 +291,7 @@ wlan_11n_scan_and_dispatch(t_void * priv, RxReorderTbl * rx_reor_tbl_ptr)
}
/**
- * @brief This function delete rxreorder table's entry
+ * @brief This function delete rxreorder table's entry
* and free the memory
*
* @param priv A pointer to mlan_private
@@ -343,7 +343,7 @@ wlan_11n_delete_rxreorder_tbl_entry(mlan_private * priv,
}
/**
- * @brief This function returns the last used sequence number
+ * @brief This function returns the last used sequence number
*
* @param rx_reorder_tbl_ptr A pointer to structure RxReorderTbl
*
@@ -396,9 +396,9 @@ wlan_flush_data(t_void * context)
}
/**
- * @brief This function will create a entry in rx reordering table for the
+ * @brief This function will create a entry in rx reordering table for the
* given ta/tid and will initialize it with seq_num, win_size
- *
+ *
* @param priv A pointer to mlan_private
* @param ta ta to find in reordering table
* @param tid tid to find in reordering table
@@ -419,7 +419,7 @@ wlan_11n_create_rxreorder_tbl(mlan_private * priv, t_u8 * ta, int tid,
ENTER();
- /*
+ /*
* If we get a TID, ta pair which is already present dispatch all the
* the packets and move the window size until the ssn
*/
@@ -499,9 +499,9 @@ wlan_11n_create_rxreorder_tbl(mlan_private * priv, t_u8 * ta, int tid,
********************************************************/
/**
- * @brief This function will return the pointer to a entry in rx reordering
+ * @brief This function will return the pointer to a entry in rx reordering
* table which matches the give TA/TID pair
- *
+ *
* @param priv A pointer to mlan_private
* @param ta ta to find in reordering table
* @param tid tid to find in reordering table
@@ -542,10 +542,10 @@ wlan_11n_get_rxreorder_tbl(mlan_private * priv, int tid, t_u8 * ta)
return MNULL;
}
-/**
+/**
* @brief This function prepares command for adding a block ack
* request.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -574,10 +574,10 @@ wlan_cmd_11n_addba_req(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command for adding a block ack
* response.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -649,10 +649,10 @@ wlan_cmd_11n_addba_rspgen(mlan_private * priv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command for deleting a block ack
* request.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -682,7 +682,7 @@ wlan_cmd_11n_delba(mlan_private * priv,
/**
* @brief This function will identify if RxReodering is needed for the packet
* and will do the reordering if required before sending it to kernel
- *
+ *
* @param priv A pointer to mlan_private
* @param seq_num Seqence number of the current packet
* @param tid Tid of the current packet
@@ -733,7 +733,7 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
PRINTM(MDAT_D,
"1:seq_num %d start_win %d win_size %d end_win %d\n",
seq_num, start_win, win_size, end_win);
- /*
+ /*
* If seq_num is less then starting win then ignore and drop
* the packet
*/
@@ -749,7 +749,7 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
goto done;
}
- /*
+ /*
* If this packet is a BAR we adjust seq_num as
* WinStart = seq_num
*/
@@ -805,7 +805,7 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
wlan_11n_display_tbl_ptr(pmadapter, rx_reor_tbl_ptr);
- /*
+ /*
* Dispatch all packets sequentially from start_win until a
* hole is found and adjust the start_win appropriately
*/
@@ -828,11 +828,11 @@ mlan_11n_rxreorder_pkt(void *priv, t_u16 seq_num, t_u16 tid,
/**
* @brief This function will delete an entry for a given tid/ta pair. tid/ta
* are taken from delba_event body
- *
+ *
* @param priv A pointer to mlan_private
* @param tid tid to send delba
* @param peer_mac MAC address to send delba
- * @param type TYPE_DELBA_SENT or TYPE_DELBA_RECEIVE
+ * @param type TYPE_DELBA_SENT or TYPE_DELBA_RECEIVE
* @param initiator MTRUE if we are initiator of ADDBA, MFALSE otherwise
*
* @return N/A
@@ -878,10 +878,10 @@ mlan_11n_delete_bastream_tbl(mlan_private * priv, int tid,
LEAVE();
}
-/**
+/**
* @brief This function handles the command response of
* a block ack response
- *
+ *
* @param priv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
*
@@ -950,7 +950,7 @@ wlan_ret_11n_addba_resp(mlan_private * priv, HostCmd_DS_COMMAND * resp)
/**
* @brief This function handles ba_stream_timeout event
- *
+ *
* @param priv A pointer to mlan_private
* @param event A pointer to structure HostCmd_DS_11N_BATIMEOUT
*
@@ -981,7 +981,7 @@ wlan_11n_ba_stream_timeout(mlan_private * priv,
/**
* @brief This function cleans up reorder tbl
- *
+ *
* @param priv A pointer to mlan_private
*
* @return N/A
@@ -1008,10 +1008,10 @@ wlan_11n_cleanup_reorder_tbl(mlan_private * priv)
}
/**
- * @brief This function handle the rxba_sync event
- *
+ * @brief This function handle the rxba_sync event
+ *
* @param priv A pointer to mlan_private
- * @param event_buf A pointer to event buf
+ * @param event_buf A pointer to event buf
* @param len event_buf length
* @return N/A
*/
@@ -1080,7 +1080,7 @@ wlan_11n_rxba_sync_event(mlan_private * priv, t_u8 * event_buf, t_u16 len)
/**
* @brief This function will send a DELBA for each entry in the priv's
* rx reordering table
- *
+ *
* @param priv A pointer to mlan_private
*/
t_void
@@ -1114,9 +1114,9 @@ wlan_send_delba_to_all_in_reorder_tbl(pmlan_private priv)
/**
* @brief This function cleans up reorder tbl for specific station
- *
+ *
* @param priv A pointer to mlan_private
- * @param ta ta to find in reordering table
+ * @param ta ta to find in reordering table
* @return N/A
*/
void
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_cfp.c b/drivers/net/wireless/sd8797/mlan/mlan_cfp.c
index 742c9cd368bc..23e849f04b63 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_cfp.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_cfp.c
@@ -445,12 +445,12 @@ t_u8 SupportedRates_N[N_SUPPORTED_RATES] = { 0x02, 0x04, 0 };
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief Find a character in a string.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param s A pointer to string
- * @param c Character to be located
+ * @param c Character to be located
* @param n The length of string
*
* @return A pointer to the first occurrence of c in string, or MNULL if c is not found.
@@ -473,10 +473,10 @@ wlan_memchr(pmlan_adapter pmadapter, void *s, int c, int n)
return MNULL;
}
-/**
- * @brief This function finds the CFP in
+/**
+ * @brief This function finds the CFP in
* cfp_table_BG/A based on region/code and band parameter.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param region The region code
* @param band The band
@@ -534,14 +534,14 @@ wlan_get_region_cfp_table(pmlan_adapter pmadapter, t_u8 region, t_u8 band,
#ifdef STA_SUPPORT
#endif /* STA_SUPPORT */
-/**
+/**
* @brief Use index to get the data rate
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param index The index of data rate
* @param ht_info ht info
*
- * @return Data rate or 0
+ * @return Data rate or 0
*/
t_u32
@@ -595,13 +595,13 @@ wlan_index_to_data_rate(pmlan_adapter pmadapter, t_u8 index, t_u8 ht_info)
return rate;
}
-/**
+/**
* @brief Use rate to get the index
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param rate Data rate
*
- * @return Index or 0
+ * @return Index or 0
*/
t_u8
wlan_data_rate_to_index(pmlan_adapter pmadapter, t_u32 rate)
@@ -619,9 +619,9 @@ wlan_data_rate_to_index(pmlan_adapter pmadapter, t_u32 rate)
return 0;
}
-/**
+/**
* @brief Get active data rates
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param bss_mode The specified BSS mode (Infra/IBSS)
* @param config_bands The specified band configuration
@@ -649,9 +649,9 @@ wlan_get_active_data_rates(mlan_private * pmpriv, t_u32 bss_mode,
}
#ifdef STA_SUPPORT
-/**
- * @brief This function search through all the regions cfp table to find the channel,
- * if the channel is found then gets the MIN txpower of the channel
+/**
+ * @brief This function search through all the regions cfp table to find the channel,
+ * if the channel is found then gets the MIN txpower of the channel
* present in all the regions.
*
* @param pmpriv A pointer to mlan_private structure
@@ -707,9 +707,9 @@ wlan_get_txpwr_of_chan_from_cfp(mlan_private * pmpriv, t_u8 channel)
return tx_power;
}
-/**
+/**
* @brief Get the channel frequency power info for a specific channel
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param band It can be BAND_A, BAND_G or BAND_B
* @param channel The channel to search for
@@ -784,9 +784,9 @@ wlan_get_cfp_by_band_and_channel(pmlan_adapter pmadapter,
return cfp;
}
-/**
+/**
* @brief Find the channel frequency power info for a specific channel
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param band It can be BAND_A, BAND_G or BAND_B
* @param channel The channel to search for
@@ -814,9 +814,9 @@ wlan_find_cfp_by_band_and_channel(mlan_adapter * pmadapter,
return cfp;
}
-/**
+/**
* @brief Find the channel frequency power info for a specific frequency
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param band It can be BAND_A, BAND_G or BAND_B
* @param freq The frequency to search for
@@ -888,9 +888,9 @@ wlan_find_cfp_by_band_and_freq(mlan_adapter * pmadapter, t_u8 band, t_u32 freq)
}
#endif /* STA_SUPPORT */
-/**
+/**
* @brief Check if Rate Auto
- *
+ *
* @param pmpriv A pointer to mlan_private structure
*
* @return MTRUE or MFALSE
@@ -914,9 +914,9 @@ wlan_is_rate_auto(mlan_private * pmpriv)
return MFALSE;
}
-/**
+/**
* @brief Covert Rate Bitmap to Rate index
- *
+ *
* @param pmadapter Pointer to mlan_adapter structure
* @param rate_bitmap Pointer to rate bitmap
* @param size Size of the bitmap array
@@ -941,9 +941,9 @@ wlan_get_rate_index(pmlan_adapter pmadapter, t_u16 * rate_bitmap, int size)
return -1;
}
-/**
+/**
* @brief Get supported data rates
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param bss_mode The specified BSS mode (Infra/IBSS)
* @param config_bands The specified band configuration
@@ -1040,9 +1040,9 @@ wlan_get_supported_rates(mlan_private * pmpriv, t_u32 bss_mode,
return k;
}
-/**
- * @brief This function sets region table.
- *
+/**
+ * @brief This function sets region table.
+ *
* @param pmpriv A pointer to mlan_private structure
* @param region The region code
* @param band The band
@@ -1107,7 +1107,7 @@ wlan_set_regiontable(mlan_private * pmpriv, t_u8 region, t_u8 band)
* @param priv Private driver information structure
* @param chnl Channel to determine radar detection requirements
*
- * @return
+ * @return
* - MTRUE if radar detection is required
* - MFALSE otherwise
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c b/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c
index 8b91ae2c43c2..f3db9e662565 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_cmdevt.c
@@ -46,7 +46,7 @@ Change Log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function convert a given character to hex
*
* @param chr Character to be converted
@@ -122,9 +122,9 @@ wlan_parse_cal_cfg(t_u8 * src, t_size len, t_u8 * dst)
return (dptr - dst);
}
-/**
+/**
* @brief This function initializes the command node.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
* @param cmd_oid Cmd oid: treated as sub command
@@ -165,10 +165,10 @@ wlan_init_cmd_node(IN pmlan_private pmpriv,
LEAVE();
}
-/**
+/**
* @brief This function gets a free command node if available in
* command free queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or MNULL
@@ -203,9 +203,9 @@ wlan_get_cmd_node(mlan_adapter * pmadapter)
return pcmd_node;
}
-/**
+/**
* @brief This function cleans command node.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
*
@@ -235,9 +235,9 @@ wlan_clean_cmd_node(pmlan_adapter pmadapter, cmd_ctrl_node * pcmd_node)
}
/**
- * @brief This function will return the pointer to the first entry in
+ * @brief This function will return the pointer to the first entry in
* pending cmd which matches the given pioctl_req
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pioctl_req A pointer to mlan_ioctl_req buf
*
@@ -271,9 +271,9 @@ wlan_get_pending_ioctl_cmd(pmlan_adapter pmadapter, pmlan_ioctl_req pioctl_req)
return MNULL;
}
-/**
+/**
* @brief This function handles the command response of host_cmd
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -301,9 +301,9 @@ wlan_ret_host_cmd(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function sends host command to firmware.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -325,9 +325,9 @@ wlan_cmd_host_cmd(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function downloads a command to firmware.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
*
@@ -459,7 +459,7 @@ wlan_dnld_cmd_to_fw(IN mlan_private * pmpriv, IN cmd_ctrl_node * pcmd_node)
/**
* @brief This function sends sleep confirm command to firmware.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -539,9 +539,9 @@ wlan_dnld_sleep_confirm_cmd(mlan_adapter * pmadapter)
Global Functions
********************************************************/
-/**
+/**
* @brief Event handler
- *
+ *
* @param priv A pointer to mlan_private structure
* @param event_id Event ID
* @param pmevent Event buffer
@@ -574,10 +574,10 @@ wlan_recv_event(pmlan_private priv, mlan_event_id event_id, t_void * pmevent)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function allocates the command buffer and links
* it to command free queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -630,7 +630,7 @@ wlan_alloc_cmd_buffer(IN mlan_adapter * pmadapter)
/**
* @brief This function frees the command buffer.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS
@@ -676,9 +676,9 @@ wlan_free_cmd_buffer(IN mlan_adapter * pmadapter)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles events generated by firmware
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -745,9 +745,9 @@ wlan_process_event(pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function requests a lock on command queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -766,9 +766,9 @@ wlan_request_cmd_lock(IN mlan_adapter * pmadapter)
return;
}
-/**
+/**
* @brief This function releases a lock on command queue.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -787,9 +787,9 @@ wlan_release_cmd_lock(IN mlan_adapter * pmadapter)
return;
}
-/**
+/**
* @brief This function prepare the command before sending to firmware.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd_no Command number
* @param cmd_action Command action: GET or SET
@@ -904,10 +904,10 @@ wlan_prepare_cmd(IN mlan_private * pmpriv,
return ret;
}
-/**
+/**
* @brief This function inserts command node to cmd_free_q
* after cleaning it.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
*
@@ -944,9 +944,9 @@ wlan_insert_cmd_to_free_q(IN mlan_adapter * pmadapter,
LEAVE();
}
-/**
+/**
* @brief This function queues the command to cmd list.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
* @param add_tail Specify if the cmd needs to be queued in the header or tail
@@ -1008,14 +1008,14 @@ wlan_insert_cmd_to_pending_q(IN mlan_adapter * pmadapter,
return;
}
-/**
+/**
* @brief This function executes next command in command
* pending queue. It will put firmware back to PS mode
* if applicable.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
- * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
+ * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
mlan_status
wlan_exec_next_cmd(mlan_adapter * pmadapter)
@@ -1090,9 +1090,9 @@ wlan_exec_next_cmd(mlan_adapter * pmadapter)
return ret;
}
-/**
+/**
* @brief This function handles the command response
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1288,10 +1288,10 @@ wlan_process_cmdresp(mlan_adapter * pmadapter)
return ret;
}
-/**
+/**
* @brief This function handles the timeout of command sending.
* It will re-send the same command again.
- *
+ *
* @param function_context A pointer to function_context
* @return N/A
*/
@@ -1478,7 +1478,7 @@ wlan_flush_scan_queue(IN pmlan_adapter pmadapter)
/**
* @brief Cancel all pending cmd.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
*
* @return N/A
@@ -1530,7 +1530,7 @@ wlan_cancel_all_pending_cmd(pmlan_adapter pmadapter)
/**
* @brief Cancel pending ioctl cmd.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pioctl_req A pointer to mlan_ioctl_req buf
*
@@ -1642,7 +1642,7 @@ wlan_ret_rx_mgmt_ind(IN pmlan_private pmpriv,
/**
* @brief This function checks conditions and prepares to
* send sleep confirm command to firmware if OK.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -1665,9 +1665,9 @@ wlan_check_ps_cond(mlan_adapter * pmadapter)
LEAVE();
}
-/**
+/**
* @brief This function sends the HS_ACTIVATED event to the application
- *
+ *
* @param priv A pointer to mlan_private structure
* @param activated MTRUE if activated, MFALSE if de-activated
*
@@ -1694,9 +1694,9 @@ wlan_host_sleep_activated_event(pmlan_private priv, t_u8 activated)
LEAVE();
}
-/**
+/**
* @brief This function sends the HS_WAKEUP event to the application
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return N/A
@@ -1715,9 +1715,9 @@ wlan_host_sleep_wakeup_event(pmlan_private priv)
LEAVE();
}
-/**
+/**
* @brief This function handles the command response of hs_cfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1767,9 +1767,9 @@ wlan_ret_802_11_hs_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Perform hs related activities on receiving the power up interrupt
- *
+ *
* @param pmadapter A pointer to the adapter structure
* @return N/A
*/
@@ -1784,9 +1784,9 @@ wlan_process_hs_config(pmlan_adapter pmadapter)
return;
}
-/**
+/**
* @brief Check sleep confirm command response and set the state to ASLEEP
- *
+ *
* @param pmadapter A pointer to the adapter structure
* @param pbuf A pointer to the command response buffer
* @param upld_len Command response buffer length
@@ -1842,7 +1842,7 @@ wlan_process_sleep_confirm_resp(pmlan_adapter pmadapter, t_u8 * pbuf,
/**
* @brief This function prepares command of power mode
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -1964,9 +1964,9 @@ wlan_cmd_enh_power_mode(pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of ps_mode_enh
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -2116,9 +2116,9 @@ wlan_ret_enh_power_mode(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of tx rate query
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -2150,7 +2150,7 @@ wlan_ret_802_11_tx_rate_query(IN pmlan_private pmpriv,
rate->param.rate_cfg.rate =
pmpriv->tx_rate + MLAN_RATE_INDEX_MCS0;
else
- /* For HostCmd_CMD_802_11_TX_RATE_QUERY, there is a hole in
+ /* For HostCmd_CMD_802_11_TX_RATE_QUERY, there is a hole in
rate table between HR/DSSS and OFDM rates, so minus 1
for OFDM rate index */
rate->param.rate_cfg.rate =
@@ -2209,9 +2209,9 @@ wlan_ret_802_11_tx_rate_query(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of tx_rate_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2275,12 +2275,12 @@ wlan_cmd_tx_rate_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of tx_rate_cfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -2387,7 +2387,7 @@ wlan_ret_tx_rate_cfg(IN pmlan_private pmpriv,
}
/**
- * @brief This function issues adapter specific commands
+ * @brief This function issues adapter specific commands
* to initialize firmware
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2410,8 +2410,8 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter)
pmpriv_sta = wlan_get_priv(pmadapter, MLAN_BSS_ROLE_STA);
#endif
- /*
- * This should be issued in the very first to config
+ /*
+ * This should be issued in the very first to config
* SDIO_GPIO interrupt mode.
*/
if (wlan_set_sdio_gpio_int(pmpriv) != MLAN_STATUS_SUCCESS) {
@@ -2439,7 +2439,7 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter)
pmadapter->cal_data_len = 0;
}
- /*
+ /*
* Get HW spec
*/
ret = wlan_prepare_cmd(pmpriv, HostCmd_CMD_GET_HW_SPEC,
@@ -2501,9 +2501,9 @@ wlan_adapter_init_cmd(IN pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function prepares command of get_hw_spec.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd A pointer to HostCmd_DS_COMMAND structure
*
@@ -2525,7 +2525,7 @@ wlan_cmd_get_hw_spec(IN pmlan_private pmpriv, IN HostCmd_DS_COMMAND * pcmd)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of set_cfg_data.
*
* @param pmpriv A pointer to mlan_private strcture
@@ -2603,9 +2603,9 @@ wlan_ret_cfg_data(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles the command response of get_hw_spec
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -2741,9 +2741,9 @@ wlan_ret_get_hw_spec(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function prepares command of radio_control.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2769,12 +2769,12 @@ wlan_cmd_802_11_radio_control(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of radio_control
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -2800,9 +2800,9 @@ wlan_ret_802_11_radio_control(IN pmlan_private pmpriv,
}
#ifdef WIFI_DIRECT_SUPPORT
-/**
+/**
* @brief This function prepares command of remain_on_channel.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2838,12 +2838,12 @@ wlan_cmd_remain_on_channel(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of remain_on_channel
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -2869,9 +2869,9 @@ wlan_ret_remain_on_channel(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of wifi direct mode.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2898,12 +2898,12 @@ wlan_cmd_wifi_direct_mode(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of wifi direct mode
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_fw.h b/drivers/net/wireless/sd8797/mlan/mlan_fw.h
index 4b15b43711b5..1b0af8d8c0ea 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_fw.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_fw.h
@@ -196,11 +196,11 @@ typedef enum _KEY_INFO_WAPI
/** The number of times to try when polling for status bits */
#define MAX_POLL_TRIES 100
-/** The number of times to try when waiting for downloaded firmware to
+/** The number of times to try when waiting for downloaded firmware to
become active when multiple interface is present */
#define MAX_MULTI_INTERFACE_POLL_TRIES 1000
-/** The number of times to try when waiting for downloaded firmware to
+/** The number of times to try when waiting for downloaded firmware to
become active. (polling the scratch register). */
#define MAX_FIRMWARE_POLL_TRIES 100
@@ -2275,10 +2275,10 @@ typedef MLAN_PACK_START struct _AdHoc_BssDesc_t
/** Supported data rates */
t_u8 data_rates[HOSTCMD_SUPPORTED_RATES];
- /*
+ /*
* DO NOT ADD ANY FIELDS TO THIS STRUCTURE.
- * It is used in the Adhoc join command and will cause a
- * binary layout mismatch with the firmware
+ * It is used in the Adhoc join command and will cause a
+ * binary layout mismatch with the firmware
*/
} MLAN_PACK_END AdHoc_BssDesc_t;
@@ -2676,9 +2676,9 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END IEBody;
#endif /* STA_SUPPORT */
-/*
- * This scan handle Country Information IE(802.11d compliant)
- * Define data structure for HostCmd_CMD_802_11_SCAN
+/*
+ * This scan handle Country Information IE(802.11d compliant)
+ * Define data structure for HostCmd_CMD_802_11_SCAN
*/
/** HostCmd_DS_802_11_SCAN */
typedef MLAN_PACK_START struct _HostCmd_DS_802_11_SCAN
@@ -2689,9 +2689,9 @@ typedef MLAN_PACK_START struct _HostCmd_DS_802_11_SCAN
t_u8 bssid[MLAN_MAC_ADDR_LENGTH];
/** TLV buffer */
t_u8 tlv_buffer[1];
- /** MrvlIEtypes_SsIdParamSet_t SsIdParamSet;
+ /** MrvlIEtypes_SsIdParamSet_t SsIdParamSet;
* MrvlIEtypes_ChanListParamSet_t ChanListParamSet;
- * MrvlIEtypes_RatesParamSet_t OpRateSet;
+ * MrvlIEtypes_RatesParamSet_t OpRateSet;
*/
} MLAN_PACK_END HostCmd_DS_802_11_SCAN;
@@ -2995,15 +2995,15 @@ typedef MLAN_PACK_START struct
/**
* @brief Firmware command structure to retrieve the firmware WMM status.
*
- * Used to retrieve the status of each WMM AC Queue in TLV
+ * Used to retrieve the status of each WMM AC Queue in TLV
* format (MrvlIEtypes_WmmQueueStatus_t) as well as the current WMM
- * parameter IE advertised by the AP.
- *
+ * parameter IE advertised by the AP.
+ *
* Used in response to a EVENT_WMM_STATUS_CHANGE event signaling
* a QOS change on one of the ACs or a change in the WMM Parameter in
* the Beacon.
*
- * TLV based command, byte arrays used for max sizing purpose. There are no
+ * TLV based command, byte arrays used for max sizing purpose. There are no
* arguments sent in the command, the TLVs are returned by the firmware.
*/
typedef MLAN_PACK_START struct
@@ -3051,7 +3051,7 @@ typedef MLAN_PACK_START struct
mlan_wmm_ac_e access_category; /**< WMM_AC_BK(0) to WMM_AC_VO(3) */
/** @brief MSDU lifetime expiry per 802.11e
*
- * - Ignored if 0 on a set command
+ * - Ignored if 0 on a set command
* - Set to the 802.11e specified 500 TUs when defaulted
*/
t_u16 msdu_lifetime_expiry;
@@ -3334,7 +3334,7 @@ typedef MLAN_PACK_START struct _MrvlIEtypes_Cipher_t
t_u8 group_cipher;
} MLAN_PACK_END MrvlIEtypes_Cipher_t;
-/* rsnMode -
+/* rsnMode -
* Bit 0 : No RSN
* Bit 1-2 : RFU
* Bit 3 : WPA
@@ -4196,8 +4196,8 @@ typedef MLAN_PACK_START struct
t_u8 switch_count; /**< Number of TBTTs until the switch is to occur */
} MLAN_PACK_END HostCmd_DS_802_11_CHAN_SW_ANN;
-/**
- * @brief Enumeration of measurement types, including max supported
+/**
+ * @brief Enumeration of measurement types, including max supported
* enum for 11h/11k
*/
typedef MLAN_PACK_START enum _MeasType_t
@@ -4208,7 +4208,7 @@ typedef MLAN_PACK_START enum _MeasType_t
} MLAN_PACK_END MeasType_t;
-/**
+/**
* @brief Mode octet of the measurement request element (7.3.2.21)
*/
typedef MLAN_PACK_START struct
@@ -4231,7 +4231,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasReqMode_t;
-/**
+/**
* @brief Common measurement request structure (7.3.2.21.1 to 7.3.2.21.3)
*/
typedef MLAN_PACK_START struct
@@ -4242,23 +4242,23 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasReqCommonFormat_t;
-/**
+/**
* @brief Basic measurement request structure (7.3.2.21.1)
*/
typedef MeasReqCommonFormat_t MeasReqBasic_t;
-/**
+/**
* @brief CCA measurement request structure (7.3.2.21.2)
*/
typedef MeasReqCommonFormat_t MeasReqCCA_t;
-/**
+/**
* @brief RPI measurement request structure (7.3.2.21.3)
*/
typedef MeasReqCommonFormat_t MeasReqRPI_t;
-/**
- * @brief Union of the availble measurement request types. Passed in the
+/**
+ * @brief Union of the availble measurement request types. Passed in the
* driver/firmware interface.
*/
typedef union
@@ -4269,7 +4269,7 @@ typedef union
} MeasRequest_t;
-/**
+/**
* @brief Mode octet of the measurement report element (7.3.2.22)
*/
typedef MLAN_PACK_START struct
@@ -4288,7 +4288,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptMode_t;
-/**
+/**
* @brief Basic measurement report (7.3.2.22.1)
*/
typedef MLAN_PACK_START struct
@@ -4300,7 +4300,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptBasic_t;
-/**
+/**
* @brief CCA measurement report (7.3.2.22.2)
*/
typedef MLAN_PACK_START struct
@@ -4312,7 +4312,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptCCA_t;
-/**
+/**
* @brief RPI measurement report (7.3.2.22.3)
*/
typedef MLAN_PACK_START struct
@@ -4324,8 +4324,8 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END MeasRptRPI_t;
-/**
- * @brief Union of the availble measurement report types. Passed in the
+/**
+ * @brief Union of the availble measurement report types. Passed in the
* driver/firmware interface.
*/
typedef union
@@ -4336,7 +4336,7 @@ typedef union
} MeasReport_t;
-/**
+/**
* @brief Structure passed to firmware to perform a measurement
*/
typedef MLAN_PACK_START struct
@@ -4349,7 +4349,7 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END HostCmd_DS_MEASUREMENT_REQUEST;
-/**
+/**
* @brief Structure passed back from firmware with a measurement report,
* also can be to send a measurement report to another STA
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_ieee.h b/drivers/net/wireless/sd8797/mlan/mlan_ieee.h
index 923a38056800..9473c498b973 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_ieee.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_ieee.h
@@ -456,7 +456,7 @@ typedef MLAN_PACK_START struct _IEEEtypes_WmmInfo_t
/**
* WMM Info IE - Vendor Specific Header:
* element_id [221/0xdd]
- * Len [7]
+ * Len [7]
* Oui [00:50:f2]
* OuiType [2]
* OuiSubType [0]
@@ -475,7 +475,7 @@ typedef MLAN_PACK_START struct _IEEEtypes_WmmParameter_t
/**
* WMM Parameter IE - Vendor Specific Header:
* element_id [221/0xdd]
- * Len [24]
+ * Len [24]
* Oui [00:50:f2]
* OuiType [2]
* OuiSubType [1]
@@ -543,8 +543,8 @@ typedef MLAN_PACK_START struct
IEEEtypes_WMM_TSPEC_TS_Info_PSB_e PowerSaveBehavior:1; // !
// Legacy/Trigg
t_u8 Aggregation:1; // ! Reserved
- t_u8 AccessPolicy2:1; // !
- t_u8 AccessPolicy1:1; // !
+ t_u8 AccessPolicy2:1; // !
+ t_u8 AccessPolicy1:1; // !
IEEEtypes_WMM_TSPEC_TS_Info_Direction_e Direction:2;
t_u8 TID:4; // ! Unique identifier
IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e TrafficType:1;
@@ -552,8 +552,8 @@ typedef MLAN_PACK_START struct
IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e TrafficType:1;
t_u8 TID:4; // ! Unique identifier
IEEEtypes_WMM_TSPEC_TS_Info_Direction_e Direction:2;
- t_u8 AccessPolicy1:1; // !
- t_u8 AccessPolicy2:1; // !
+ t_u8 AccessPolicy1:1; // !
+ t_u8 AccessPolicy2:1; // !
t_u8 Aggregation:1; // ! Reserved
IEEEtypes_WMM_TSPEC_TS_Info_PSB_e PowerSaveBehavior:1; // !
// Legacy/Trigg
@@ -903,8 +903,8 @@ typedef MLAN_PACK_START struct
} MLAN_PACK_END IEEEtypes_TPCReport_t;
/* IEEE Supported Channel sub-band description (7.3.2.19) */
-/**
- * Sub-band description used in the supported channels element.
+/**
+ * Sub-band description used in the supported channels element.
*/
typedef MLAN_PACK_START struct
{
@@ -932,7 +932,7 @@ typedef MLAN_PACK_START struct
/**
* Provided in beacons and probe responses. Used to advertise when
* and to which channel it is changing to. Only starting STAs in
- * an IBSS and APs are allowed to originate a chan switch element.
+ * an IBSS and APs are allowed to originate a chan switch element.
*/
typedef MLAN_PACK_START struct
{
@@ -946,9 +946,9 @@ typedef MLAN_PACK_START struct
/* IEEE Quiet Period Element (7.3.2.23) */
/**
- * Provided in beacons and probe responses. Indicates times during
+ * Provided in beacons and probe responses. Indicates times during
* which the STA should not be transmitting data. Only starting STAs in
- * an IBSS and APs are allowed to originate a quiet element.
+ * an IBSS and APs are allowed to originate a quiet element.
*/
typedef MLAN_PACK_START struct
{
@@ -986,8 +986,8 @@ typedef MLAN_PACK_START struct
/* IEEE DFS Channel Map field (7.3.2.24) */
/**
- * Used to list supported channels and provide a octet "map" field which
- * contains a basic measurement report for that channel in the
+ * Used to list supported channels and provide a octet "map" field which
+ * contains a basic measurement report for that channel in the
* IEEEtypes_IBSS_DFS_t element
*/
typedef MLAN_PACK_START struct
@@ -999,7 +999,7 @@ typedef MLAN_PACK_START struct
/* IEEE IBSS DFS Element (7.3.2.24) */
/**
- * IBSS DFS element included in ad hoc beacons and probe responses.
+ * IBSS DFS element included in ad hoc beacons and probe responses.
* Provides information regarding the IBSS DFS Owner as well as the
* originating STAs supported channels and basic measurement results.
*/
@@ -1018,7 +1018,7 @@ typedef MLAN_PACK_START struct
/* 802.11h BSS information kept for each BSSID received in scan results */
/**
* IEEE BSS information needed from scan results for later processing in
- * join commands
+ * join commands
*/
typedef struct
{
@@ -1048,7 +1048,7 @@ typedef struct
/**
* IOCTL SSID List sub-structure sent in wlan_ioctl_user_scan_cfg
- *
+ *
* Used to specify SSID specific filters as well as SSID pattern matching
* filters for scan result processing in firmware.
*/
@@ -1083,7 +1083,7 @@ typedef MLAN_PACK_START struct _wlan_user_scan_chan
/**
* Input structure to configure an immediate scan cmd to firmware
*
- * Specifies a number of parameters to be used in general for the scan
+ * Specifies a number of parameters to be used in general for the scan
* as well as a channel list (wlan_user_scan_chan) for each scan period
* desired.
*/
@@ -1104,7 +1104,7 @@ typedef MLAN_PACK_START struct
*
* - MLAN_SCAN_MODE_BSS (infrastructure)
* - MLAN_SCAN_MODE_IBSS (adhoc)
- * - MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
+ * - MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
*/
t_u8 bss_mode;
/**
@@ -1158,10 +1158,10 @@ typedef MLAN_PACK_START struct
t_u16 action;
/** enable/disable */
t_u8 enable;
- /** BSS type:
+ /** BSS type:
* MLAN_SCAN_MODE_BSS (infrastructure)
* MLAN_SCAN_MODE_IBSS (adhoc)
- * MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
+ * MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
*/
t_u8 bss_type;
/** number of channel scanned during each scan */
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_init.c b/drivers/net/wireless/sd8797/mlan/mlan_init.c
index e949502e7d69..563f74cd3980 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_init.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_init.c
@@ -48,7 +48,7 @@ Change log:
/**
* @brief This function adds a BSS priority table
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -92,7 +92,7 @@ wlan_add_bsspriotbl(pmlan_private priv)
/**
* @brief This function deletes the BSS priority table
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return N/A
@@ -147,10 +147,10 @@ wlan_delete_bsspriotbl(pmlan_private priv)
Global Functions
********************************************************/
-/**
+/**
* @brief This function allocates buffer for the members of adapter
* structure like command buffer and BSSID list.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -234,7 +234,7 @@ wlan_allocate_adapter(pmlan_adapter pmadapter)
/**
* @brief This function initializes the private structure
* and sets default values to the members of mlan_private.
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -354,7 +354,7 @@ wlan_init_priv(pmlan_private priv)
/**
* @brief This function initializes the adapter structure
* and sets default values to the members of adapter.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -571,9 +571,9 @@ wlan_init_adapter(pmlan_adapter pmadapter)
}
/**
- * @brief This function intializes the lock variables and
+ * @brief This function intializes the lock variables and
* the list heads.
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS -- on success,
@@ -698,10 +698,10 @@ wlan_init_lock_list(IN pmlan_adapter pmadapter)
/**
* @brief This function releases the lock variables
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
- * @return None
+ * @return None
*
*/
t_void
@@ -793,7 +793,7 @@ wlan_free_lock_list(IN pmlan_adapter pmadapter)
/**
* @brief This function intializes the timers
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS -- on success,
@@ -822,10 +822,10 @@ wlan_init_timer(IN pmlan_adapter pmadapter)
/**
* @brief This function releases the timers
- *
+ *
* @param pmadapter A pointer to a mlan_adapter structure
*
- * @return None
+ * @return None
*
*/
t_void
@@ -903,9 +903,9 @@ wlan_init_fw(IN pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function frees the structure of adapter
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return N/A
@@ -965,9 +965,9 @@ wlan_free_adapter(pmlan_adapter pmadapter)
return;
}
-/**
+/**
* @brief This function frees the structure of priv
- *
+ *
* @param pmpriv A pointer to mlan_private structure
*
* @return N/A
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h b/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h
index b947ce09675b..15e88e631067 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_ioctl.h
@@ -335,7 +335,7 @@ typedef struct _wlan_ioctl_get_scan_table_entry
*/
wlan_get_scan_table_fixed fixed_fields;
- /*
+ /*
* Probe response or beacon scanned for the BSS.
*
* Field layout:
@@ -832,7 +832,7 @@ typedef struct _mlan_uap_bss_param
wpa_param wpa_cfg;
/** Mgmt IE passthru mask */
t_u32 mgmt_ie_passthru_mask;
- /*
+ /*
* 11n HT Cap HTCap_t ht_cap
*/
/** HT Capabilities Info field */
@@ -1162,7 +1162,7 @@ typedef struct _mlan_ds_uap_stats
typedef struct _mlan_ds_get_signal
{
/** Selector of get operation */
- /*
+ /*
* Bit0: Last Beacon RSSI, Bit1: Average Beacon RSSI,
* Bit2: Last Data RSSI, Bit3: Average Data RSSI,
* Bit4: Last Beacon SNR, Bit5: Average Beacon SNR,
@@ -1826,7 +1826,7 @@ typedef struct _mlan_ds_hs_cfg
/** Bit0: broadcast data
* Bit1: unicast data
* Bit2: mac event
- * Bit3: multicast data
+ * Bit3: multicast data
*/
t_u32 conditions;
/** GPIO pin or 0xff for interface */
@@ -2057,7 +2057,7 @@ typedef struct _mlan_ds_pm_cfg
/**
* @brief IOCTL structure to send an ADDTS request and retrieve the response.
*
- * IOCTL structure from the application layer relayed to firmware to
+ * IOCTL structure from the application layer relayed to firmware to
* instigate an ADDTS management frame with an appropriate TSPEC IE as well
* as any additional IEs appended in the ADDTS Action frame.
*
@@ -2078,7 +2078,7 @@ typedef struct
/**
* @brief IOCTL structure to send a DELTS request.
*
- * IOCTL structure from the application layer relayed to firmware to
+ * IOCTL structure from the application layer relayed to firmware to
* instigate an DELTS management frame with an appropriate TSPEC IE.
*
* @sa woal_wmm_delts_req_ioctl
@@ -2094,7 +2094,7 @@ typedef struct
/**
* @brief IOCTL structure to configure a specific AC Queue's parameters
*
- * IOCTL structure from the application layer relayed to firmware to
+ * IOCTL structure from the application layer relayed to firmware to
* get, set, or default the WMM AC queue parameters.
*
* - msdu_lifetime_expiry is ignored if set to 0 on a set command
@@ -2151,7 +2151,7 @@ typedef struct
/** Type definition of mlan_ds_wmm_queue_stats for MLAN_OID_WMM_CFG_QUEUE_STATS */
mlan_ds_wmm_queue_stats, *pmlan_ds_wmm_queue_stats;
-/**
+/**
* @brief IOCTL sub structure for a specific WMM AC Status
*/
typedef struct
@@ -2428,7 +2428,7 @@ typedef struct _mlan_ds_11n_tx_bf_cfg
} body;
} mlan_ds_11n_tx_bf_cfg, *pmlan_ds_11n_tx_bf_cfg;
-/** Type definition of mlan_ds_11n_amsdu_aggr_ctrl for
+/** Type definition of mlan_ds_11n_amsdu_aggr_ctrl for
* MLAN_OID_11N_AMSDU_AGGR_CTRL*/
typedef struct _mlan_ds_11n_amsdu_aggr_ctrl
{
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_join.c b/drivers/net/wireless/sd8797/mlan/mlan_join.c
index c997a6f804ee..1399ae8b3c16 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_join.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_join.c
@@ -54,7 +54,7 @@ Change log:
/**
* @brief Append a generic IE as a pass through TLV to a TLV buffer.
*
- * This function is called from the network join command prep. routine.
+ * This function is called from the network join command prep. routine.
* If the IE buffer has been setup by the application, this routine appends
* the buffer as a pass through TLV type to the request.
*
@@ -81,7 +81,7 @@ wlan_cmd_append_generic_ie(mlan_private * priv, t_u8 ** ppbuffer)
return 0;
}
- /*
+ /*
* If there is a generic ie buffer setup, append it to the return
* parameter buffer pointer.
*/
@@ -117,21 +117,21 @@ wlan_cmd_append_generic_ie(mlan_private * priv, t_u8 ** ppbuffer)
/**
* @brief Append TSF tracking info from the scan table for the target AP
- *
- * This function is called from the network join command prep. routine.
+ *
+ * This function is called from the network join command prep. routine.
* The TSF table TSF sent to the firmware contains two TSF values:
* - the TSF of the target AP from its previous beacon/probe response
* - the TSF timestamp of our local MAC at the time we observed the
* beacon/probe response.
- *
+ *
* The firmware uses the timestamp values to set an initial TSF value
* in the MAC for the new association after a reassociation attempt.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param ppbuffer A pointer to command buffer pointer
* @param pbss_desc A pointer to the BSS Descriptor from the scan table of
* the AP we are trying to join
- *
+ *
* @return bytes added to the buffer
*/
static int
@@ -337,9 +337,9 @@ wlan_update_tsf_timestamps(IN mlan_private * pmpriv,
}
/**
- * @brief Append a wapi IE
+ * @brief Append a wapi IE
*
- * This function is called from the network join command prep. routine.
+ * This function is called from the network join command prep. routine.
* If the IE buffer has been setup by the application, this routine appends
* the buffer as a wapi TLV type to the request.
*
@@ -366,7 +366,7 @@ wlan_cmd_append_wapi_ie(mlan_private * priv, t_u8 ** ppBuffer)
return 0;
}
- /*
+ /*
* If there is a wapi ie buffer setup, append it to the return
* parameter buffer pointer.
*/
@@ -404,7 +404,7 @@ wlan_cmd_append_wapi_ie(mlan_private * priv, t_u8 ** ppBuffer)
*
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
- * @param pdata_buf A pointer cast of BSSDescriptor_t from the
+ * @param pdata_buf A pointer cast of BSSDescriptor_t from the
* scan table to assoc
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -539,9 +539,9 @@ wlan_cmd_802_11_associate(IN mlan_private * pmpriv,
if (!pmpriv->wps.session_enable) {
if ((pmpriv->sec_info.wpa_enabled || pmpriv->sec_info.wpa2_enabled)) {
prsn_ie_tlv = (MrvlIEtypes_RsnParamSet_t *) pos;
- prsn_ie_tlv->header.type = (t_u16) pmpriv->wpa_ie[0]; /* WPA_IE
+ prsn_ie_tlv->header.type = (t_u16) pmpriv->wpa_ie[0]; /* WPA_IE
or
- RSN_IE
+ RSN_IE
*/
prsn_ie_tlv->header.type = prsn_ie_tlv->header.type & 0x00FF;
prsn_ie_tlv->header.type =
@@ -638,7 +638,7 @@ wlan_cmd_802_11_associate(IN mlan_private * pmpriv,
goto done;
}
- /*
+ /*
* Call 11h join API after capability bits are set so adhoc/infra 11h
* behavior can be properly triggered. pos modified if data is appended
*/
@@ -717,7 +717,7 @@ wlan_cmd_802_11_associate(IN mlan_private * pmpriv,
* .------------------------------------------------------------.
*
*
- * For cases where an association response was received, the IEEE
+ * For cases where an association response was received, the IEEE
* standard association response frame is returned:
*
* .------------------------------------------------------------.
@@ -802,7 +802,7 @@ wlan_ret_802_11_associate(IN mlan_private * pmpriv,
pmpriv->curr_bss_params.band = (t_u8) pbss_desc->bss_band;
- /*
+ /*
* Adjust the timestamps in the scan table to be relative to the newly
* associated AP's TSF
*/
@@ -959,7 +959,7 @@ wlan_cmd_802_11_ad_hoc_start(IN mlan_private * pmpriv,
pbss_desc = &pmpriv->curr_bss_params.bss_descriptor;
pmpriv->pattempted_bss_desc = pbss_desc;
- /*
+ /*
* Fill in the parameters for 2 data structures:
* 1. HostCmd_DS_802_11_AD_HOC_START command
* 2. pbss_desc
@@ -1142,7 +1142,7 @@ wlan_cmd_802_11_ad_hoc_start(IN mlan_private * pmpriv,
goto done;
}
- /*
+ /*
* Call 11h start API to add any 11h flags/elements as TLV parameters
*/
append_size_11h = wlan_11h_process_start(pmpriv, &pos, &padhoc_start->cap,
@@ -1244,7 +1244,7 @@ wlan_cmd_802_11_ad_hoc_start(IN mlan_private * pmpriv,
*
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
- * @param pdata_buf Void cast of BSSDescriptor_t from the
+ * @param pdata_buf Void cast of BSSDescriptor_t from the
* scan table to join
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1385,7 +1385,7 @@ wlan_cmd_802_11_ad_hoc_join(IN mlan_private * pmpriv,
goto done;
}
- /*
+ /*
* Call 11h join API after capability bits are set so
* adhoc/infra 11h behavior can be properly triggered.
* pos modified if data is appended
@@ -1528,7 +1528,7 @@ wlan_ret_802_11_ad_hoc(IN mlan_private * pmpriv,
pbss_desc = pmpriv->pattempted_bss_desc;
- /*
+ /*
* Join result code 0 --> SUCCESS
*/
if (result) {
@@ -1559,13 +1559,13 @@ wlan_ret_802_11_ad_hoc(IN mlan_private * pmpriv,
if (pmpriv->adapter->state_rdh.stage == RDH_RESTART_INTFS)
wlan_11h_radar_detected_callback((t_void *) pmpriv);
} else {
- /*
+ /*
* Now the join cmd should be successful.
* If BSSID has changed use SSID to compare instead of BSSID
*/
PRINTM(MINFO, "ADHOC_J_RESP %s\n", pbss_desc->ssid.ssid);
- /*
+ /*
* Make a copy of current BSSID descriptor, only needed for join since
* the current descriptor is already being used for adhoc start
*/
@@ -1670,7 +1670,7 @@ wlan_adhoc_start(IN mlan_private * pmpriv,
ENTER();
- /*
+ /*
* If the report indicates no measurement was done, leave the default
* return value alone.
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_main.h b/drivers/net/wireless/sd8797/mlan/mlan_main.h
index 1a0a4e1d1871..fb15c7226c38 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_main.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_main.h
@@ -1034,7 +1034,7 @@ typedef struct _mlan_private
t_u32 assoc_rsp_size;
/** Generic IEEE IEs passed from the application to be inserted into the
- * association request to firmware
+ * association request to firmware
*/
t_u8 gen_ie_buf[MRVDRV_GENIE_BUF_SIZE];
/** Length of the data stored in gen_ie_buf */
@@ -1336,8 +1336,8 @@ typedef struct
/**
* @brief Driver measurement state held in 'mlan_adapter' structure
- *
- * Used to record a measurement request that the driver is pending on
+ *
+ * Used to record a measurement request that the driver is pending on
* the result (received measurement report).
*/
typedef struct
@@ -1537,22 +1537,22 @@ typedef struct _mlan_adapter
t_u32 upld_len;
/** Upload buffer*/
t_u8 upld_buf[WLAN_UPLD_SIZE];
- /** Data sent:
+ /** Data sent:
* TRUE - Data is sent to fw, no Tx Done received
* FALSE - Tx done received for previous Tx
*/
t_u8 data_sent;
- /** CMD sent:
+ /** CMD sent:
* TRUE - CMD is sent to fw, no CMD Done received
* FALSE - CMD done received for previous CMD
*/
t_u8 cmd_sent;
- /** CMD Response received:
+ /** CMD Response received:
* TRUE - CMD is response is received from fw, and yet to process
* FALSE - No cmd response to process
*/
t_u8 cmd_resp_received;
- /** Event received:
+ /** Event received:
* TRUE - Event received from fw, and yet to process
* FALSE - No events to process
*/
@@ -2298,7 +2298,7 @@ t_u8 *wlan_get_specific_ie(pmlan_private priv, t_u8 * ie_buf, t_u8 ie_len,
/**
* @brief This function checks tx_pause flag for peer
- *
+ *
* @param priv A pointer to mlan_private
* @param ra Address of the receiver STA
*
@@ -2366,9 +2366,9 @@ mlan_status wlan_set_drvdbg(IN pmlan_adapter pmadapter,
IN pmlan_ioctl_req pioctl_req);
#endif
-/**
+/**
* @brief RA based queueing
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MTRUE or MFALSE
@@ -2376,7 +2376,7 @@ mlan_status wlan_set_drvdbg(IN pmlan_adapter pmadapter,
static INLINE t_u8
queuing_ra_based(pmlan_private priv)
{
- /*
+ /*
* Currently we assume if we are in Infra, then DA=RA. This might not be
* true in the future
*/
@@ -2387,9 +2387,9 @@ queuing_ra_based(pmlan_private priv)
return MTRUE;
}
-/**
+/**
* @brief Copy Rates
- *
+ *
* @param dest A pointer to Dest Buf
* @param pos The position for copy
* @param src A pointer to Src Buf
@@ -2411,9 +2411,9 @@ wlan_copy_rates(t_u8 * dest, t_u32 pos, t_u8 * src, int len)
return pos;
}
-/**
+/**
* @brief strlen
- *
+ *
* @param str A pointer to string
*
* @return Length of string
@@ -2481,9 +2481,9 @@ t_void wlan_delay_func(mlan_adapter * pmadapter, t_u32 delay, t_delay_unit u);
/** Get BSS number from priv */
#define GET_BSS_NUM(priv) (priv)->bss_num
-/**
+/**
* @brief This function returns priv based on the BSS num and BSS type
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param bss_num BSS number
* @param bss_type BSS type
@@ -2505,10 +2505,10 @@ wlan_get_priv_by_id(mlan_adapter * pmadapter, t_u32 bss_num, t_u32 bss_type)
return MNULL;
}
-/**
+/**
* @brief This function returns first available priv
* based on the BSS role
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param bss_role BSS role or MLAN_BSS_ROLE_ANY
*
@@ -2533,7 +2533,7 @@ wlan_get_priv(mlan_adapter * pmadapter, mlan_bss_role bss_role)
* @brief This function counts the number of occurences for a certain
* condition among privs. Which privs are checked can be configured
* via a second condition.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param count_cond Function pointer to condition to count on privs
* @param check_cond Function pointer to condition to decide whether priv
@@ -2568,7 +2568,7 @@ wlan_count_priv_cond(mlan_adapter * pmadapter,
/**
* @brief This function runs a procedure on each priv.
* Which privs it is run on can be configured via a condition.
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param operation Function pointer to produedure to operate on priv
* @param check_cond Function pointer to condition to decide whether priv
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_meas.c b/drivers/net/wireless/sd8797/mlan/mlan_meas.c
index d9da9da20756..a2a6f2f5b8a1 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_meas.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_meas.c
@@ -53,12 +53,12 @@ static const char *meas_type_str[WLAN_MEAS_NUM_TYPES] = {
Local Functions
********************************************************/
-/**
+/**
* @brief Retrieve the measurement string representation of a meas_type enum
* Used for debug display only
*
* @param meas_type Measurement type enumeration input for string lookup
- *
+ *
* @return Constant string representing measurement type
*/
static const char *
@@ -182,18 +182,18 @@ wlan_meas_dump_meas_rpt(const HostCmd_DS_MEASUREMENT_REPORT * pmeas_rpt)
/**
* @brief Retrieve a measurement report from the firmware
- *
+ *
* Callback from command processing when a measurement report is received
* from the firmware. Perform the following when a report is received:
*
* -# Debug displays the report if compiled with the appropriate flags
- * -# If we are pending on a specific measurement report token, and it
+ * -# If we are pending on a specific measurement report token, and it
* matches the received report's token, store the report and wake up
* any pending threads
*
* @param pmpriv Private driver information structure
* @param resp HostCmd_DS_COMMAND struct returned from the firmware command
- * passing a HostCmd_DS_MEASUREMENT_REPORT structure.
+ * passing a HostCmd_DS_MEASUREMENT_REPORT structure.
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -212,8 +212,8 @@ wlan_meas_cmdresp_get_report(mlan_private * pmpriv,
/* Debug displays the measurement report */
wlan_meas_dump_meas_rpt(pmeas_rpt);
- /*
- * Check if we are pending on a measurement report and it matches
+ /*
+ * Check if we are pending on a measurement report and it matches
* the dialog token of the received report:
*/
if (pmadapter->state_meas.meas_rpt_pend_on
@@ -228,7 +228,7 @@ wlan_meas_cmdresp_get_report(mlan_private * pmpriv,
memcpy(pmadapter, &pmadapter->state_meas.meas_rpt_returned, pmeas_rpt,
sizeof(pmadapter->state_meas.meas_rpt_returned));
- /*
+ /*
* Wake up any threads pending on the wait queue
*/
wlan_recv_event(pmpriv, MLAN_EVENT_ID_DRV_MEAS_REPORT, MNULL);
@@ -243,7 +243,7 @@ wlan_meas_cmdresp_get_report(mlan_private * pmpriv,
* @brief Prepare CMD_MEASURMENT_REPORT firmware command
*
* @param pmpriv Private driver information structure
- * @param pcmd_ptr Output parameter: Pointer to the command being prepared
+ * @param pcmd_ptr Output parameter: Pointer to the command being prepared
* for the firmware
* @param pinfo_buf HostCmd_DS_MEASUREMENT_REQUEST passed as void data block
*
@@ -278,13 +278,13 @@ wlan_meas_cmd_request(mlan_private * pmpriv,
/**
* @brief Retrieve a measurement report from the firmware
*
- * The firmware will send a EVENT_MEAS_REPORT_RDY event when it
+ * The firmware will send a EVENT_MEAS_REPORT_RDY event when it
* completes or receives a measurement report. The event response
* handler will then start a HostCmd_CMD_MEASUREMENT_REPORT firmware command
* which gets completed for transmission to the firmware in this routine.
*
* @param pmpriv Private driver information structure
- * @param pcmd_ptr Output parameter: Pointer to the command being prepared
+ * @param pcmd_ptr Output parameter: Pointer to the command being prepared
* for the firmware
*
* @return MLAN_STATUS_SUCCESS
@@ -300,7 +300,7 @@ wlan_meas_cmd_get_report(mlan_private * pmpriv, HostCmd_DS_COMMAND * pcmd_ptr)
memset(pmpriv->adapter, &pcmd_ptr->params.meas_rpt, 0x00,
sizeof(pcmd_ptr->params.meas_rpt));
- /*
+ /*
* Set the meas_rpt.mac_addr to our mac address to get a meas report,
* setting the mac to another STA address instructs the firmware
* to transmit this measurement report frame instead
@@ -317,16 +317,16 @@ wlan_meas_cmd_get_report(mlan_private * pmpriv, HostCmd_DS_COMMAND * pcmd_ptr)
Global functions
********************************************************/
-/**
+/**
* @brief Send the input measurement request to the firmware.
*
* If the dialog token in the measurement request is set to 0, the function
* will use an local static auto-incremented token in the measurement
* request. This ensures the dialog token is always set.
*
- * If wait_for_resp_timeout is set, the function will block its return on
+ * If wait_for_resp_timeout is set, the function will block its return on
* a timeout or returned measurement report that matches the requests
- * dialog token.
+ * dialog token.
*
* @param pmpriv Private driver information structure
* @param pmeas_req Pointer to the measurement request to send
@@ -362,11 +362,11 @@ wlan_meas_util_send_req(mlan_private * pmpriv,
pmeas_req->dialog_token = (pmeas_req->dialog_token ?
pmeas_req->dialog_token : 1);
- /*
+ /*
* If the request is to pend waiting for the result, set the dialog token
* of this measurement request in the state structure. The measurement
* report handling routines can then check the incoming measurement
- * reports for a match with this dialog token.
+ * reports for a match with this dialog token.
*/
if (wait_for_resp_timeout) {
pmeas_state->meas_rpt_pend_on = pmeas_req->dialog_token;
@@ -393,7 +393,7 @@ wlan_meas_util_send_req(mlan_private * pmpriv,
* - HostCmd_CMD_MEASUREMENT_REPORT
*
* @param pmpriv Private driver information structure
- * @param pcmd_ptr Output parameter: Pointer to the command being prepared
+ * @param pcmd_ptr Output parameter: Pointer to the command being prepared
* for the firmware
* @param pinfo_buf Void buffer passthrough with data necessary for a
* specific command type
@@ -426,7 +426,7 @@ wlan_meas_cmd_process(mlan_private * pmpriv,
}
/**
- * @brief Handle the command response from the firmware for a measurement
+ * @brief Handle the command response from the firmware for a measurement
* command
*
* Use the Command field to determine if the command response being
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_misc.c b/drivers/net/wireless/sd8797/mlan/mlan_misc.c
index 4054950f58f0..929a38ab33f6 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_misc.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_misc.c
@@ -66,7 +66,7 @@ extern t_u8 ac_to_tid[4][2];
* @param pmpriv A pointer to mlan_private structure
* @param idx index to check for in use
*
- * @return MLAN_STATUS_SUCCESS --unused, otherwise used.
+ * @return MLAN_STATUS_SUCCESS --unused, otherwise used.
*/
static mlan_status
wlan_is_custom_ie_index_unused(IN pmlan_private pmpriv, IN t_u16 idx)
@@ -150,7 +150,7 @@ wlan_custom_ioctl_get_autoidx(IN pmlan_private pmpriv,
if (!insert) {
for (index = 0; index < pmpriv->adapter->max_mgmt_ie_index; index++) {
if (pmpriv->mgmt_ie[index].ie_length == 0) {
- /*
+ /*
* Check if this index is in use by other interface
* If yes, move ahead to next index
*/
@@ -255,7 +255,7 @@ wlan_custom_ioctl_auto_delete(IN pmlan_private pmpriv,
Global Functions
********************************************************/
-/**
+/**
* @brief send host cmd
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -334,7 +334,7 @@ wlan_misc_ioctl_init_shutdown(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get debug information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -585,7 +585,7 @@ wlan_pm_reset_card(IN pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief Set/Get HS configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -662,13 +662,13 @@ wlan_pm_ioctl_hscfg(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief This function allocates a mlan_buffer.
*
* @param pmadapter Pointer to mlan_adapter
* @param data_len Data length
* @param head_room head_room reserved in mlan_buffer
- * @param malloc_flag flag to user moal_malloc
+ * @param malloc_flag flag to user moal_malloc
* @return mlan_buffer pointer or MNULL
*/
pmlan_buffer
@@ -729,7 +729,7 @@ wlan_alloc_mlan_buffer(mlan_adapter * pmadapter, t_u32 data_len,
return pmbuf;
}
-/**
+/**
* @brief This function frees a mlan_buffer.
*
* @param pmadapter Pointer to mlan_adapter
@@ -754,9 +754,9 @@ wlan_free_mlan_buffer(mlan_adapter * pmadapter, pmlan_buffer pmbuf)
return;
}
-/**
+/**
* @brief Delay function implementation
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param delay Delay value
* @param u Units of delay (sec, msec or usec)
@@ -816,7 +816,7 @@ wlan_delay_func(mlan_adapter * pmadapter, t_u32 delay, t_delay_unit u)
}
#if defined(STA_SUPPORT) && defined(UAP_SUPPORT)
-/**
+/**
* @brief Set/Get BSS role
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1047,7 +1047,7 @@ wlan_misc_ioctl_custom_ie_list(IN pmlan_adapter pmadapter,
pmpriv->mgmt_ie[index].ie_length +
MLAN_CUSTOM_IE_HDR_SIZE);
} else {
- /*
+ /*
* Check if this index is being used on any other
* interfaces. If yes, then the request needs to be rejected.
*/
@@ -1119,7 +1119,7 @@ wlan_misc_ioctl_custom_ie_list(IN pmlan_adapter pmadapter,
/**
* @brief This function will check if station list is empty
- *
+ *
* @param priv A pointer to mlan_private
*
* @return MFALSE/MTRUE
@@ -1142,7 +1142,7 @@ wlan_is_station_list_empty(mlan_private * priv)
/**
* @brief This function will return the pointer to station entry in station list
* table which matches the give mac address
- *
+ *
* @param priv A pointer to mlan_private
* @param mac mac address to find in station list table
*
@@ -1183,7 +1183,7 @@ wlan_get_station_entry(mlan_private * priv, t_u8 * mac)
/**
* @brief This function will add a pointer to station entry in station list
* table with the give mac address, if it does not exist already
- *
+ *
* @param priv A pointer to mlan_private
* @param mac mac address to find in station list table
*
@@ -1224,10 +1224,10 @@ wlan_add_station_entry(mlan_private * priv, t_u8 * mac)
/**
* @brief This function will delete a station entry from station list
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
- * @param mac station's mac address
+ * @param mac station's mac address
*
* @return N/A
*/
@@ -1283,7 +1283,7 @@ wlan_delete_station_list(pmlan_private priv)
/**
* @brief This function will return the pointer to station entry in station list
* table which in tx_pause state
- *
+ *
* @param priv A pointer to mlan_private
*
* @return A pointer to structure sta_node
@@ -1315,7 +1315,7 @@ wlan_get_tx_pause_station_entry(mlan_private * priv)
return MNULL;
}
-/**
+/**
* @brief Get extended version information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1348,7 +1348,7 @@ wlan_get_info_ver_ext(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
}
#ifdef DEBUG_LEVEL1
-/**
+/**
* @brief Set driver debug bit masks in order to enhance performance
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1372,7 +1372,7 @@ wlan_set_drvdbg(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
}
#endif
-/**
+/**
* @brief Rx mgmt frame forward register
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1409,7 +1409,7 @@ wlan_reg_rx_mgmt_ind(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
/**
* @brief This function processes the 802.11 mgmt Frame
- *
+ *
* @param priv A pointer to mlan_private
* @param payload A pointer to the received buffer
* @param payload_len Length of the received buffer
@@ -1497,8 +1497,8 @@ wlan_process_802dot11_mgmt_pkt(IN mlan_private * priv,
/**
* @brief This function will search for the specific ie
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param ie_buf A pointer to ie_buf
* @param ie_len total ie length
@@ -1582,7 +1582,7 @@ wlan_get_pm_info(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get radio status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1632,7 +1632,7 @@ wlan_radio_ioctl_radio_ctl(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get antenna configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1693,7 +1693,7 @@ wlan_radio_ioctl_ant_cfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get rate value
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1754,7 +1754,7 @@ wlan_rate_ioctl_get_rate_value(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set rate value
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1839,7 +1839,7 @@ wlan_rate_ioctl_set_rate_value(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get rate index
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1868,7 +1868,7 @@ wlan_rate_ioctl_get_rate_index(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set rate index
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1963,7 +1963,7 @@ wlan_rate_ioctl_set_rate_index(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Rate configuration command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1996,9 +1996,9 @@ wlan_rate_ioctl_cfg(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief This function prepares command of rf_antenna.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -2071,7 +2071,7 @@ wlan_ret_802_11_rf_antenna(IN pmlan_private pmpriv,
}
#ifdef WIFI_DIRECT_SUPPORT
-/**
+/**
* @brief Set/Get wifi_direct_mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2111,7 +2111,7 @@ wlan_bss_ioctl_wifi_direct_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get remain on channel setting
*
* @param pmadapter A pointer to mlan_adapter structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_scan.c b/drivers/net/wireless/sd8797/mlan/mlan_scan.c
index 6123365422c7..2c4eadf04a2e 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_scan.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_scan.c
@@ -115,7 +115,7 @@ static t_u8 rsn_oui[CIPHER_SUITE_MAX][4] = {
/**
* @brief This function will parse a given IE for a given OUI
*
- * Parse a given WPA/RSN IE to find if it has a given oui in PTK,
+ * Parse a given WPA/RSN IE to find if it has a given oui in PTK,
* if no OUI found for PTK it returns 0.
*
* @param pbss_desc A pointer to current BSS descriptor
@@ -129,7 +129,7 @@ search_oui_in_ie(mlan_adapter * pmadapter, IEBody * ie_body, t_u8 * oui)
count = ie_body->PtkCnt[0];
ENTER();
- /* There could be multiple OUIs for PTK hence 1) Take the length. 2) Check
+ /* There could be multiple OUIs for PTK hence 1) Take the length. 2) Check
all the OUIs for AES. 3) If one of them is AES then pass success. */
while (count) {
if (!memcmp(pmadapter, ie_body->PtkBody, oui, sizeof(ie_body->PtkBody))) {
@@ -214,13 +214,13 @@ is_wpa_oui_present(mlan_adapter * pmadapter, BSSDescriptor_t * pbss_desc,
}
/**
- * @brief compare config band and a band from the scan result,
+ * @brief compare config band and a band from the scan result,
* which is defined by functiion radio_type_to_band(t_u8 radio_type) above
*
* @param cfg_band: band configured
* scan_band: band from scan result
*
- * @return matched: non-zero. unmatched: 0
+ * @return matched: non-zero. unmatched: 0
*
*/
static t_u8
@@ -296,7 +296,7 @@ wlan_find_best_network_in_list(IN mlan_private * pmpriv)
* @param puser_scan_in MNULL or pointer to scan configuration parameters
* @param pscan_chan_list Output parameter: Resulting channel list to scan
* @param filtered_scan Flag indicating whether or not a BSSID or SSID filter
- * is being sent in the command to firmware. Used to
+ * is being sent in the command to firmware. Used to
* increase the number of channels sent in a scan
* command and to disable the firmware channel scan
* filter.
@@ -350,7 +350,7 @@ wlan_scan_create_channel_list(IN mlan_private * pmpriv,
continue;
for (next_chan = 0;
next_chan < pscan_region->num_cfp; next_chan++, chan_idx++) {
- /* Set the default scan type to the user specified type, will later
+ /* Set the default scan type to the user specified type, will later
be changed to passive on a per channel basis if restricted by
regulatory requirements (11d or 11h) */
scan_type = pmadapter->scan_type;
@@ -513,7 +513,7 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
ptmp_chan_list = pscan_chan_list;
/* Loop through the desired channel list, sending a new firmware scan
- commands for each max_chan_per_scan channels (or for 1,6,11 individually
+ commands for each max_chan_per_scan channels (or for 1,6,11 individually
if configured accordingly) */
while (ptmp_chan_list->chan_number) {
@@ -523,7 +523,7 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
pstart_chan = ptmp_chan_list;
done_early = MFALSE;
- /*
+ /*
* Construct the Channel TLV for the scan command. Continue to
* insert channel TLVs until:
* - the tlv_idx hits the maximum configured per scan command
@@ -547,7 +547,7 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
/* Increment the TLV header length by the size appended */
pchan_tlv_out->header.len += sizeof(pchan_tlv_out->chan_scan_param);
- /*
+ /*
* The tlv buffer length is set to the number of bytes of the
* between the channel tlv pointer and the start of the
* tlv buffer. This compensates for any TLVs that were appended
@@ -651,14 +651,14 @@ wlan_scan_channel_list(IN mlan_private * pmpriv,
* @param pscan_cfg_out Output parameter: Resulting scan configuration
* @param ppchan_list_out Output parameter: Pointer to the start of the
* channel TLV portion of the output scan config
- * @param pscan_chan_list Output parameter: Pointer to the resulting
+ * @param pscan_chan_list Output parameter: Pointer to the resulting
* channel list to scan
* @param pmax_chan_per_scan Output parameter: Number of channels to scan for
* each issuance of the firmware scan command
* @param pfiltered_scan Output parameter: Flag indicating whether or not
* a BSSID or SSID filter is being sent in the
* command to firmware. Used to increase the number
- * of channels sent in a scan command and to
+ * of channels sent in a scan command and to
* disable the firmware channel scan filter.
* @param pscan_current_only Output parameter: Flag indicating whether or not
* we are only scanning our current active channel
@@ -700,7 +700,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
/* The tlv_buf_len is calculated for each scan command. The TLVs added in
this routine will be preserved since the routine that sends the command
- will append channelTLVs at *ppchan_list_out. The difference between the
+ will append channelTLVs at *ppchan_list_out. The difference between the
*ppchan_list_out and the tlv_buf start will be used to calculate the
size of anything we add in this routine. */
pscan_cfg_out->tlv_buf_len = 0;
@@ -714,7 +714,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
*pfiltered_scan = MFALSE;
/* Initialize the scan as not being only on the current channel. If the
- channel list is customized, only contains one channel, and is the active
+ channel list is customized, only contains one channel, and is the active
channel, this is set true and data flow is not halted. */
*pscan_current_only = MFALSE;
@@ -731,7 +731,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
num_probes = (puser_scan_in->num_probes ? puser_scan_in->num_probes :
pmadapter->scan_probes);
- /*
+ /*
* Set the BSSID filter to the incoming configuration,
* if non-zero. If not set, it will remain disabled (all zeros).
*/
@@ -777,7 +777,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
}
}
- /*
+ /*
* The default number of channels sent in the command is low to
* ensure the response buffer from the firmware does not truncate
* scan results. That is not an issue with an SSID or BSSID
@@ -794,8 +794,8 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
num_probes = pmadapter->scan_probes;
}
- /*
- * If a specific BSSID or SSID is used, the number of channels in the
+ /*
+ * If a specific BSSID or SSID is used, the number of channels in the
* scan command will be increased to the absolute maximum.
*/
if (*pfiltered_scan)
@@ -853,7 +853,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
wlan_add_wps_probe_request_ie(pmpriv, &ptlv_pos);
- /*
+ /*
* Set the output for the channel TLV to the address in the tlv buffer
* past any TLVs that were added in this function (SSID, num_probes).
* Channel TLVs will be added past this for each scan command, preserving
@@ -952,7 +952,7 @@ wlan_scan_setup_scan_config(IN mlan_private * pmpriv,
* @param pmadapter Pointer to the mlan_adapter structure
* @param ptlv Pointer to the start of the TLV buffer to parse
* @param tlv_buf_size Size of the TLV buffer
- * @param req_tlv_type Request TLV's type
+ * @param req_tlv_type Request TLV's type
* @param pptlv Output parameter: Pointer to the request TLV if found
*
* @return N/A
@@ -1113,7 +1113,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
pcurrent_ptr += MLAN_MAC_ADDR_LENGTH;
bytes_left_for_current_beacon -= MLAN_MAC_ADDR_LENGTH;
- /*
+ /*
* Next 4 fields are RSSI (for legacy scan only), time stamp,
* beacon interval, and capability information
*/
@@ -1125,7 +1125,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
bytes_left_for_current_beacon -= 1;
}
- /*
+ /*
* The RSSI is not part of the beacon/probe response. After we have
* advanced pcurrent_ptr past the RSSI field, save the remaining
* data for use at the application layer
@@ -1313,7 +1313,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
pcurrent_ptr);
break;
case EXTENDED_SUPPORTED_RATES:
- /*
+ /*
* Only process extended supported rate
* if data rate is already found.
* Data rate IE should come before
@@ -1359,7 +1359,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
if (total_ie_len == sizeof(IEEEtypes_WmmParameter_t)
|| total_ie_len == sizeof(IEEEtypes_WmmInfo_t)) {
- /*
+ /*
* Only accept and copy the WMM IE if it matches
* the size expected for the WMM Info IE or the
* WMM Parameter IE.
@@ -1447,7 +1447,7 @@ wlan_interpret_bss_desc_with_ie(IN pmlan_adapter pmadapter,
/**
* @brief Adjust ie's position in BSSDescriptor_t
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pbss_entry A pointer to BSSDescriptor_t structure
*
@@ -1516,19 +1516,19 @@ wlan_adjust_ie_in_bss_entry(IN mlan_private * pmpriv,
/**
* @brief Store a beacon or probe response for a BSS returned in the scan
- *
+ *
* Store a new scan response or an update for a previous scan response. New
- * entries need to verify that they do not exceed the total amount of
+ * entries need to verify that they do not exceed the total amount of
* memory allocated for the table.
- * Replacement entries need to take into consideration the amount of space
+ * Replacement entries need to take into consideration the amount of space
* currently allocated for the beacon/probe response and adjust the entry
- * as needed.
+ * as needed.
*
* A small amount of extra pad (SCAN_BEACON_ENTRY_PAD) is generally reserved
* for an entry in case it is a beacon since a probe response for the
- * network will by larger per the standard. This helps to reduce the
- * amount of memory copying to fit a new probe response into an entry
+ * network will by larger per the standard. This helps to reduce the
+ * amount of memory copying to fit a new probe response into an entry
* already occupied by a network's previously stored beacon.
*
* @param pmpriv A pointer to mlan_private structure
@@ -1569,7 +1569,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
pnew_beacon->beacon_buf_size_max = bcn_space;
if (new_bcn_size == old_bcn_size) {
- /*
+ /*
* Beacon is the same size as the previous entry.
* Replace the previous contents with the scan result
*/
@@ -1577,7 +1577,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
pnew_beacon->pbeacon_buf, pnew_beacon->beacon_buf_size);
} else if (new_bcn_size <= bcn_space) {
- /*
+ /*
* New beacon size will fit in the amount of space
* we have previously allocated for it
*/
@@ -1586,7 +1586,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
memcpy(pmadapter, pbcn_store, pnew_beacon->pbeacon_buf,
new_bcn_size);
- /*
+ /*
* If the old beacon size was less than the maximum
* we had allotted for the entry, and the new entry
* is even smaller, reset the max size to the old beacon
@@ -1594,7 +1594,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
* pad space of (old_bcn_size - new_bcn_size).
*/
if (old_bcn_size < bcn_space && new_bcn_size <= old_bcn_size) {
- /*
+ /*
* Old Beacon size is smaller than the allotted storage size.
* Shrink the allotted storage space.
*/
@@ -1604,7 +1604,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(pmadapter->bcn_buf_size -
(pmadapter->pbcn_buf_end - pmadapter->bcn_buf)));
- /*
+ /*
* memmove (since the memory overlaps) the data
* after the beacon we just stored to the end of
* the current beacon. This cleans up any unused
@@ -1616,7 +1616,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(t_u32) ((t_ptr) pmadapter->pbcn_buf_end -
((t_ptr) pbcn_store + (t_ptr) bcn_space)));
- /*
+ /*
* Decrement the end pointer by the difference between
* the old larger size and the new smaller size since
* we are using less space due to the new beacon being
@@ -1641,7 +1641,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
}
} else if (pmadapter->pbcn_buf_end + (new_bcn_size - bcn_space)
< (pmadapter->bcn_buf + pmadapter->bcn_buf_size)) {
- /*
+ /*
* Beacon is larger than space previously allocated (bcn_space)
* and there is enough space left in the beaconBuffer to store
* the additional data
@@ -1652,7 +1652,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(pmadapter->bcn_buf_size -
(pmadapter->pbcn_buf_end - pmadapter->bcn_buf)));
- /*
+ /*
* memmove (since the memory overlaps) the data
* after the beacon we just stored to the end of
* the current beacon. This moves the data for
@@ -1674,7 +1674,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
are adding */
pmadapter->pbcn_buf_end += (new_bcn_size - bcn_space);
- /*
+ /*
* This entry is bigger than the allotted max space
* previously reserved. Increase the max space to
* be equal to the new beacon size
@@ -1692,7 +1692,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
}
}
} else {
- /*
+ /*
* Beacon is larger than the previously allocated space, but
* there is not enough free space to store the additional data
*/
@@ -1769,7 +1769,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
pmadapter->bcn_buf_size += DEFAULT_SCAN_BEACON_BUFFER;
}
}
- /*
+ /*
* No existing beacon data exists for this entry, check to see
* if we can fit it in the remaining space
*/
@@ -1777,7 +1777,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
SCAN_BEACON_ENTRY_PAD < (pmadapter->bcn_buf +
pmadapter->bcn_buf_size)) {
- /*
+ /*
* Copy the beacon buffer data from the local entry to the
* adapter dev struct buffer space used to store the raw
* beacon data for each entry in the scan table
@@ -1802,7 +1802,7 @@ wlan_ret_802_11_scan_store_beacon(IN mlan_private * pmpriv,
(pmadapter->bcn_buf_size -
(pmadapter->pbcn_buf_end - pmadapter->bcn_buf)));
} else {
- /*
+ /*
* No space for new beacon
*/
PRINTM(MCMND, "AppControl: No space beacon (%d): "
@@ -1982,8 +1982,8 @@ wlan_scan_process_results(IN mlan_private * pmpriv)
(t_s32) pmadapter->pscan_table[i].rssi,
pmadapter->pscan_table[i].ssid.ssid);
- /*
- * Prepares domain info from scan table and downloads the
+ /*
+ * Prepares domain info from scan table and downloads the
* domain info command to the FW.
*/
wlan_11d_prepare_dnld_domain_info_cmd(pmpriv);
@@ -2042,9 +2042,9 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
ENTER();
- /*
+ /*
* Shift the saved beacon buffer data for the scan table back over the
- * entry being removed. Update the end of buffer pointer. Save the
+ * entry being removed. Update the end of buffer pointer. Save the
* deleted buffer allocation size for pointer adjustments for entries
* compacted after the deleted index.
*/
@@ -2057,9 +2057,9 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
if (beacon_buf_adj) {
pbeacon_buf = pmadapter->pscan_table[table_idx].pbeacon_buf;
- /*
+ /*
* Remove the entry's buffer space, decrement the table end pointer
- * by the amount we are removing
+ * by the amount we are removing
*/
pmadapter->pbcn_buf_end -= beacon_buf_adj;
@@ -2070,7 +2070,7 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
pbeacon_buf + beacon_buf_adj,
pmadapter->pbcn_buf_end - pbeacon_buf);
- /*
+ /*
* Compact data storage. Copy all data after the deleted entry's
* end address (pbeacon_buf + beacon_buf_adj) back to the original
* start address (pbeacon_buf).
@@ -2089,7 +2089,7 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
PRINTM(MINFO, "Scan: Delete Entry %d, num_in_scan_table = %d\n",
table_idx, pmadapter->num_in_scan_table);
- /* Shift all of the entries after the table_idx back by one, compacting the
+ /* Shift all of the entries after the table_idx back by one, compacting the
table and removing the requested entry */
for (del_idx = table_idx; (del_idx + 1) < pmadapter->num_in_scan_table;
del_idx++) {
@@ -2097,8 +2097,8 @@ wlan_scan_delete_table_entry(IN mlan_private * pmpriv, IN t_s32 table_idx)
memcpy(pmadapter, pmadapter->pscan_table + del_idx,
pmadapter->pscan_table + del_idx + 1, sizeof(BSSDescriptor_t));
- /*
- * Adjust this entry's pointer to its beacon buffer based on the
+ /*
+ * Adjust this entry's pointer to its beacon buffer based on the
* removed/compacted entry from the deleted index. Don't decrement
* if the buffer pointer is MNULL (no data stored for this entry).
*/
@@ -2232,7 +2232,7 @@ wlan_scan_delete_ssid_table_entry(IN mlan_private * pmpriv,
* @param index Index in scan table to check against current driver settings
* @param mode Network mode: Infrastructure or IBSS
*
- * @return Index in ScanTable, or negative value if error
+ * @return Index in ScanTable, or negative value if error
*/
t_s32
wlan_is_network_compatible(IN mlan_private * pmpriv,
@@ -2340,7 +2340,7 @@ wlan_is_network_compatible(IN mlan_private * pmpriv,
&& ((pbss_desc->pwpa_ie) &&
((*(pbss_desc->pwpa_ie)).vend_hdr.element_id == WPA_IE))
&& !pmpriv->adhoc_aes_enabled
- /*
+ /*
* Privacy bit may NOT be set in some APs like LinkSys WRT54G
* && pbss_desc->privacy
*/
@@ -2383,7 +2383,7 @@ wlan_is_network_compatible(IN mlan_private * pmpriv,
&& ((pbss_desc->prsn_ie) &&
((*(pbss_desc->prsn_ie)).ieee_hdr.element_id == RSN_IE))
&& !pmpriv->adhoc_aes_enabled
- /*
+ /*
* Privacy bit may NOT be set in some APs like LinkSys WRT54G
* && pbss_desc->privacy
*/
@@ -2484,7 +2484,7 @@ wlan_is_network_compatible(IN mlan_private * pmpriv,
*
* @param pmadapter A pointer to mlan_adapter structure
*
- * @return MLAN_STATUS_SUCCESS
+ * @return MLAN_STATUS_SUCCESS
*/
mlan_status
wlan_flush_scan_table(IN pmlan_adapter pmadapter)
@@ -2768,7 +2768,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
num_in_table = pmadapter->num_in_scan_table;
pbss_info = pscan_rsp->bss_desc_and_tlv_buffer;
- /*
+ /*
* The size of the TLV buffer is equal to the entire command response
* size (scan_resp_size) minus the fixed fields (sizeof()'s), the
* BSS Descriptions (bss_descript_size as bytesLef) and the command
@@ -2797,7 +2797,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
TLV_TYPE_CHANNELBANDLIST,
(MrvlIEtypes_Data_t **) & pchan_band_tlv);
- /*
+ /*
* Process each scan response returned (pscan_rsp->number_of_sets). Save
* the information in the bss_new_entry and then insert into the
* driver scan table either as an update to an existing entry
@@ -2830,14 +2830,14 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
bss_new_entry->mac_address[2], bss_new_entry->mac_address[3],
bss_new_entry->mac_address[4],
bss_new_entry->mac_address[5]);
- /*
+ /*
* Search the scan table for the same bssid
*/
for (bss_idx = 0; bss_idx < num_in_table; bss_idx++) {
if (!memcmp(pmadapter, bss_new_entry->mac_address,
pmadapter->pscan_table[bss_idx].mac_address,
sizeof(bss_new_entry->mac_address))) {
- /*
+ /*
* If the SSID matches as well, it is a duplicate of
* this entry. Keep the bss_idx set to this
* entry so we replace the old contents in the table
@@ -2853,7 +2853,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
}
}
}
- /*
+ /*
* If the bss_idx is equal to the number of entries in the table,
* the new entry was not a duplicate; append it to the scan
* table
@@ -2867,7 +2867,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
}
}
- /*
+ /*
* Save the beacon/probe response returned for later application
* retrieval. Duplicate beacon/probe responses are updated if
* possible
@@ -2880,7 +2880,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
num_in_table--;
continue;
}
- /*
+ /*
* If the TSF TLV was appended to the scan results, save
* this entry's TSF value in the networkTSF field. The
* networkTSF is the firmware's TSF value at the time the
@@ -2945,7 +2945,7 @@ wlan_ret_802_11_scan(IN mlan_private * pmpriv,
wlan_request_cmd_lock(pmadapter);
pmadapter->scan_processing = MFALSE;
wlan_release_cmd_lock(pmadapter);
- /*
+ /*
* Process the resulting scan table:
* - Remove any bad ssids
* - Update our current BSS information from scan data
@@ -3108,7 +3108,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
num_in_table = pmadapter->num_in_scan_table;
ptlv = (MrvlIEtypes_Data_t *) pscan_resp;
- /*
+ /*
* Process each scan response returned number_of_sets. Save
* the information in the bss_new_entry and then insert into the
* driver scan table either as an update to an existing entry
@@ -3135,7 +3135,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
pscan_rsp_tlv = MNULL;
pscan_info_tlv = MNULL;
bytes_left_for_tlv = bytes_left;
- /* BSS response TLV with beacon or probe response buffer at the initial
+ /* BSS response TLV with beacon or probe response buffer at the initial
position of each descriptor */
if (tlv_type == TLV_TYPE_BSS_SCAN_RSP) {
pbss_info = (t_u8 *) ptlv;
@@ -3197,14 +3197,14 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
bss_new_entry->mac_address[2], bss_new_entry->mac_address[3],
bss_new_entry->mac_address[4],
bss_new_entry->mac_address[5]);
- /*
+ /*
* Search the scan table for the same bssid
*/
for (bss_idx = 0; bss_idx < num_in_table; bss_idx++) {
if (!memcmp(pmadapter, bss_new_entry->mac_address,
pmadapter->pscan_table[bss_idx].mac_address,
sizeof(bss_new_entry->mac_address))) {
- /*
+ /*
* If the SSID matches as well, it is a duplicate of
* this entry. Keep the bss_idx set to this
* entry so we replace the old contents in the table
@@ -3220,7 +3220,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
}
}
}
- /*
+ /*
* If the bss_idx is equal to the number of entries in the table,
* the new entry was not a duplicate; append it to the scan
* table
@@ -3235,7 +3235,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
}
band = BAND_G;
- /*
+ /*
* If the BSS info TLV was appended to the scan results, save
* this entry's TSF value in the networkTSF field. The
* networkTSF is the firmware's TSF value at the time the
@@ -3253,7 +3253,7 @@ wlan_parse_ext_scan_result(IN mlan_private * pmpriv,
&tsf_val, sizeof(bss_new_entry->network_tsf));
band = radio_type_to_band(pscan_info_tlv->band);
}
- /*
+ /*
* Save the beacon/probe response returned for later application
* retrieval. Duplicate beacon/probe responses are updated if
* possible
@@ -3345,7 +3345,7 @@ wlan_handle_event_ext_scan_report(IN mlan_private * pmpriv,
wlan_request_cmd_lock(pmadapter);
pmadapter->scan_processing = MFALSE;
wlan_release_cmd_lock(pmadapter);
- /*
+ /*
* Process the resulting scan table:
* - Remove any bad ssids
* - Update our current BSS information from scan data
@@ -3799,9 +3799,9 @@ wlan_find_ssid_in_list(IN mlan_private * pmpriv,
PRINTM(MINFO, "Num of entries in scan table = %d\n",
pmadapter->num_in_scan_table);
- /*
+ /*
* Loop through the table until the maximum is reached or until a match
- * is found based on the bssid field comparison
+ * is found based on the bssid field comparison
*/
for (i = 0;
i < pmadapter->num_in_scan_table && (!bssid || (bssid && net < 0));
@@ -3839,9 +3839,9 @@ wlan_find_ssid_in_list(IN mlan_private * pmpriv,
break;
case MLAN_BSS_MODE_AUTO:
default:
- /*
- * Do not check compatibility if the mode requested is
- * Auto/Unknown. Allows generic find to work without
+ /*
+ * Do not check compatibility if the mode requested is
+ * Auto/Unknown. Allows generic find to work without
* verifying against the Adapter security settings
*/
if (SCAN_RSSI(pmadapter->pscan_table[i].rssi) > best_rssi) {
@@ -3884,7 +3884,7 @@ wlan_find_bssid_in_list(IN mlan_private * pmpriv,
PRINTM(MINFO, "FindBSSID: Num of BSSIDs = %d\n",
pmadapter->num_in_scan_table);
- /*
+ /*
* Look through the scan table for a compatible match. The ret return
* variable will be equal to the index in the scan table (greater
* than zero) if the network is compatible. The loop will continue
@@ -3949,9 +3949,9 @@ wlan_ssid_cmp(IN pmlan_adapter pmadapter,
return memcmp(pmadapter, ssid1->ssid, ssid2->ssid, ssid1->ssid_len);
}
-/**
+/**
* @brief This function inserts scan command node to scan_pending_q.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd_node A pointer to cmd_ctrl_node structure
* @return N/A
@@ -4086,10 +4086,10 @@ wlan_scan_specific_ssid(IN mlan_private * pmpriv,
/**
* @brief Save a beacon buffer of the current bss descriptor
- * Save the current beacon buffer to restore in the following cases that
+ * Save the current beacon buffer to restore in the following cases that
* makes the bcn_buf not to contain the current ssid's beacon buffer.
- * - the current ssid was not found somehow in the last scan.
- * - the current ssid was the last entry of the scan table and overloaded.
+ * - the current ssid was not found somehow in the last scan.
+ * - the current ssid was the last entry of the scan table and overloaded.
*
* @param pmpriv A pointer to mlan_private structure
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sdio.c b/drivers/net/wireless/sd8797/mlan/mlan_sdio.c
index 4812797c6361..0718cec12ee2 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sdio.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sdio.c
@@ -47,9 +47,9 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function initialize the SDIO port
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -112,9 +112,9 @@ wlan_sdio_init_ioport(mlan_adapter * pmadapter)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function sends data to the card.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pmbuf A pointer to mlan_buffer (pmbuf->data_len should include SDIO header)
* @param port Port
@@ -153,9 +153,9 @@ wlan_write_data_sync(mlan_adapter * pmadapter, mlan_buffer * pmbuf, t_u32 port)
return ret;
}
-/**
+/**
* @brief This function gets available SDIO port for reading cmd/data
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pport A pointer to port number
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -201,9 +201,9 @@ wlan_get_rd_port(mlan_adapter * pmadapter, t_u8 * pport)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function gets available SDIO port for writing data
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pport A pointer to port number
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -248,9 +248,9 @@ wlan_get_wr_port_data(mlan_adapter * pmadapter, t_u8 * pport)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function polls the card status register.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param bits the bit mask
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -282,9 +282,9 @@ wlan_sdio_poll_card_status(mlan_adapter * pmadapter, t_u8 bits)
return MLAN_STATUS_FAILURE;
}
-/**
+/**
* @brief This function reads firmware status registers
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param dat A pointer to keep returned data
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -316,7 +316,7 @@ wlan_sdio_read_fw_status(mlan_adapter * pmadapter, t_u16 * dat)
}
/** @brief This function disables the host interrupts mask.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mask the interrupt mask
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -352,9 +352,9 @@ wlan_sdio_disable_host_int_mask(pmlan_adapter pmadapter, t_u8 mask)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function enables the host interrupts mask
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mask the interrupt mask
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -378,9 +378,9 @@ wlan_sdio_enable_host_int_mask(pmlan_adapter pmadapter, t_u8 mask)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function reads data from the card.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param type A pointer to keep type as data or command
* @param nb A pointer to keep the data/cmd length returned in buffer
@@ -608,9 +608,9 @@ wlan_prog_fw_w_helper(IN pmlan_adapter pmadapter, IN pmlan_fw_image pmfw)
return ret;
}
-/**
+/**
* @brief This function disables the host interrupts.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -625,10 +625,10 @@ wlan_disable_host_int(pmlan_adapter pmadapter)
return ret;
}
-/**
- * @brief This function decodes the rx packet &
+/**
+ * @brief This function decodes the rx packet &
* calls corresponding handlers according to the packet type
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pmbuf A pointer to the SDIO data/cmd buffer
* @param upld_typ Type of rx packet
@@ -712,9 +712,9 @@ wlan_decode_rx_packet(mlan_adapter * pmadapter, mlan_buffer * pmbuf,
}
#ifdef SDIO_MULTI_PORT_RX_AGGR
-/**
+/**
* @brief This function receives data from the card in aggregate mode.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pmbuf A pointer to the SDIO data/cmd buffer
* @param port Current port on which packet needs to be rxed
@@ -906,9 +906,9 @@ wlan_sdio_card_to_host_mp_aggr(mlan_adapter * pmadapter, mlan_buffer
#endif
#ifdef SDIO_MULTI_PORT_TX_AGGR
-/**
+/**
* @brief This function sends data to the card in SDIO aggregated mode.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mbuf A pointer to the SDIO data/cmd buffer
* @param port current port for aggregation
@@ -1040,14 +1040,14 @@ wlan_host_to_card_mp_aggr(mlan_adapter * pmadapter, mlan_buffer * mbuf,
Global functions
********************************************************/
-/**
+/**
* @brief This function checks if the interface is ready to download
* or not while other download interface is present
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param val Winner status (0: winner)
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
- *
+ *
*/
mlan_status
wlan_check_winner_status(mlan_adapter * pmadapter, t_u32 * val)
@@ -1071,10 +1071,10 @@ wlan_check_winner_status(mlan_adapter * pmadapter, t_u32 * val)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function checks if the firmware is ready to accept
* command or not.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pollnum Maximum polling number
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -1136,9 +1136,9 @@ wlan_dnld_fw(IN pmlan_adapter pmadapter, IN pmlan_fw_image pmfw)
return ret;
}
-/**
+/**
* @brief This function probes the driver
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1150,10 +1150,10 @@ wlan_sdio_probe(pmlan_adapter pmadapter)
pmlan_callbacks pcb = &pmadapter->callbacks;
ENTER();
- /*
+ /*
* Read the HOST_INT_STATUS_REG for ACK the first interrupt got
* from the bootloader. If we don't do this we get a interrupt
- * as soon as we register the irq.
+ * as soon as we register the irq.
*/
pcb->moal_read_reg(pmadapter->pmoal_handle, HOST_INT_STATUS_REG,
&sdio_ireg);
@@ -1171,9 +1171,9 @@ wlan_sdio_probe(pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function gets interrupt status.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return N/A
*/
@@ -1202,9 +1202,9 @@ wlan_interrupt(pmlan_adapter pmadapter)
sdio_ireg = pmadapter->mp_regs[HOST_INT_STATUS_REG];
pmadapter->dbg.last_int_status = pmadapter->sdio_ireg | sdio_ireg;
if (sdio_ireg) {
- /*
+ /*
* DN_LD_HOST_INT_STATUS and/or UP_LD_HOST_INT_STATUS
- * DN_LD_CMD_PORT_HOST_INT_STATUS and/or
+ * DN_LD_CMD_PORT_HOST_INT_STATUS and/or
* UP_LD_CMD_PORT_HOST_INT_STATUS
* Clear the interrupt status register
*/
@@ -1219,9 +1219,9 @@ wlan_interrupt(pmlan_adapter pmadapter)
LEAVE();
}
-/**
+/**
* @brief This function enables the host interrupts.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1236,9 +1236,9 @@ wlan_enable_host_int(pmlan_adapter pmadapter)
return ret;
}
-/**
+/**
* @brief This function checks the interrupt status and handle it accordingly.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1394,9 +1394,9 @@ wlan_process_int_status(mlan_adapter * pmadapter)
return ret;
}
-/**
+/**
* @brief This function sends data to the card.
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param type data or command
* @param pmbuf A pointer to mlan_buffer (pmbuf->data_len should include SDIO header)
@@ -1422,10 +1422,10 @@ wlan_sdio_host_to_card(mlan_adapter * pmadapter, t_u8 type, mlan_buffer * pmbuf,
*(t_u16 *) & payload[0] = wlan_cpu_to_le16((t_u16) pmbuf->data_len);
*(t_u16 *) & payload[2] = wlan_cpu_to_le16(type);
- /*
+ /*
* This is SDIO specific header
* t_u16 length,
- * t_u16 type (MLAN_TYPE_DATA = 0, MLAN_TYPE_CMD = 1, MLAN_TYPE_EVENT = 3)
+ * t_u16 type (MLAN_TYPE_DATA = 0, MLAN_TYPE_CMD = 1, MLAN_TYPE_EVENT = 3)
*/
if (type == MLAN_TYPE_DATA) {
ret = wlan_get_wr_port_data(pmadapter, &port);
@@ -1485,10 +1485,10 @@ wlan_sdio_host_to_card(mlan_adapter * pmadapter, t_u8 type, mlan_buffer * pmbuf,
}
#if defined(SDIO_MULTI_PORT_TX_AGGR) || defined(SDIO_MULTI_PORT_RX_AGGR)
-/**
- * @brief This function allocates buffer for the SDIO aggregation buffer
- * related members of adapter structure
- *
+/**
+ * @brief This function allocates buffer for the SDIO aggregation buffer
+ * related members of adapter structure
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param mpa_tx_buf_size Tx buffer size to allocate
* @param mpa_rx_buf_size Rx buffer size to allocate
@@ -1544,9 +1544,9 @@ wlan_alloc_sdio_mpa_buffers(IN mlan_adapter * pmadapter,
return ret;
}
-/**
+/**
* @brief This function frees buffers for the SDIO aggregation
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
*
* @return MLAN_STATUS_SUCCESS
@@ -1622,7 +1622,7 @@ wlan_set_sdio_gpio_int(IN pmlan_private priv)
/**
* @brief This function prepares command of SDIO GPIO interrupt
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_shim.c b/drivers/net/wireless/sd8797/mlan/mlan_shim.c
index c17b8e21c482..1e06a52b87cb 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_shim.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_shim.c
@@ -122,7 +122,7 @@ t_u32 drvdbg = DEFAULT_DEBUG_MASK;
/**
* @brief This function registers MOAL to MLAN module.
- *
+ *
* @param pmdevice A pointer to a mlan_device structure
* allocated in MOAL
* @param ppmlan_adapter A pointer to a t_void pointer to store
@@ -350,7 +350,7 @@ mlan_register(IN pmlan_device pmdevice, OUT t_void ** ppmlan_adapter)
/**
* @brief This function unregisters MOAL from MLAN module.
- *
+ *
* @param pmlan_adapter A pointer to a mlan_device structure
* allocated in MOAL
*
@@ -397,7 +397,7 @@ mlan_unregister(IN t_void * pmlan_adapter)
/**
* @brief This function downloads the firmware
- *
+ *
* @param pmlan_adapter A pointer to a t_void pointer to store
* mlan_adapter structure pointer
* @param pmfw A pointer to firmware image
@@ -506,7 +506,7 @@ mlan_set_init_param(IN t_void * pmlan_adapter, IN pmlan_init_param pparam)
/**
* @brief This function initializes the firmware
- *
+ *
* @param pmlan_adapter A pointer to a t_void pointer to store
* mlan_adapter structure pointer
*
@@ -722,7 +722,7 @@ mlan_main_process(IN t_void * pmlan_adapter)
}
}
- /*
+ /*
* The ps_state may have been changed during processing of
* Sleep Request event.
*/
@@ -842,7 +842,7 @@ mlan_send_packet(IN t_void * pmlan_adapter, IN pmlan_buffer pmbuf)
return ret;
}
-/**
+/**
* @brief MLAN ioctl handler
*
* @param adapter A pointer to mlan_adapter structure
@@ -918,9 +918,9 @@ mlan_select_wmm_queue(IN t_void * pmlan_adapter, IN t_u8 bss_num, IN t_u8 tid)
return ret;
}
-/**
+/**
* @brief This function gets interrupt status.
- *
+ *
* @param adapter A pointer to mlan_adapter structure
* @return N/A
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c
index c3a3b956aa61..c91fcc9f6e12 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmd.c
@@ -49,9 +49,9 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function prepares command of RSSI info.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action Command action
@@ -85,9 +85,9 @@ wlan_cmd_802_11_rssi_info(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mac_control.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param pcmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action Command action
@@ -119,9 +119,9 @@ wlan_cmd_mac_control(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of snmp_mib.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -226,9 +226,9 @@ wlan_cmd_802_11_snmp_mib(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of get_log.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
*
@@ -244,9 +244,9 @@ wlan_cmd_802_11_get_log(IN pmlan_private pmpriv, IN HostCmd_DS_COMMAND * cmd)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of tx_power_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -303,9 +303,9 @@ wlan_cmd_tx_power_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of rf_tx_power.
- *
+ *
* @param pmpriv A pointer to wlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -345,9 +345,9 @@ wlan_cmd_802_11_rf_tx_power(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of hs_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -406,9 +406,9 @@ wlan_cmd_802_11_hs_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mac_address.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -509,9 +509,9 @@ wlan_cmd_802_11_sleep_params(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mac_multicast_adr.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -615,9 +615,9 @@ wlan_cmd_802_11_ad_hoc_stop(IN pmlan_private pmpriv,
/** Length of WEP 104 bit key */
#define WEP_104_BIT_LEN 13
-/**
+/**
* @brief This function sets WEP key(s) to key_param_set TLV(s).
- *
+ *
* @param priv A pointer to mlan_private structure
* @param key_param_set A pointer to MrvlIEtype_KeyParamSet_t structure
* @param key_param_len A pointer to the length variable
@@ -683,9 +683,9 @@ wlan_set_keyparamset_wep(mlan_private * priv,
return ret;
}
-/**
+/**
* @brief This function prepares command of key_material.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -746,10 +746,10 @@ wlan_cmd_802_11_key_material(IN pmlan_private pmpriv,
else
pkey_material->key_param_set.key[1] = 0; /* set 0 when re-key */
- if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* WAPI
- pairwise
- key:
- unicast
+ if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* WAPI
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_WAPI_UNICAST);
@@ -835,9 +835,9 @@ wlan_cmd_802_11_key_material(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function prepares command of supplicant pmk
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -861,26 +861,26 @@ wlan_cmd_802_11_supplicant_pmk(IN pmlan_private pmpriv,
t_u8 zero_mac[] = { 0, 0, 0, 0, 0, 0 };
ENTER();
- /*
+ /*
* Parse the rest of the buf here
- * 1) <ssid="valid ssid"> - This will get the passphrase, AKMP
+ * 1) <ssid="valid ssid"> - This will get the passphrase, AKMP
* for specified ssid, if none specified then it will get all.
* Eg: iwpriv <mlanX> passphrase 0:ssid=marvell
* 2) <psk="psk">:<passphrase="passphare">:<bssid="00:50:43:ef:23:f3">
- * <ssid="valid ssid"> - passphrase and psk cannot be provided to
- * the same SSID, Takes one SSID at a time, If ssid= is present
+ * <ssid="valid ssid"> - passphrase and psk cannot be provided to
+ * the same SSID, Takes one SSID at a time, If ssid= is present
* the it should contain a passphrase or psk. If no arguments are
* provided then AKMP=802.1x, and passphrase should be provided
* after association.
* End of each parameter should be followed by a ':'(except for the
- * last parameter) as the delimiter. If ':' has to be used in
+ * last parameter) as the delimiter. If ':' has to be used in
* an SSID then a '/' should be preceded to ':' as a escape.
- * Eg:iwpriv <mlanX> passphrase
+ * Eg:iwpriv <mlanX> passphrase
* "1:ssid=mrvl AP:psk=abcdefgh:bssid=00:50:43:ef:23:f3"
- * iwpriv <mlanX> passphrase
+ * iwpriv <mlanX> passphrase
* "1:ssid=mrvl/: AP:psk=abcdefgd:bssid=00:50:43:ef:23:f3"
* iwpriv <mlanX> passphrase "1:ssid=mrvlAP:psk=abcdefgd"
- * 3) <ssid="valid ssid"> - This will clear the passphrase
+ * 3) <ssid="valid ssid"> - This will clear the passphrase
* for specified ssid, if none specified then it will clear all.
* Eg: iwpriv <mlanX> passphrase 2:ssid=marvell
*/
@@ -979,9 +979,9 @@ wlan_cmd_802_11_supplicant_profile(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of rf_channel.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1016,9 +1016,9 @@ wlan_cmd_802_11_rf_channel(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of ibss_coalescing_status.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1059,9 +1059,9 @@ wlan_cmd_ibss_coalescing_status(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mgmt IE list.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1121,9 +1121,9 @@ wlan_cmd_mgmt_ie_list(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares system clock cfg command
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1156,9 +1156,9 @@ wlan_cmd_sysclock_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of reg_access.
- *
+ *
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param pdata_buf A pointer to data buffer
@@ -1242,9 +1242,9 @@ wlan_cmd_reg_access(IN HostCmd_DS_COMMAND * cmd,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of mem_access.
- *
+ *
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param pdata_buf A pointer to data buffer
@@ -1271,9 +1271,9 @@ wlan_cmd_mem_access(IN HostCmd_DS_COMMAND * cmd,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function prepares command of subscribe event.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -1461,7 +1461,7 @@ wlan_cmd_subscribe_event(IN pmlan_private pmpriv,
/**
* @brief This function prepares inactivity timeout command
- *
+ *
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param pdata_buf A pointer to data buffer
@@ -1501,9 +1501,9 @@ wlan_cmd_inactivity_timeout(IN HostCmd_DS_COMMAND * cmd,
Global Functions
********************************************************/
-/**
+/**
* @brief This function prepare the command before sending to firmware.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd_no Command number
* @param cmd_action Command action: GET or SET
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c
index 19ff2ef7fdf2..be56a16615b9 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_cmdresp.c
@@ -47,9 +47,9 @@ Change log:
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief This function handles the command response error
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -76,7 +76,7 @@ wlan_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
PRINTM(MERROR,
"PS_MODE_ENH command failed: result=0x%x action=0x%X\n",
resp->result, wlan_le16_to_cpu(pm->action));
- /*
+ /*
* We do not re-try enter-ps command in ad-hoc mode.
*/
if (wlan_le16_to_cpu(pm->action) == EN_AUTO_PS &&
@@ -98,7 +98,7 @@ wlan_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
default:
break;
}
- /*
+ /*
* Handling errors here
*/
wlan_insert_cmd_to_free_q(pmadapter, pmadapter->curr_cmd);
@@ -111,9 +111,9 @@ wlan_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
return;
}
-/**
+/**
* @brief This function handles the command response of RSSI info
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -181,9 +181,9 @@ wlan_ret_802_11_rssi_info(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of mac_control
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -200,9 +200,9 @@ wlan_ret_mac_control(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of snmp_mib
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -301,9 +301,9 @@ wlan_ret_802_11_snmp_mib(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of get_log
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -356,12 +356,12 @@ wlan_ret_get_log(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Get power level and rate index
*
* @param pmpriv A pointer to mlan_private structure
* @param pdata_buf Pointer to the data buffer
- *
+ *
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
static mlan_status
@@ -408,9 +408,9 @@ wlan_get_power_level(pmlan_private pmpriv, void *pdata_buf)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of tx_power_cfg
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -508,9 +508,9 @@ wlan_ret_tx_power_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of rf_tx_power
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -550,9 +550,9 @@ wlan_ret_802_11_rf_tx_power(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sleep_period
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -591,9 +591,9 @@ wlan_ret_802_11_sleep_period(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sleep_params
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -637,9 +637,9 @@ wlan_ret_802_11_sleep_params(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of mac_address
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -673,9 +673,9 @@ wlan_ret_802_11_mac_address(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of multicast_address
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -750,9 +750,9 @@ wlan_ret_802_11_ad_hoc_stop(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of key_material
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -966,9 +966,9 @@ wlan_ret_802_11_supplicant_profile(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of rf_channel
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1061,13 +1061,13 @@ wlan_ret_ibss_coalescing_status(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of MGMT_IE_LIST
*
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
- *
+ *
* @return MLAN_STATUS_SUCCESS
*/
static mlan_status
@@ -1144,9 +1144,9 @@ wlan_ret_mgmt_ie_list(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sysclock
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to mlan_ioctl_req structure
@@ -1181,9 +1181,9 @@ wlan_ret_sysclock_cfg(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of reg_access
- *
+ *
* @param type The type of reg access (MAC, BBP or RF)
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1274,9 +1274,9 @@ wlan_ret_reg_access(mlan_adapter * pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of mem_access
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1306,9 +1306,9 @@ wlan_ret_mem_access(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of inactivity timeout
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1342,10 +1342,10 @@ wlan_ret_inactivity_timeout(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of
* subscribe event
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -1377,9 +1377,9 @@ wlan_ret_subscribe_event(IN pmlan_private pmpriv,
/********************************************************
Global Functions
********************************************************/
-/**
+/**
* @brief This function handles the station command response
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmdresp_no cmd no
* @param pcmd_buf cmdresp buf
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c
index 232496681dae..f638241f9632 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_event.c
@@ -40,10 +40,10 @@ Change log:
Local Functions
********************************************************/
-/**
+/**
* @brief This function handles link lost, deauth and
- * disassoc events.
- *
+ * disassoc events.
+ *
* @param priv A pointer to mlan_private structure
* @return N/A
*/
@@ -62,11 +62,11 @@ wlan_handle_disconnect_event(pmlan_private pmpriv)
/********************************************************
Global Functions
********************************************************/
-/**
+/**
* @brief This function handles disconnect event, reports disconnect
- * to upper layer, cleans tx/rx packets,
- * resets link state etc.
- *
+ * to upper layer, cleans tx/rx packets,
+ * resets link state etc.
+ *
* @param priv A pointer to mlan_private structure
* @param drv_disconnect Flag indicating the driver should disconnect
* and flush pending packets.
@@ -175,9 +175,9 @@ wlan_reset_connect_state(pmlan_private priv, t_u8 drv_disconnect)
LEAVE();
}
-/**
+/**
* @brief This function sends the OBSS scan parameters to the application
- *
+ *
* @param pmpriv A pointer to mlan_private structure
*
* @return N/A
@@ -210,9 +210,9 @@ wlan_2040_coex_event(pmlan_private pmpriv)
LEAVE();
}
-/**
+/**
* @brief This function handles events generated by firmware
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c
index f5e2edc56b09..72dd525ca4af 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_ioctl.c
@@ -44,8 +44,8 @@ Change log:
/********************************************************
Local Functions
********************************************************/
-/**
- * @brief enable adhoc aes key
+/**
+ * @brief enable adhoc aes key
*
* @param pmpriv A pointer to mlan_private structure
*
@@ -80,7 +80,7 @@ wlan_enable_aes_key(pmlan_private pmpriv)
return;
}
-/**
+/**
* @brief Get signal information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -136,7 +136,7 @@ wlan_get_info_signal(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Get statistics information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -184,7 +184,7 @@ wlan_get_info_stats(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Get BSS information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -293,7 +293,7 @@ wlan_get_info_bss_info(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get information handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -348,7 +348,7 @@ wlan_get_info_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get SNMP MIB handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -411,7 +411,7 @@ wlan_snmp_mib_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get Infra/Ad-hoc band configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -480,7 +480,7 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
pmpriv->intf_state_11h.adhoc_auto_sel_chan = MFALSE;
pmadapter->chan_bandwidth =
(t_u8) radio_cfg->param.band_cfg.sec_chan_offset;
- /*
+ /*
* If no adhoc_channel is supplied verify if the existing adhoc channel
* compiles with new adhoc_band
*/
@@ -498,7 +498,7 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
DEFAULT_AD_HOC_CHANNEL_A;
}
}
- } else { /* Return error if adhoc_band and adhoc_channel
+ } else { /* Return error if adhoc_band and adhoc_channel
combination is invalid */
if (!wlan_find_cfp_by_band_and_channel
(pmadapter, pmadapter->adhoc_start_band,
@@ -517,23 +517,23 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
pmadapter->adhoc_11n_enabled = MFALSE;
}
} else {
- radio_cfg->param.band_cfg.config_bands = pmpriv->config_bands; /* Infra
- Bands
+ radio_cfg->param.band_cfg.config_bands = pmpriv->config_bands; /* Infra
+ Bands
*/
- radio_cfg->param.band_cfg.adhoc_start_band = pmadapter->adhoc_start_band; /* Adhoc
- Band
+ radio_cfg->param.band_cfg.adhoc_start_band = pmadapter->adhoc_start_band; /* Adhoc
+ Band
*/
- radio_cfg->param.band_cfg.adhoc_channel = pmpriv->adhoc_channel; /* Adhoc
- Channel
+ radio_cfg->param.band_cfg.adhoc_channel = pmpriv->adhoc_channel; /* Adhoc
+ Channel
*/
radio_cfg->param.band_cfg.fw_bands = pmadapter->fw_bands; /* FW
- support
- Bands
+ support
+ Bands
*/
PRINTM(MINFO, "Global config band = %d\n", pmadapter->config_bands);
- radio_cfg->param.band_cfg.sec_chan_offset = pmadapter->chan_bandwidth; /* adhoc
- channel
- bandwidth
+ radio_cfg->param.band_cfg.sec_chan_offset = pmadapter->chan_bandwidth; /* adhoc
+ channel
+ bandwidth
*/
}
@@ -542,7 +542,7 @@ wlan_radio_ioctl_band_cfg(IN pmlan_adapter pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Radio command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -592,7 +592,7 @@ wlan_radio_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get MAC address
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -633,7 +633,7 @@ wlan_bss_ioctl_mac_address(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set multicast list
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -713,7 +713,7 @@ wlan_bss_ioctl_set_multicast_list(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get channel list
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -809,7 +809,7 @@ wlan_bss_ioctl_get_channel_list(IN pmlan_adapter pmadapter,
/** Highest frequency used in 2.4GHz band */
#define MAX_FREQUENCY_BAND_B (2484)
-/**
+/**
* @brief Set/Get BSS channel
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -911,7 +911,7 @@ wlan_bss_ioctl_channel(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get BSS mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -970,7 +970,7 @@ wlan_bss_ioctl_mode(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Start BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1117,7 +1117,7 @@ wlan_bss_ioctl_start(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Stop BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1140,7 +1140,7 @@ wlan_bss_ioctl_stop(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get IBSS channel
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1186,7 +1186,7 @@ wlan_bss_ioctl_ibss_channel(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get beacon interval
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1215,7 +1215,7 @@ wlan_bss_ioctl_beacon_interval(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get ATIM window
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1245,13 +1245,13 @@ wlan_bss_ioctl_atim_window(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Query embe
*
* @param priv A pointer to mlan_private structure
* @param pioctl_req A pointer to ioctl request buffer
*
- * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
+ * @return MLAN_STATUS_SUCCESS -- success, otherwise fail
*/
static mlan_status
wlan_query_passphrase(mlan_private * priv, pmlan_ioctl_req pioctl_req)
@@ -1296,7 +1296,7 @@ wlan_query_passphrase(mlan_private * priv, pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Search for a BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1326,7 +1326,7 @@ wlan_bss_ioctl_find_bss(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief BSS command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1406,7 +1406,7 @@ wlan_bss_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Get supported rates
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1445,7 +1445,7 @@ wlan_rate_ioctl_get_supported_rate(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get data rates
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1480,7 +1480,7 @@ wlan_rate_ioctl_get_data_rate(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Rate command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1524,7 +1524,7 @@ wlan_rate_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Get Tx power configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1555,7 +1555,7 @@ wlan_power_ioctl_get_power(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set Tx power configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1666,10 +1666,10 @@ wlan_power_ioctl_set_power(IN pmlan_adapter pmadapter,
/**
* @brief Get modulation class from rate index
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param rate_index Rate index
- *
+ *
* @return 0 fail, otherwise return modulation class
*/
static int
@@ -1704,7 +1704,7 @@ wlan_get_modulation_class(pmlan_adapter pmadapter, int rate_index)
return 0;
}
-/**
+/**
* @brief Set extended power configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1818,7 +1818,7 @@ wlan_power_ioctl_set_power_ext(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Power configuration command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1870,7 +1870,7 @@ wlan_power_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set power save configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1913,7 +1913,7 @@ wlan_pm_ioctl_ps_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get Inactivity timeout extend
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -1951,9 +1951,9 @@ wlan_pm_ioctl_inactivity_timeout(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Enable/Disable Auto Deep Sleep
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
*
@@ -2002,7 +2002,7 @@ wlan_set_auto_deep_sleep(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get sleep period
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2037,7 +2037,7 @@ wlan_set_get_sleep_pd(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get PS configuration parameter
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2152,7 +2152,7 @@ wlan_set_get_sleep_params(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Power save command handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2256,7 +2256,7 @@ wlan_pm_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get WMM status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2281,7 +2281,7 @@ wlan_wmm_ioctl_enable(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get WMM QoS configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2508,7 +2508,7 @@ wlan_wmm_ioctl_ts_status(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief WMM configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2567,8 +2567,8 @@ wlan_wmm_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
- * @brief Set/Get WPA IE
+/**
+ * @brief Set/Get WPA IE
*
* @param priv A pointer to mlan_private structure
* @param ie_data_ptr A pointer to IE
@@ -2613,8 +2613,8 @@ wlan_set_wpa_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
return MLAN_STATUS_SUCCESS;
}
-/**
- * @brief Set WAPI IE
+/**
+ * @brief Set WAPI IE
*
* @param priv A pointer to mlan_private structure
* @param ie_data_ptr A pointer to IE
@@ -2650,7 +2650,7 @@ wlan_set_wapi_ie(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Set/Get WAPI status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2682,7 +2682,7 @@ wlan_sec_ioctl_wapi_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set WAPI key
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2712,7 +2712,7 @@ wlan_sec_ioctl_set_wapi_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get Port Control status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2755,7 +2755,7 @@ wlan_sec_ioctl_port_ctrl_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get authentication mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2784,7 +2784,7 @@ wlan_sec_ioctl_auth_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get encryption mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2811,7 +2811,7 @@ wlan_sec_ioctl_encrypt_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get WPA status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2846,7 +2846,7 @@ wlan_sec_ioctl_wpa_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set WEP keys
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2895,9 +2895,9 @@ wlan_sec_ioctl_set_wep_key(IN pmlan_adapter pmadapter,
pwep_key->key_index = index;
pwep_key->key_length = sec->param.encrypt_key.key_len;
if (pmpriv->sec_info.wep_status != Wlan802_11WEPEnabled) {
- /*
- * The status is set as Key Absent
- * so as to make sure we display the
+ /*
+ * The status is set as Key Absent
+ * so as to make sure we display the
* keys when iwlist mlanX key is used
*/
pmpriv->sec_info.wep_status = Wlan802_11WEPKeyAbsent;
@@ -2956,7 +2956,7 @@ wlan_sec_ioctl_set_wep_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set WPA key
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -2986,7 +2986,7 @@ wlan_sec_ioctl_set_wpa_key(IN pmlan_adapter pmadapter,
}
if ((pmpriv->bss_mode == MLAN_BSS_MODE_IBSS) &&
pmpriv->sec_info.wpa_enabled) {
- /*
+ /*
* IBSS/WPA-None uses only one key (Group) for both receiving and
* sending unicast and multicast packets.
*/
@@ -3064,7 +3064,7 @@ wlan_sec_ioctl_set_wpa_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get security keys
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3172,7 +3172,7 @@ wlan_sec_ioctl_get_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set security key(s)
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3202,7 +3202,7 @@ wlan_sec_ioctl_encrypt_key(IN pmlan_adapter pmadapter,
return status;
}
-/**
+/**
* @brief Set/Get WPA passphrase for esupplicant
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3263,7 +3263,7 @@ wlan_sec_ioctl_passphrase(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get esupplicant status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3292,7 +3292,7 @@ wlan_sec_ioctl_ewpa_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get esupplicant mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3328,7 +3328,7 @@ wlan_sec_ioctl_esupp_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Security configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3391,11 +3391,11 @@ wlan_sec_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
- * @brief Append/Reset IE buffer.
- *
- * Pass an opaque block of data, expected to be IEEE IEs, to the driver
- * for eventual passthrough to the firmware in an associate/join
+/**
+ * @brief Append/Reset IE buffer.
+ *
+ * Pass an opaque block of data, expected to be IEEE IEs, to the driver
+ * for eventual passthrough to the firmware in an associate/join
* (and potentially start) command. This function is the main body
* for both wlan_set_gen_ie_ioctl and wlan_set_gen_ie
*
@@ -3449,7 +3449,7 @@ wlan_set_gen_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
(priv->wps.session_enable == MFALSE) &&
(!memcmp
(priv->adapter, pvendor_ie->oui, wps_oui, sizeof(wps_oui)))) {
- /*
+ /*
* Discard first two byte (Element ID and Length)
* because they are not needed in the case of setting WPS_IE
*/
@@ -3465,8 +3465,8 @@ wlan_set_gen_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
PRINTM(MINFO, "wps_ie cleared\n");
}
} else {
- /*
- * Verify that the passed length is not larger than the available
+ /*
+ * Verify that the passed length is not larger than the available
* space remaining in the buffer
*/
if (ie_len < (sizeof(priv->gen_ie_buf) - priv->gen_ie_buf_len)) {
@@ -3500,7 +3500,7 @@ wlan_set_gen_ie_helper(mlan_private * priv, t_u8 * ie_data_ptr, t_u16 ie_len)
return ret;
}
-/**
+/**
* @brief Set/Get WWS mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3552,7 +3552,7 @@ wlan_misc_ioctl_wws_cfg(IN pmlan_adapter pmadapter,
}
-/**
+/**
* @brief Set/Get 11D status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3603,7 +3603,7 @@ wlan_11d_cfg_ioctl_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Clear 11D chan table
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3633,7 +3633,7 @@ wlan_11d_clr_chan_table(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief 11D configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3680,7 +3680,7 @@ wlan_11d_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief WPS configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3728,7 +3728,7 @@ wlan_wps_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Read/write adapter register
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3785,8 +3785,8 @@ wlan_reg_mem_ioctl_reg_rw(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Read the EEPROM contents of the card
+/**
+ * @brief Read the EEPROM contents of the card
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -3821,7 +3821,7 @@ wlan_reg_mem_ioctl_read_eeprom(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Read/write memory of device
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3860,7 +3860,7 @@ wlan_reg_mem_ioctl_mem_rw(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief register memory access handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3904,7 +3904,7 @@ wlan_reg_mem_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief 802.11h ad-hoc start channel check
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -3937,14 +3937,14 @@ wlan_11h_channel_check_req(IN pmlan_adapter pmadapter,
if (pmpriv->intf_state_11h.adhoc_auto_sel_chan)
pmpriv->adhoc_channel = wlan_11h_get_adhoc_start_channel(pmpriv);
- /*
+ /*
* Check if the region and channel requires a channel availability
* check.
*/
if (wlan_11h_radar_detect_required(pmpriv, pmpriv->adhoc_channel)
&& !wlan_11h_is_channel_under_nop(pmadapter, pmpriv->adhoc_channel)
) {
- /*
+ /*
* Radar detection is required for this channel, make sure
* 11h is activated in the firmware
*/
@@ -3964,8 +3964,8 @@ wlan_11h_channel_check_req(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief 802.11h set/get local power constraint
+/**
+ * @brief 802.11h set/get local power constraint
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -3992,7 +3992,7 @@ wlan_11h_ioctl_local_power_constraint(IN pmlan_adapter pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief 11h configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4040,7 +4040,7 @@ wlan_11h_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get generic IE
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4100,7 +4100,7 @@ wlan_misc_ioctl_gen_ie(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get region code
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4150,7 +4150,7 @@ wlan_misc_ioctl_region(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Perform warm reset
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4198,7 +4198,7 @@ wlan_misc_ioctl_warm_reset(IN pmlan_adapter pmadapter,
}
#if defined(SDIO_MULTI_PORT_TX_AGGR) || defined(SDIO_MULTI_PORT_RX_AGGR)
-/**
+/**
* @brief Reconfigure SDIO multiport aggregation parameters
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4296,7 +4296,7 @@ wlan_misc_ioctl_sdio_mpa_ctrl(IN pmlan_adapter pmadapter,
}
#endif /* SDIO_MULTI_PORT_TX_AGGR || SDIO_MULTI_PORT_RX_AGGR */
-/**
+/**
* @brief Set/Get system clock configuration
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4495,7 +4495,7 @@ wlan_misc_ioctl_subscribe_evt(IN pmlan_adapter pmadapter,
}
/**
- * @brief Set ARP filter based on IP address
+ * @brief Set ARP filter based on IP address
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -4655,7 +4655,7 @@ wlan_ipaddr_auto_arp_resp(IN pmlan_adapter pmadapter,
}
/**
- * @brief MEF configuration
+ * @brief MEF configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -4765,7 +4765,7 @@ wlan_misc_ioctl_mef_cfg(IN pmlan_adapter pmadapter,
}
/**
- * @brief ipaddr configuration
+ * @brief ipaddr configuration
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -4826,7 +4826,7 @@ wlan_misc_ioctl_ipaddr_cfg(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Miscellaneous configuration handler
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4922,7 +4922,7 @@ wlan_misc_cfg_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return status;
}
-/**
+/**
* @brief Set/Get scan configuration parameter
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -4975,7 +4975,7 @@ wlan_set_get_scan_cfg(IN pmlan_adapter pmadapter,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Set/Get scan
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -5088,7 +5088,7 @@ wlan_scan_ioctl(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
Global Functions
********************************************************/
-/**
+/**
* @brief Set ewpa mode
*
* @param priv A pointer to mlan_private structure
@@ -5114,7 +5114,7 @@ wlan_set_ewpa_mode(mlan_private * priv, mlan_ds_passphrase * psec_pp)
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief Search for a BSS
*
* @param pmpriv A pointer to mlan_private structure
@@ -5183,7 +5183,7 @@ wlan_find_bss(mlan_private * pmpriv, pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief MLAN station ioctl handler
*
* @param adapter A pointer to mlan_adapter structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c
index eb1bd845a587..2ad9a810afcf 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_rx.c
@@ -2,7 +2,7 @@
*
* @brief This file contains the handling of RX in MLAN
* module.
- *
+ *
* Copyright (C) 2008-2011, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
@@ -62,7 +62,7 @@ typedef struct
/**
* @brief This function processes received packet and forwards it
* to kernel/upper layer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -123,8 +123,8 @@ wlan_process_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
appletalk_aarp_type, sizeof(appletalk_aarp_type)) &&
memcmp(pmadapter, &prx_pkt->rfc1042_hdr.snap_type,
ipx_snap_type, sizeof(ipx_snap_type)))) {
- /*
- * Replace the 803 header and rfc1042 header (llc/snap) with an
+ /*
+ * Replace the 803 header and rfc1042 header (llc/snap) with an
* EthernetII header, keep the src/dst and snap_type (ethertype).
* The firmware only passes up SNAP frames converting
* all RX Data from 802.11 to 802.2/LLC/SNAP frames.
@@ -143,7 +143,7 @@ wlan_process_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
memcpy(pmadapter, peth_hdr->dest_addr, prx_pkt->eth803_hdr.dest_addr,
sizeof(peth_hdr->dest_addr));
- /* Chop off the RxPD + the excess memory from the 802.2/llc/snap header
+ /* Chop off the RxPD + the excess memory from the 802.2/llc/snap header
that was removed. */
hdr_chop = (t_u32) ((t_ptr) peth_hdr - (t_ptr) prx_pd);
} else {
@@ -190,7 +190,7 @@ wlan_process_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
/**
* @brief This function processes the received buffer
- *
+ *
* @param adapter A pointer to mlan_adapter
* @param pmbuf A pointer to the received buffer
*
@@ -248,7 +248,7 @@ wlan_ops_sta_process_rx_packet(IN t_void * adapter, IN pmlan_buffer pmbuf)
goto done;
}
- /*
+ /*
* If the packet is not an unicast packet then send the packet
* directly to os. Don't pass thru rx reordering
*/
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c b/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c
index f509468d586f..06c1a4de064e 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_sta_tx.c
@@ -47,9 +47,9 @@ Change log:
/********************************************************
Global functions
********************************************************/
-/**
- * @brief This function fill the txpd for tx packet
- *
+/**
+ * @brief This function fill the txpd for tx packet
+ *
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to the mlan_buffer for process
*
@@ -107,7 +107,7 @@ wlan_ops_sta_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
wlan_wmm_compute_driver_packet_delay(pmpriv, pmbuf);
if (plocal_tx_pd->priority < NELEMENTS(pmpriv->wmm.user_pri_pkt_tx_ctrl))
- /*
+ /*
* Set the priority specific tx_control field, setting of 0 will
* cause the default value to be used later in this function
*/
@@ -147,9 +147,9 @@ wlan_ops_sta_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
return head_ptr;
}
-/**
+/**
* @brief This function tells firmware to send a NULL data packet.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param flags Transmit Pkt Flags
*
@@ -237,9 +237,9 @@ wlan_send_null_packet(pmlan_private priv, t_u8 flags)
return ret;
}
-/**
+/**
* @brief This function checks if we need to send last packet indication.
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MTRUE or MFALSE
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_txrx.c b/drivers/net/wireless/sd8797/mlan/mlan_txrx.c
index f243fc191800..e15dd14f0443 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_txrx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_txrx.c
@@ -51,7 +51,7 @@ Change Log:
********************************************************/
/**
* @brief This function processes the received buffer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pmbuf A pointer to the received buffer
*
@@ -85,9 +85,9 @@ wlan_handle_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
return ret;
}
-/**
- * @brief This function checks the conditions and sends packet to device
- *
+/**
+ * @brief This function checks the conditions and sends packet to device
+ *
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to the mlan_buffer for process
* @param tx_param A pointer to mlan_tx_param structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c b/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c
index 8c041c8159c2..ed79dcfaaf68 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_uap_cmdevent.c
@@ -3,7 +3,7 @@
* @brief This file contains the handling of AP mode command and event
*
* Copyright (C) 2009-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -38,9 +38,9 @@ Change log:
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief This function handles the command response error
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
* @param pioctl_buf A pointer to command buffer
@@ -59,7 +59,7 @@ uap_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
resp->result);
if (pioctl_buf)
pioctl_buf->status_code = resp->result;
- /*
+ /*
* Handling errors here
*/
wlan_insert_cmd_to_free_q(pmadapter, pmadapter->curr_cmd);
@@ -72,9 +72,9 @@ uap_process_cmdresp_error(mlan_private * pmpriv, HostCmd_DS_COMMAND * resp,
return;
}
-/**
+/**
* @brief This function prepares command of hs_cfg.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -113,7 +113,7 @@ wlan_uap_cmd_802_11_hs_cfg(IN pmlan_private pmpriv,
/**
* @brief This function prepares command of Tx data pause
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
@@ -146,12 +146,12 @@ wlan_uap_cmd_txdatapause(pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of Tx data pause
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -177,8 +177,8 @@ wlan_uap_ret_txdatapause(IN pmlan_private pmpriv,
/**
* @brief This function will process tx pause event
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
*
@@ -234,11 +234,11 @@ wlan_process_tx_pause_event(pmlan_private priv, pmlan_buffer pevent)
/**
* @brief This function prepares command for config uap settings
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
static mlan_status
@@ -899,11 +899,11 @@ wlan_uap_cmd_ap_config(pmlan_private pmpriv,
/**
* @brief This function prepares command of sys_config
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
static mlan_status
@@ -1122,12 +1122,12 @@ wlan_uap_cmd_sys_configure(pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles command resp for get uap settings
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1489,13 +1489,13 @@ wlan_uap_ret_cmd_ap_config(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sys_reset
* Clear various private state variables used by DFS.
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1520,12 +1520,12 @@ wlan_uap_ret_sys_reset(IN pmlan_private pmpriv,
return MLAN_STATUS_SUCCESS;
}
-/**
+/**
* @brief This function handles the command response of sys_config
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1666,12 +1666,12 @@ wlan_uap_ret_sys_config(IN pmlan_private pmpriv,
/**
* @brief This function prepares command of snmp_mib
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action the action: GET or SET
* @param cmd_oid Cmd oid: treated as sub command
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
* @param pdata_buf A pointer to information buffer
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
*/
@@ -1754,12 +1754,12 @@ wlan_uap_cmd_snmp_mib(pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles the command response of snmp_mib
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -1886,7 +1886,7 @@ wlan_uap_ret_snmp_mib(IN pmlan_private pmpriv,
/**
* @brief This function prepares command of deauth station
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param pdata_buf A pointer to data buffer
@@ -1912,7 +1912,7 @@ wlan_uap_cmd_sta_deauth(pmlan_private pmpriv,
/**
* @brief This function prepares command of key material
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param cmd A pointer to HostCmd_DS_COMMAND structure
* @param cmd_action The action: GET or SET
@@ -1963,10 +1963,10 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
else
pkey_material->key_param_set.key[1] = 0; /* set 0 when re-key */
- if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) { /* WAPI
- pairwise
- key:
- unicast
+ if (0 != memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) { /* WAPI
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_WAPI_UNICAST);
@@ -2012,10 +2012,10 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
pkey_material->key_param_set.key_info =
!(wlan_cpu_to_le16(KEY_INFO_AES_ENABLED));
- if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* AES
- pairwise
- key:
- unicast
+ if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* AES
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_AES_UNICAST);
@@ -2029,10 +2029,10 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
pkey_material->key_param_set.key_info =
wlan_cpu_to_le16(KEY_INFO_TKIP_ENABLED);
- if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* TKIP
- pairwise
- key:
- unicast
+ if (memcmp(pmpriv->adapter, pkey->mac_addr, bc_mac, sizeof(bc_mac))) /* TKIP
+ pairwise
+ key:
+ unicast
*/
pkey_material->key_param_set.key_info |=
wlan_cpu_to_le16(KEY_INFO_TKIP_UNICAST);
@@ -2068,12 +2068,12 @@ wlan_uap_cmd_key_material(IN pmlan_private pmpriv,
return ret;
}
-/**
+/**
* @brief This function handles the command response of sta_list
- *
+ *
* @param pmpriv A pointer to mlan_private structure
* @param resp A pointer to HostCmd_DS_COMMAND
- * @param pioctl_buf A pointer to mlan_ioctl_req structure
+ * @param pioctl_buf A pointer to mlan_ioctl_req structure
*
* @return MLAN_STATUS_SUCCESS
*/
@@ -2113,8 +2113,8 @@ wlan_uap_ret_sta_list(IN pmlan_private pmpriv,
/**
* @brief This function will search for the specific ie
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
* @param sta_ptr A pointer to sta_node
@@ -2196,8 +2196,8 @@ wlan_check_sta_capability(pmlan_private priv, pmlan_buffer pevent,
/**
* @brief This function will search for the specific ie
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
*
@@ -2274,8 +2274,8 @@ wlan_check_uap_capability(pmlan_private priv, pmlan_buffer pevent)
/**
* @brief This function will update WAPI PN in statation assoc event
- *
- *
+ *
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to event buf
*
@@ -2329,11 +2329,11 @@ wlan_update_wapi_info_tlv(pmlan_private priv, pmlan_buffer pevent)
/**
* @brief This function send sta_assoc_event to moal
- * payload with sta mac address and assoc ie.
- *
+ * payload with sta mac address and assoc ie.
+ *
* @param priv A pointer to mlan_private
* @param pevent A pointer to mlan_event buffer
- * @param pbuf A pointer to mlan_buffer which has event content.
+ * @param pbuf A pointer to mlan_buffer which has event content.
*
* @return MFALSE
*/
@@ -2406,9 +2406,9 @@ wlan_process_sta_assoc_event(pmlan_private priv, mlan_event * pevent,
/********************************************************
Global Functions
********************************************************/
-/**
+/**
* @brief This function prepare the command before sending to firmware.
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmd_no Command number
* @param cmd_action Command action: GET or SET
@@ -2585,9 +2585,9 @@ wlan_ops_uap_prepare_cmd(IN t_void * priv,
return ret;
}
-/**
+/**
* @brief This function handles the AP mode command response
- *
+ *
* @param priv A pointer to mlan_private structure
* @param cmdresp_no cmd no
* @param pcmd_buf cmdresp buf
@@ -2751,9 +2751,9 @@ wlan_ops_uap_process_cmdresp(IN t_void * priv,
return ret;
}
-/**
+/**
* @brief This function handles events generated by firmware
- *
+ *
* @param priv A pointer to mlan_private structure
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c b/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c
index be78d72de25c..5081d9e4aabc 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_uap_ioctl.c
@@ -3,7 +3,7 @@
* @brief This file contains the handling of AP mode ioctls
*
* Copyright (C) 2009-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -44,7 +44,7 @@ extern t_u8 tos_to_tid_inv[];
/********************************************************
Local Functions
********************************************************/
-/**
+/**
* @brief Stop BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -94,7 +94,7 @@ wlan_uap_callback_bss_ioctl_start(IN t_void * priv)
/* clear callback now that we're here */
puap_state_chan_cb->get_chan_callback = MNULL;
- /*
+ /*
* Check if the region and channel requires we check for radar.
*/
if ((puap_state_chan_cb->band_config & BAND_CONFIG_5GHZ) &&
@@ -170,7 +170,7 @@ wlan_uap_callback_bss_ioctl_start(IN t_void * priv)
return ret;
}
-/**
+/**
* @brief Start BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -205,7 +205,7 @@ wlan_uap_bss_ioctl_start(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief reset BSS
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -223,7 +223,7 @@ wlan_uap_bss_ioctl_reset(IN pmlan_adapter pmadapter,
ENTER();
- /*
+ /*
* Reset any uap private parameters here
*/
for (i = 0; i < pmadapter->max_mgmt_ie_index; i++) {
@@ -254,7 +254,7 @@ wlan_uap_bss_ioctl_reset(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get MAC address
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -291,7 +291,7 @@ wlan_uap_bss_ioctl_mac_address(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get Uap statistics
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -318,7 +318,7 @@ wlan_uap_get_stats(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set/Get AP config
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -352,7 +352,7 @@ wlan_uap_bss_ioctl_config(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief deauth sta
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -384,8 +384,8 @@ wlan_uap_bss_ioctl_deauth_sta(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Get station list
+/**
+ * @brief Get station list
*
* @param pmadapter A pointer to mlan_adapter structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -413,7 +413,7 @@ wlan_uap_get_sta_list(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief soft_reset
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -441,7 +441,7 @@ wlan_uap_misc_ioctl_soft_reset(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Tx data pause
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -476,7 +476,7 @@ wlan_uap_misc_ioctl_txdatapause(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get Power mode
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -530,8 +530,8 @@ wlan_uap_pm_ioctl_mode(IN pmlan_adapter pmadapter,
return ret;
}
-/**
- * @brief Set WAPI IE
+/**
+ * @brief Set WAPI IE
*
* @param priv A pointer to mlan_private structure
* @param pioctl_req A pointer to ioctl request buffer
@@ -581,7 +581,7 @@ wlan_uap_set_wapi_ie(mlan_private * priv, pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set generic IE
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -620,7 +620,7 @@ wlan_uap_misc_ioctl_gen_ie(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set/Get WAPI status
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -657,7 +657,7 @@ wlan_uap_sec_ioctl_wapi_enable(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Set encrypt key
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -697,7 +697,7 @@ wlan_uap_sec_ioctl_set_encrypt_key(IN pmlan_adapter pmadapter,
return ret;
}
-/**
+/**
* @brief Get BSS information
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -732,7 +732,7 @@ wlan_uap_get_bss_info(IN pmlan_adapter pmadapter, IN pmlan_ioctl_req pioctl_req)
return ret;
}
-/**
+/**
* @brief Set Host Sleep configurations
*
* @param pmadapter A pointer to mlan_adapter structure
@@ -956,7 +956,7 @@ wlan_uap_callback_11h_channel_check_req(IN t_void * priv)
/* clear early to avoid race condition */
puap_state_chan_cb->pioctl_req_curr = MNULL;
- /*
+ /*
* Check if the region and channel requires a channel availability
* check.
*/
@@ -965,7 +965,7 @@ wlan_uap_callback_11h_channel_check_req(IN t_void * priv)
!wlan_11h_is_channel_under_nop(pmpriv->adapter,
puap_state_chan_cb->channel)) {
- /*
+ /*
* Radar detection is required for this channel, make sure
* 11h is activated in the firmware
*/
@@ -1228,7 +1228,7 @@ wlan_uap_get_beacon_dtim(IN pmlan_private pmpriv)
return ret;
}
-/**
+/**
* @brief MLAN uap ioctl handler
*
* @param adapter A pointer to mlan_adapter structure
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c b/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c
index 1dad10bce62a..0abd1ecd1c2a 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_uap_txrx.c
@@ -3,7 +3,7 @@
* @brief This file contains AP mode transmit and receive functions
*
* Copyright (C) 2009-2011, Marvell International Ltd.
- *
+ *
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
@@ -43,7 +43,7 @@ Change log:
/**
* @brief This function processes received packet and forwards it
* to kernel/upper layer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -91,7 +91,7 @@ wlan_upload_uap_rx_packet(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
/**
* @brief This function will check if unicast packet need be dropped
- *
+ *
* @param priv A pointer to mlan_private
* @param mac mac address to find in station list table
*
@@ -136,9 +136,9 @@ wlan_check_unicast_packet(mlan_private * priv, t_u8 * mac)
/********************************************************
Global Functions
********************************************************/
-/**
- * @brief This function fill the txpd for tx packet
- *
+/**
+ * @brief This function fill the txpd for tx packet
+ *
* @param priv A pointer to mlan_private structure
* @param pmbuf A pointer to the mlan_buffer for process
*
@@ -198,7 +198,7 @@ wlan_ops_uap_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
wlan_wmm_compute_driver_packet_delay(pmpriv, pmbuf);
if (plocal_tx_pd->priority < NELEMENTS(pmpriv->wmm.user_pri_pkt_tx_ctrl))
- /*
+ /*
* Set the priority specific tx_control field, setting of 0 will
* cause the default value to be used later in this function
*/
@@ -229,7 +229,7 @@ wlan_ops_uap_process_txpd(IN t_void * priv, IN pmlan_buffer pmbuf)
/**
* @brief This function processes received packet and forwards it
* to kernel/upper layer
- *
+ *
* @param adapter A pointer to mlan_adapter
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -328,8 +328,8 @@ wlan_ops_uap_process_rx_packet(IN t_void * adapter, IN pmlan_buffer pmbuf)
/**
* @brief This function processes received packet and forwards it
- * to kernel/upper layer or send back to firmware
- *
+ * to kernel/upper layer or send back to firmware
+ *
* @param priv A pointer to mlan_private
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
@@ -435,8 +435,8 @@ wlan_uap_recv_packet(IN mlan_private * priv, IN pmlan_buffer pmbuf)
/**
* @brief This function processes received packet and forwards it
- * to kernel/upper layer or send back to firmware
- *
+ * to kernel/upper layer or send back to firmware
+ *
* @param priv A pointer to mlan_private
* @param pmbuf A pointer to mlan_buffer which includes the received packet
*
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_util.h b/drivers/net/wireless/sd8797/mlan/mlan_util.h
index c5231f6b775e..6274f75054a0 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_util.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_util.h
@@ -47,9 +47,9 @@ typedef struct _mlan_list_head
t_void *plock;
} mlan_list_head, *pmlan_list_head;
-/**
+/**
* @brief This function initializes a list without locking
- *
+ *
* @param phead List head
*
* @return N/A
@@ -61,9 +61,9 @@ util_init_list(pmlan_linked_list phead)
phead->pprev = phead->pnext = (pmlan_linked_list) phead;
}
-/**
+/**
* @brief This function initializes a list
- *
+ *
* @param phead List head
* @param lock_required A flag for spinlock requirement
* @param moal_init_lock A pointer to init lock handler
@@ -85,9 +85,9 @@ util_init_list_head(t_void * pmoal_handle,
phead->plock = 0;
}
-/**
+/**
* @brief This function frees a list
- *
+ *
* @param phead List head
* @param moal_free_lock A pointer to free lock handler
*
@@ -104,9 +104,9 @@ util_free_list_head(t_void * pmoal_handle,
moal_free_lock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function peeks into a list
- *
+ *
* @param phead List head
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -131,9 +131,9 @@ util_peek_list(t_void * pmoal_handle,
return pnode;
}
-/**
+/**
* @brief This function queues a node at the list tail
- *
+ *
* @param phead List head
* @param pnode List node to queue
* @param moal_spin_lock A pointer to spin lock handler
@@ -163,9 +163,9 @@ util_enqueue_list_tail(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function adds a node at the list head
- *
+ *
* @param phead List head
* @param pnode List node to add
* @param moal_spin_lock A pointer to spin lock handler
@@ -195,9 +195,9 @@ util_enqueue_list_head(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function removes a node from the list
- *
+ *
* @param phead List head
* @param pnode List node to remove
* @param moal_spin_lock A pointer to spin lock handler
@@ -228,9 +228,9 @@ util_unlink_list(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, phead->plock);
}
-/**
+/**
* @brief This function dequeues a node from the list
- *
+ *
* @param phead List head
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -285,9 +285,9 @@ typedef enum _MLAN_SCALAR_CONDITIONAL
MLAN_SCALAR_COND_LESS_OR_EQUAL
} MLAN_SCALAR_CONDITIONAL;
-/**
+/**
* @brief This function initializes a scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param val Initial scalar value
* @param plock_to_use A new lock is created if NULL, else lock to use
@@ -314,9 +314,9 @@ util_scalar_init(t_void * pmoal_handle,
}
}
-/**
+/**
* @brief This function frees a scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_free_lock A pointer to free lock handler
*
@@ -331,9 +331,9 @@ util_scalar_free(t_void * pmoal_handle,
moal_free_lock(pmoal_handle, &pscalar->plock);
}
-/**
+/**
* @brief This function reads value from scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -358,9 +358,9 @@ util_scalar_read(t_void * pmoal_handle,
return val;
}
-/**
+/**
* @brief This function writes value to scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param val Value to write
* @param moal_spin_lock A pointer to spin lock handler
@@ -384,9 +384,9 @@ util_scalar_write(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, pscalar->plock);
}
-/**
+/**
* @brief This function increments the value in scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -408,9 +408,9 @@ util_scalar_increment(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, pscalar->plock);
}
-/**
+/**
* @brief This function decrements the value in scalar
- *
+ *
* @param pscalar Pointer to scalar
* @param moal_spin_lock A pointer to spin lock handler
* @param moal_spin_unlock A pointer to spin unlock handler
@@ -432,10 +432,10 @@ util_scalar_decrement(t_void * pmoal_handle,
moal_spin_unlock(pmoal_handle, pscalar->plock);
}
-/**
+/**
* @brief This function adds an offset to the value in scalar,
- * and returns the new value
- *
+ * and returns the new value
+ *
* @param pscalar Pointer to scalar
* @param offset Offset value (can be negative)
* @param moal_spin_lock A pointer to spin lock handler
@@ -463,10 +463,10 @@ util_scalar_offset(t_void * pmoal_handle,
return newval;
}
-/**
+/**
* @brief This function writes the value to the scalar
* if existing value compared with other value is true.
- *
+ *
* @param pscalar Pointer to scalar
* @param condition Condition to check
* @param val_compare Value to compare against current value
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_wmm.c b/drivers/net/wireless/sd8797/mlan/mlan_wmm.c
index 9c9f90be295d..d2c3227aca87 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_wmm.c
+++ b/drivers/net/wireless/sd8797/mlan/mlan_wmm.c
@@ -43,10 +43,10 @@ Change log:
/*
* Upper and Lower threshold for packet queuing in the driver
-
+
* - When the number of packets queued reaches the upper limit,
* the driver will stop the net queue in the app/kernel space.
-
+
* - When the number of packets drops beneath the lower limit after
* having reached the upper limit, the driver will restart the net
* queue.
@@ -84,7 +84,7 @@ static const t_u8 wmm_aci_to_qidx_map[] = { WMM_AC_BE,
WMM_AC_VO
};
-/**
+/**
* This table will be used to store the tid values based on ACs.
* It is initialized to default values per TID.
*/
@@ -100,7 +100,7 @@ t_u8 tos_to_tid[] = {
0x07 /* 1 1 1 AC_VO */
};
-/**
+/**
* This table inverses the tos_to_tid operation to get a priority
* which is in sequential order, and can be compared.
* Use this to compare the priority of two different TIDs.
@@ -115,7 +115,7 @@ t_u8 tos_to_tid_inv[] = { 0x02, /* from tos_to_tid[2] = 0 */
0x07
};
-/**
+/**
* This table will provide the tid value for given ac. This table does not
* change and will be used to copy back the default values to tos_to_tid in
* case of disconnect.
@@ -208,7 +208,7 @@ wlan_wmm_allocate_ralist_node(pmlan_adapter pmadapter, t_u8 * ra)
}
/**
- * @brief Map ACs to TID
+ * @brief Map ACs to TID
*
* @param priv Pointer to the mlan_private driver data struct
* @param queue_priority Queue_priority structure
@@ -270,7 +270,7 @@ wlan_wmm_eval_downgrade_ac(pmlan_private priv, mlan_wmm_ac_e eval_ac)
/* Setup a default return value of the lowest priority */
ret_ac = WMM_AC_BK;
- /*
+ /*
* Find the highest AC that is enabled and does not require admission
* control. The spec disallows downgrading to an AC, which is enabled
* due to a completed admission control. Unadmitted traffic is not
@@ -335,7 +335,7 @@ wlan_wmm_downgrade_tid(pmlan_private priv, t_u32 tid)
priv->wmm.ac_down_graded_vals[wlan_wmm_convert_tos_to_ac(pmadapter,
tid)];
LEAVE();
- /*
+ /*
* Send the index to tid array, picking from the array will be
* taken care by dequeuing function
*/
@@ -470,11 +470,11 @@ wlan_wmm_delete_all_ralist(pmlan_private priv)
/**
* @brief Get queue RA pointer
- *
+ *
* @param priv Pointer to the mlan_private driver data struct
* @param tid TID
* @param ra_addr Pointer to the route address
- *
+ *
* @return ra_list
*/
static raListTbl *
@@ -580,7 +580,7 @@ wlan_send_wmmac_host_event(pmlan_private priv,
/**
* @brief This function gets the highest priority list pointer
- *
+ *
* @param pmadapter A pointer to mlan_adapter
* @param priv A pointer to mlan_private
* @param tid A pointer to return tid
@@ -640,9 +640,9 @@ wlan_wmm_get_highest_priolist_ptr(pmlan_adapter pmadapter,
(pmadapter->pmoal_handle, &tid_ptr->ra_list, MNULL, MNULL))
continue;
- /*
- * Always choose the next ra we transmitted
- * last time, this way we pick the ra's in
+ /*
+ * Always choose the next ra we transmitted
+ * last time, this way we pick the ra's in
* round robin fashion.
*/
head = ptr = tid_ptr->ra_list_curr->pnext;
@@ -711,7 +711,7 @@ wlan_wmm_get_highest_priolist_ptr(pmlan_adapter pmadapter,
/**
* @brief This function gets the number of packets in the Tx queue
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param maxBufSize Maximum buffer size
@@ -742,7 +742,7 @@ wlan_num_pkts_in_txq(mlan_private * priv, raListTbl * ptr, int maxBufSize)
/**
* @brief This function sends a single packet
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param ptrindex ptr's TID index
@@ -825,7 +825,7 @@ wlan_send_single_packet(pmlan_private priv, raListTbl * ptr, int ptrindex)
/**
* @brief This function checks if this mlan_buffer is already processed.
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
*
@@ -846,7 +846,7 @@ wlan_is_ptr_processed(mlan_private * priv, raListTbl * ptr)
/**
* @brief This function sends a single packet that has been processed
- *
+ *
* @param priv A pointer to mlan_private
* @param ptr A pointer to RA list table
* @param ptrindex ptr's TID index
@@ -932,7 +932,7 @@ wlan_send_processed_packet(pmlan_private priv, raListTbl * ptr, int ptrindex)
/**
* @brief This function dequeues a packet
- *
+ *
* @param pmadapter A pointer to mlan_adapter
*
* @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
@@ -963,7 +963,7 @@ wlan_dequeue_tx_packet(pmlan_adapter pmadapter)
of both of function. But, the the bulk of these function will execute
w/o spinlock. Unlocking the spinlock inside these function will help
us avoid taking the spinlock again, check to see if the ptr is still
- valid and then proceed. This is done purely to increase execution time.
+ valid and then proceed. This is done purely to increase execution time.
*/
/* Note:- Also, anybody adding code which does not get into
@@ -1498,11 +1498,11 @@ wlan_wmm_lists_empty(pmlan_adapter pmadapter)
/**
* @brief Get ralist node
- *
+ *
* @param priv Pointer to the mlan_private driver data struct
* @param tid TID
* @param ra_addr Pointer to the route address
- *
+ *
* @return ra_list or MNULL
*/
raListTbl *
@@ -1528,12 +1528,12 @@ wlan_wmm_get_ralist_node(pmlan_private priv, t_u8 tid, t_u8 * ra_addr)
/**
* @brief Check if RA list is valid or not
- *
+ *
* @param priv Pointer to the mlan_private driver data struct
* @param ra_list Pointer to raListTbl
* @param ptrindex TID pointer index
- *
- * @return MTRUE- valid. MFALSE- invalid.
+ *
+ * @return MTRUE- valid. MFALSE- invalid.
*/
int
wlan_is_ralist_valid(mlan_private * priv, raListTbl * ra_list, int ptrindex)
@@ -1686,7 +1686,7 @@ wlan_wmm_add_buf_txqueue(pmlan_adapter pmadapter, pmlan_buffer pmbuf)
tos_to_tid_inv[tid_down], MNULL, MNULL);
}
/* Record the current time the packet was queued; used to determine the
- amount of time the packet was queued in the driver before it was sent to
+ amount of time the packet was queued in the driver before it was sent to
the firmware. The delay is then sent along with the packet to the
firmware for aggregate delay calculation for stats and MSDU lifetime
expiry. */
@@ -1761,7 +1761,7 @@ wlan_ret_wmm_get_status(pmlan_private priv, t_u8 * ptlv, int resp_len)
break;
case WMM_IE:
- /*
+ /*
* Point the regular IEEE IE 2 bytes into the Marvell IE
* and setup the IEEE IE type and length byte fields
*/
@@ -1941,7 +1941,7 @@ wlan_wmm_compute_driver_packet_delay(pmlan_private priv,
queue_delay = (out_ts_sec - pmbuf->in_ts_sec) * 1000;
queue_delay += (out_ts_usec - pmbuf->in_ts_usec) / 1000;
- /*
+ /*
* Queue delay is passed as a uint8 in units of 2ms (ms shifted
* by 1). Min value (other than 0) is therefore 2ms, max is 510ms.
*
@@ -1979,7 +1979,7 @@ wlan_wmm_process_tx(pmlan_adapter pmadapter)
return;
}
-/**
+/**
* @brief select wmm queue
*
* @param pmpriv A pointer to mlan_private structure
@@ -2219,7 +2219,7 @@ wlan_ret_wmm_addts_req(IN pmlan_private pmpriv,
paddts->status_code = (t_u32) presp_addts->ieee_status_code;
if (presp_addts->command_result == MLAN_CMD_RESULT_SUCCESS) {
- /* The tspecData field is potentially variable in size due to extra
+ /* The tspecData field is potentially variable in size due to extra
IEs that may have been in the ADDTS response action frame.
Calculate the data length from the firmware command response. */
paddts->ie_data_len
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_wmm.h b/drivers/net/wireless/sd8797/mlan/mlan_wmm.h
index 89a2c8f37e49..155f99330a05 100644
--- a/drivers/net/wireless/sd8797/mlan/mlan_wmm.h
+++ b/drivers/net/wireless/sd8797/mlan/mlan_wmm.h
@@ -29,7 +29,7 @@ Change log:
/**
* @brief This function gets the TID
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param ptr A pointer to RA list table
*
@@ -51,7 +51,7 @@ wlan_get_tid(pmlan_adapter pmadapter, raListTbl * ptr)
/**
* @brief This function gets the length of a list
- *
+ *
* @param pmadapter A pointer to mlan_adapter structure
* @param head A pointer to mlan_list_head
*
@@ -127,7 +127,7 @@ t_void wlan_wmm_delete_peer_ralist(pmlan_private priv, t_u8 * mac);
#endif
#ifdef STA_SUPPORT
-/*
+/*
* Functions used in the cmd handling routine
*/
/** WMM ADDTS request command handler */
@@ -151,7 +151,7 @@ extern mlan_status wlan_cmd_wmm_ts_status(IN pmlan_private pmpriv,
OUT HostCmd_DS_COMMAND * cmd,
IN t_void * pdata_buf);
-/*
+/*
* Functions used in the cmdresp handling routine
*/
/** WMM get status command response handler */