diff options
Diffstat (limited to 'drivers/net/wireless/sd8797/mlinux/moal_wext.c')
-rw-r--r-- | drivers/net/wireless/sd8797/mlinux/moal_wext.c | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/drivers/net/wireless/sd8797/mlinux/moal_wext.c b/drivers/net/wireless/sd8797/mlinux/moal_wext.c index 9b5ce1333ee8..8595892090fb 100644 --- a/drivers/net/wireless/sd8797/mlinux/moal_wext.c +++ b/drivers/net/wireless/sd8797/mlinux/moal_wext.c @@ -173,7 +173,7 @@ woal_set_nick(struct net_device *dev, struct iw_request_info *info, { moal_private *priv = (moal_private *) netdev_priv(dev); ENTER(); - /* + /* * Check the size of the string */ if (dwrq->length > 16) { @@ -202,16 +202,16 @@ woal_get_nick(struct net_device *dev, struct iw_request_info *info, { moal_private *priv = (moal_private *) netdev_priv(dev); ENTER(); - /* + /* * Get the Nick Name saved */ strncpy(extra, (char *) priv->nick_name, 16); extra[16] = '\0'; - /* + /* * If none, we may want to get the one that was set */ - /* + /* * Push it out ! */ dwrq->length = strlen(extra) + 1; @@ -285,8 +285,8 @@ woal_set_freq(struct net_device *dev, struct iw_request_info *info, goto done; } bss = (mlan_ds_bss *) req->pbuf; - /* - * If setting by frequency, convert to a channel + /* + * If setting by frequency, convert to a channel */ if (fwrq->e == 1) { long f = fwrq->m / 100000; @@ -704,9 +704,9 @@ woal_get_txpow(struct net_device *dev, struct iw_request_info *info, return ret; } -/** - * @brief Set power management - * +/** + * @brief Set power management + * * @param dev A pointer to net_device structure * @param info A pointer to iw_request_info structure * @param vwrq A pointer to iw_param structure @@ -735,9 +735,9 @@ woal_set_power(struct net_device *dev, struct iw_request_info *info, return ret; } -/** - * @brief Get power management - * +/** + * @brief Get power management + * * @param dev A pointer to net_device structure * @param info A pointer to iw_request_info structure * @param vwrq A pointer to iw_param structure @@ -791,7 +791,7 @@ woal_set_retry(struct net_device *dev, struct iw_request_info *info, ENTER(); if (vwrq->flags == IW_RETRY_LIMIT) { - /* + /* * The MAC has a 4-bit Total_Tx_Count register * Total_Tx_Count = 1 + Tx_Retry_Count */ @@ -908,20 +908,20 @@ woal_set_encode(struct net_device *dev, struct iw_request_info *info, else sec->param.encrypt_key.key_len = MIN_WEP_KEY_SIZE; } else { - /* - * No key provided so it is either enable key, + /* + * No key provided so it is either enable key, * on or off */ if (dwrq->flags & IW_ENCODE_DISABLED) { PRINTM(MINFO, "*** iwconfig mlanX key off ***\n"); sec->param.encrypt_key.key_disable = MTRUE; } else { - /* + /* * iwconfig mlanX key [n] - * iwconfig mlanX key on + * iwconfig mlanX key on * iwconfig mlanX key open * iwconfig mlanX key restricted - * Do we want to just set the transmit key index ? + * Do we want to just set the transmit key index ? */ if (index < 0) { PRINTM(MINFO, "*** iwconfig mlanX key on ***\n"); @@ -999,8 +999,8 @@ woal_get_encode(struct net_device *dev, struct iw_request_info *info, goto done; } dwrq->flags = 0; - /* - * Check encryption mode + /* + * Check encryption mode */ switch (auth_mode) { case MLAN_AUTH_MODE_OPEN: @@ -1325,8 +1325,8 @@ woal_get_gen_ie(struct net_device *dev, struct iw_request_info *info, /** * @brief Set IE * - * Pass an opaque block of data, expected to be IEEE IEs, to the driver - * for eventual passthrough to the firmware in an associate/join + * 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. * * @param dev A pointer to net_device structure @@ -1384,8 +1384,8 @@ woal_set_gen_ie(struct net_device *dev, struct iw_request_info *info, return ret; } -/** - * @brief Extended version of encoding configuration +/** + * @brief Extended version of encoding configuration * * @param dev A pointer to net_device structure * @param info A pointer to iw_request_info structure @@ -1498,8 +1498,8 @@ woal_set_encode_ext(struct net_device *dev, return ret; } -/** - * @brief Extended version of encoding configuration +/** + * @brief Extended version of encoding configuration * * @param dev A pointer to net_device structure * @param info A pointer to iw_request_info structure @@ -1518,8 +1518,8 @@ woal_get_encode_ext(struct net_device *dev, return -EOPNOTSUPP; } -/** - * @brief Request MLME operation +/** + * @brief Request MLME operation * * @param dev A pointer to net_device structure * @param info A pointer to iw_request_info structure @@ -1819,7 +1819,7 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info, woal_sort_channels(&range->freq[0], range->num_frequency); - /* + /* * Set an indication of the max TCP throughput in bit/s that we can * expect using this interface */ @@ -1856,12 +1856,12 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info, range->pmt_flags = IW_POWER_TIMEOUT; range->pm_capa = IW_POWER_PERIOD | IW_POWER_TIMEOUT | IW_POWER_ALL_R; - /* + /* * Minimum version we recommend */ range->we_version_source = 15; - /* + /* * Version we are compiled with */ range->we_version_compiled = WIRELESS_EXT; @@ -1872,10 +1872,10 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info, range->min_retry = MLAN_TX_RETRY_MIN; range->max_retry = MLAN_TX_RETRY_MAX; - /* + /* * Set the qual, level and noise range values */ - /* + /* * need to put the right values here */ /** Maximum quality percentage */ @@ -1892,7 +1892,7 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info, range->sensitivity = 0; - /* + /* * Setup the supported power level ranges */ memset(range->txpower, 0, sizeof(range->txpower)); @@ -1911,13 +1911,13 @@ woal_get_range(struct net_device *dev, struct iw_request_info *info, } #ifdef MEF_CFG_RX_FILTER -/** +/** * @brief Enable/disable Rx broadcast/multicast filter in non-HS mode * * @param priv A pointer to moal_private structure * @param enable MTRUE/MFALSE: enable/disable * - * @return 0 -- success, otherwise fail + * @return 0 -- success, otherwise fail */ static int woal_set_rxfilter(moal_private * priv, BOOLEAN enable) @@ -1955,7 +1955,7 @@ woal_set_rxfilter(moal_private * priv, BOOLEAN enable) #endif /** - * @brief Set priv command + * @brief Set priv command * * @param dev A pointer to net_device structure * @param info A pointer to iw_request_info structure @@ -2322,7 +2322,7 @@ woal_set_essid(struct net_device *dev, struct iw_request_info *info, req_ssid.ssid_len = dwrq->length - 1; #endif - /* + /* * Check if we asked for `any' or 'particular' */ if (!dwrq->flags) { @@ -2410,9 +2410,9 @@ woal_set_essid(struct net_device *dev, struct iw_request_info *info, return ret; } -/** - * @brief Get current essid - * +/** + * @brief Get current essid + * * @param dev A pointer to net_device structure * @param info A pointer to iw_request_info structure * @param dwrq A pointer to iw_point structure @@ -2753,7 +2753,7 @@ woal_get_scan(struct net_device *dev, struct iw_request_info *info, #endif current_val = current_ev + IW_EV_LCP_LEN; - /* + /* * Check if we added any event */ if ((unsigned int) (current_val - current_ev) > IW_EV_LCP_LEN) @@ -2870,9 +2870,9 @@ static const iw_handler woal_private_handler[] = { #if WIRELESS_EXT > 14 -/** +/** * @brief This function sends customized event to application. - * + * * @param priv A pointer to moal_private structure * @param str A pointer to event string * @@ -2904,11 +2904,11 @@ woal_send_iwevcustom_event(moal_private * priv, t_s8 * str) #endif #if WIRELESS_EXT >= 18 -/** +/** * @brief This function sends mic error event to application. - * + * * @param priv A pointer to moal_private structure - * @param event MIC MERROR EVENT. + * @param event MIC MERROR EVENT. * * @return N/A */ @@ -3006,7 +3006,7 @@ woal_get_wireless_stats(struct net_device *dev) ENTER(); - /* + /* * Since schedule() is not allowed from an atomic context * such as when dev_base_lock for netdevices is acquired * for reading/writing in kernel before this call, HostCmd |