mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
staging: rtl8192e: Rename dot11Cur..., bCurTxBW40MHz and bCurrentRT2...
Rename variable dot11CurrentPreambleMode to dot11_current_preamble_mode, bCurTxBW40MHz to cur_tx_bw40mhz and bCurrentRT2RTLongSlotTime to current_rt2rt_long_slot_time to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/97c4f62da9a98b0ddcdaafae68182e3eb47f9a17.1664055213.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b7dd95be88
commit
92b2f4b851
|
|
@ -822,7 +822,7 @@ static void _rtl92e_net_update(struct net_device *dev)
|
|||
|
||||
net = &priv->rtllib->current_network;
|
||||
rtl92e_config_rate(dev, &rate_config);
|
||||
priv->dot11CurrentPreambleMode = PREAMBLE_AUTO;
|
||||
priv->dot11_current_preamble_mode = PREAMBLE_AUTO;
|
||||
priv->basic_rate = rate_config &= 0x15f;
|
||||
rtl92e_writew(dev, BSSIDR, *(u16 *)net->bssid);
|
||||
rtl92e_writel(dev, BSSIDR + 2, *(u32 *)(net->bssid + 2));
|
||||
|
|
@ -1998,10 +1998,10 @@ void rtl92e_update_ratr_table(struct net_device *dev)
|
|||
break;
|
||||
}
|
||||
ratr_value &= 0x0FFFFFFF;
|
||||
if (ieee->pHTInfo->bCurTxBW40MHz &&
|
||||
if (ieee->pHTInfo->cur_tx_bw40mhz &&
|
||||
ieee->pHTInfo->bCurShortGI40MHz)
|
||||
ratr_value |= 0x80000000;
|
||||
else if (!ieee->pHTInfo->bCurTxBW40MHz &&
|
||||
else if (!ieee->pHTInfo->cur_tx_bw40mhz &&
|
||||
ieee->pHTInfo->bCurShortGI20MHz)
|
||||
ratr_value |= 0x80000000;
|
||||
rtl92e_writel(dev, RATR0+rate_index*4, ratr_value);
|
||||
|
|
|
|||
|
|
@ -287,16 +287,16 @@ static void _rtl92e_update_cap(struct net_device *dev, u16 cap)
|
|||
bool ShortPreamble;
|
||||
|
||||
if (cap & WLAN_CAPABILITY_SHORT_PREAMBLE) {
|
||||
if (priv->dot11CurrentPreambleMode != PREAMBLE_SHORT) {
|
||||
if (priv->dot11_current_preamble_mode != PREAMBLE_SHORT) {
|
||||
ShortPreamble = true;
|
||||
priv->dot11CurrentPreambleMode = PREAMBLE_SHORT;
|
||||
priv->dot11_current_preamble_mode = PREAMBLE_SHORT;
|
||||
priv->rtllib->SetHwRegHandler(dev, HW_VAR_ACK_PREAMBLE,
|
||||
(unsigned char *)&ShortPreamble);
|
||||
}
|
||||
} else {
|
||||
if (priv->dot11CurrentPreambleMode != PREAMBLE_LONG) {
|
||||
if (priv->dot11_current_preamble_mode != PREAMBLE_LONG) {
|
||||
ShortPreamble = false;
|
||||
priv->dot11CurrentPreambleMode = PREAMBLE_LONG;
|
||||
priv->dot11_current_preamble_mode = PREAMBLE_LONG;
|
||||
priv->rtllib->SetHwRegHandler(dev, HW_VAR_ACK_PREAMBLE,
|
||||
(unsigned char *)&ShortPreamble);
|
||||
}
|
||||
|
|
@ -307,7 +307,7 @@ static void _rtl92e_update_cap(struct net_device *dev, u16 cap)
|
|||
u8 cur_slot_time = priv->slot_time;
|
||||
|
||||
if ((cap & WLAN_CAPABILITY_SHORT_SLOT_TIME) &&
|
||||
(!priv->rtllib->pHTInfo->bCurrentRT2RTLongSlotTime)) {
|
||||
(!priv->rtllib->pHTInfo->current_rt2rt_long_slot_time)) {
|
||||
if (cur_slot_time != SHORT_SLOT_TIME) {
|
||||
slot_time_val = SHORT_SLOT_TIME;
|
||||
priv->rtllib->SetHwRegHandler(dev,
|
||||
|
|
@ -341,7 +341,7 @@ static void _rtl92e_update_beacon(void *data)
|
|||
|
||||
if (ieee->pHTInfo->bCurrentHTSupport)
|
||||
HT_update_self_and_peer_setting(ieee, net);
|
||||
ieee->pHTInfo->bCurrentRT2RTLongSlotTime = net->bssht.bd_rt2rt_long_slot_time;
|
||||
ieee->pHTInfo->current_rt2rt_long_slot_time = net->bssht.bd_rt2rt_long_slot_time;
|
||||
ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.rt2rt_ht_mode;
|
||||
_rtl92e_update_cap(dev, net->capability);
|
||||
}
|
||||
|
|
@ -833,7 +833,7 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
|
|||
u8 i;
|
||||
|
||||
priv->AcmMethod = eAcmWay2_SW;
|
||||
priv->dot11CurrentPreambleMode = PREAMBLE_AUTO;
|
||||
priv->dot11_current_preamble_mode = PREAMBLE_AUTO;
|
||||
priv->rtllib->status = 0;
|
||||
priv->polling_timer_on = 0;
|
||||
priv->up_first_time = 1;
|
||||
|
|
|
|||
|
|
@ -430,7 +430,7 @@ struct r8192_priv {
|
|||
|
||||
u16 basic_rate;
|
||||
u8 short_preamble;
|
||||
u8 dot11CurrentPreambleMode;
|
||||
u8 dot11_current_preamble_mode;
|
||||
u8 slot_time;
|
||||
u16 SifsTime;
|
||||
|
||||
|
|
|
|||
|
|
@ -343,9 +343,9 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev)
|
|||
|
||||
if (priv->rtllib->state == RTLLIB_LINKED) {
|
||||
|
||||
bshort_gi_enabled = (pHTInfo->bCurTxBW40MHz &&
|
||||
bshort_gi_enabled = (pHTInfo->cur_tx_bw40mhz &&
|
||||
pHTInfo->bCurShortGI40MHz) ||
|
||||
(!pHTInfo->bCurTxBW40MHz &&
|
||||
(!pHTInfo->cur_tx_bw40mhz &&
|
||||
pHTInfo->bCurShortGI20MHz);
|
||||
|
||||
pra->upper_rssi_threshold_ratr =
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ struct rt_hi_throughput {
|
|||
u8 PeerMimoPs;
|
||||
|
||||
enum ht_extchnl_offset CurSTAExtChnlOffset;
|
||||
u8 bCurTxBW40MHz;
|
||||
u8 cur_tx_bw40mhz;
|
||||
u8 PeerBandwidth;
|
||||
|
||||
u8 bSwBwInProgress;
|
||||
|
|
@ -157,7 +157,7 @@ struct rt_hi_throughput {
|
|||
u8 bRegRT2RTAggregation;
|
||||
u8 RT2RT_HT_Mode;
|
||||
u8 bCurrentRT2RTAggregation;
|
||||
u8 bCurrentRT2RTLongSlotTime;
|
||||
u8 current_rt2rt_long_slot_time;
|
||||
u8 szRT2RTAggBuffer[10];
|
||||
|
||||
u8 bRegRxReorderEnable;
|
||||
|
|
|
|||
|
|
@ -543,7 +543,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
|
|||
#endif
|
||||
HTSetConnectBwMode(ieee, (enum ht_channel_width)(pPeerHTCap->ChlWidth),
|
||||
(enum ht_extchnl_offset)(pPeerHTInfo->ExtChlOffset));
|
||||
pHTInfo->bCurTxBW40MHz = ((pPeerHTInfo->RecommemdedTxWidth == 1) ?
|
||||
pHTInfo->cur_tx_bw40mhz = ((pPeerHTInfo->RecommemdedTxWidth == 1) ?
|
||||
true : false);
|
||||
|
||||
pHTInfo->bCurShortGI20MHz = ((pHTInfo->bRegShortGI20MHz) ?
|
||||
|
|
@ -633,7 +633,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee)
|
|||
pHTInfo->bCurrentHTSupport = false;
|
||||
|
||||
pHTInfo->bCurBW40MHz = false;
|
||||
pHTInfo->bCurTxBW40MHz = false;
|
||||
pHTInfo->cur_tx_bw40mhz = false;
|
||||
|
||||
pHTInfo->bCurShortGI20MHz = false;
|
||||
pHTInfo->bCurShortGI40MHz = false;
|
||||
|
|
@ -660,7 +660,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee)
|
|||
pHTInfo->ePeerHTSpecVer = HT_SPEC_VER_IEEE;
|
||||
|
||||
pHTInfo->bCurrentRT2RTAggregation = false;
|
||||
pHTInfo->bCurrentRT2RTLongSlotTime = false;
|
||||
pHTInfo->current_rt2rt_long_slot_time = false;
|
||||
pHTInfo->RT2RT_HT_Mode = (enum rt_ht_capability)0;
|
||||
|
||||
pHTInfo->IOTPeer = 0;
|
||||
|
|
@ -720,12 +720,12 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
|
|||
if (pHTInfo->bRegRT2RTAggregation) {
|
||||
pHTInfo->bCurrentRT2RTAggregation =
|
||||
pNetwork->bssht.bd_rt2rt_aggregation;
|
||||
pHTInfo->bCurrentRT2RTLongSlotTime =
|
||||
pHTInfo->current_rt2rt_long_slot_time =
|
||||
pNetwork->bssht.bd_rt2rt_long_slot_time;
|
||||
pHTInfo->RT2RT_HT_Mode = pNetwork->bssht.rt2rt_ht_mode;
|
||||
} else {
|
||||
pHTInfo->bCurrentRT2RTAggregation = false;
|
||||
pHTInfo->bCurrentRT2RTLongSlotTime = false;
|
||||
pHTInfo->current_rt2rt_long_slot_time = false;
|
||||
pHTInfo->RT2RT_HT_Mode = (enum rt_ht_capability)0;
|
||||
}
|
||||
|
||||
|
|
@ -757,7 +757,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
|
|||
} else {
|
||||
pHTInfo->bCurrentHTSupport = false;
|
||||
pHTInfo->bCurrentRT2RTAggregation = false;
|
||||
pHTInfo->bCurrentRT2RTLongSlotTime = false;
|
||||
pHTInfo->current_rt2rt_long_slot_time = false;
|
||||
pHTInfo->RT2RT_HT_Mode = (enum rt_ht_capability)0;
|
||||
|
||||
pHTInfo->IOTAction = 0;
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,
|
|||
|
||||
if ((tcb_desc->data_rate & 0x80) == 0)
|
||||
return;
|
||||
if (pHTInfo->bCurBW40MHz && pHTInfo->bCurTxBW40MHz &&
|
||||
if (pHTInfo->bCurBW40MHz && pHTInfo->cur_tx_bw40mhz &&
|
||||
!ieee->bandwidth_auto_switch.bforced_tx20Mhz)
|
||||
tcb_desc->bPacketBW = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user