mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
staging: rtl8723bs: Rename supportRate and SupportRateNum to snake_case
renamed variables supportRate and supportRateNum to support_rate and
support_rate_num to adhere to the linux kernel coding style which mandates
snake_case for variable names.
This fixes the following checkpatch.pl warning:
CHECK: Avoid CamelCase: <supportRate>
CHECK: Avoid CamelCase: <supportRateNum>
Signed-off-by: Matous Jarolim <matous.jarolim.lkml@gmail.com>
Link: https://patch.msgid.link/20260113170346.557634-1-matous.jarolim.lkml@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4e4d7aebab
commit
fbe3606992
|
|
@ -368,7 +368,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
|
|||
void update_bmc_sta(struct adapter *padapter)
|
||||
{
|
||||
unsigned char network_type;
|
||||
int supportRateNum = 0;
|
||||
int support_rate_num = 0;
|
||||
unsigned int tx_ra_bitmap = 0;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
|
@ -392,9 +392,9 @@ void update_bmc_sta(struct adapter *padapter)
|
|||
memset((void *)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
|
||||
|
||||
/* prepare for add_RATid */
|
||||
supportRateNum = rtw_get_rateset_len((u8 *)&pcur_network->supported_rates);
|
||||
support_rate_num = rtw_get_rateset_len((u8 *)&pcur_network->supported_rates);
|
||||
network_type = rtw_check_network_type((u8 *)&pcur_network->supported_rates,
|
||||
supportRateNum,
|
||||
support_rate_num,
|
||||
pcur_network->configuration.ds_config
|
||||
);
|
||||
if (is_supported_tx_cck(network_type)) {
|
||||
|
|
@ -807,8 +807,8 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
u16 cap, ht_cap = false;
|
||||
uint ie_len = 0;
|
||||
int group_cipher, pairwise_cipher;
|
||||
u8 channel, network_type, supportRate[NDIS_802_11_LENGTH_RATES_EX];
|
||||
int supportRateNum = 0;
|
||||
u8 channel, network_type, support_rate[NDIS_802_11_LENGTH_RATES_EX];
|
||||
int support_rate_num = 0;
|
||||
u8 OUI1[] = {0x00, 0x50, 0xf2, 0x01};
|
||||
u8 WMM_PARA_IE[] = {0x00, 0x50, 0xf2, 0x02, 0x01, 0x01};
|
||||
struct registry_priv *pregistrypriv = &padapter->registrypriv;
|
||||
|
|
@ -870,15 +870,15 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
|
||||
pbss_network->configuration.ds_config = channel;
|
||||
|
||||
memset(supportRate, 0, NDIS_802_11_LENGTH_RATES_EX);
|
||||
memset(support_rate, 0, NDIS_802_11_LENGTH_RATES_EX);
|
||||
/* get supported rates */
|
||||
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_,
|
||||
WLAN_EID_SUPP_RATES,
|
||||
&ie_len,
|
||||
(pbss_network->ie_length - _BEACON_IE_OFFSET_));
|
||||
if (p) {
|
||||
memcpy(supportRate, p + 2, ie_len);
|
||||
supportRateNum = ie_len;
|
||||
memcpy(support_rate, p + 2, ie_len);
|
||||
support_rate_num = ie_len;
|
||||
}
|
||||
|
||||
/* get ext_supported rates */
|
||||
|
|
@ -887,11 +887,11 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
&ie_len,
|
||||
pbss_network->ie_length - _BEACON_IE_OFFSET_);
|
||||
if (p) {
|
||||
memcpy(supportRate + supportRateNum, p + 2, ie_len);
|
||||
supportRateNum += ie_len;
|
||||
memcpy(support_rate + support_rate_num, p + 2, ie_len);
|
||||
support_rate_num += ie_len;
|
||||
}
|
||||
|
||||
network_type = rtw_check_network_type(supportRate, supportRateNum, channel);
|
||||
network_type = rtw_check_network_type(support_rate, support_rate_num, channel);
|
||||
|
||||
rtw_set_supported_rate(pbss_network->supported_rates, network_type);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user