staging: rtl8192e: Rename bTxDisableRate.., RegMaxLPSAwa.. and bTxUseD..
Rename variable bTxDisableRateFallBack to tx_dis_rate_fallback, RegMaxLPSAwakeIntvl to reg_max_lps_awake_intvl and bTxUseDriverAssingedRate to tx_use_drv_assinged_rate 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/092eb2dc73d37daf851ea9ef9cb7e4df6f766845.1668313325.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7209757311
commit
b397fc48c5
|
@ -1136,8 +1136,8 @@ void rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
|
|||
cb_desc->priority);
|
||||
pdesc->TxFWInfoSize = sizeof(struct tx_fwinfo_8190pci);
|
||||
|
||||
pdesc->DISFB = cb_desc->bTxDisableRateFallBack;
|
||||
pdesc->USERATE = cb_desc->bTxUseDriverAssingedRate;
|
||||
pdesc->DISFB = cb_desc->tx_dis_rate_fallback;
|
||||
pdesc->USERATE = cb_desc->tx_use_drv_assinged_rate;
|
||||
|
||||
pdesc->FirstSeg = 1;
|
||||
pdesc->LastSeg = 1;
|
||||
|
|
|
@ -494,8 +494,8 @@ static void _rtl92e_prepare_beacon(struct tasklet_struct *t)
|
|||
tcb_desc->queue_index = BEACON_QUEUE;
|
||||
tcb_desc->data_rate = 2;
|
||||
tcb_desc->RATRIndex = 7;
|
||||
tcb_desc->bTxDisableRateFallBack = 1;
|
||||
tcb_desc->bTxUseDriverAssingedRate = 1;
|
||||
tcb_desc->tx_dis_rate_fallback = 1;
|
||||
tcb_desc->tx_use_drv_assinged_rate = 1;
|
||||
skb_push(pnewskb, priv->rtllib->tx_headroom);
|
||||
|
||||
pdesc = &ring->desc[0];
|
||||
|
@ -822,7 +822,7 @@ static void _rtl92e_init_priv_constant(struct net_device *dev)
|
|||
struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)
|
||||
&priv->rtllib->PowerSaveControl;
|
||||
|
||||
pPSC->RegMaxLPSAwakeIntvl = 5;
|
||||
pPSC->reg_max_lps_awake_intvl = 5;
|
||||
}
|
||||
|
||||
static void _rtl92e_init_priv_variable(struct net_device *dev)
|
||||
|
@ -1538,8 +1538,8 @@ static int _rtl92e_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
}
|
||||
|
||||
tcb_desc->RATRIndex = 7;
|
||||
tcb_desc->bTxDisableRateFallBack = 1;
|
||||
tcb_desc->bTxUseDriverAssingedRate = 1;
|
||||
tcb_desc->tx_dis_rate_fallback = 1;
|
||||
tcb_desc->tx_use_drv_assinged_rate = 1;
|
||||
tcb_desc->bTxEnableFwCalcDur = 1;
|
||||
skb_push(skb, priv->rtllib->tx_headroom);
|
||||
ret = _rtl92e_tx(dev, skb);
|
||||
|
|
|
@ -196,7 +196,7 @@ static int _rtl92e_wx_set_lps_awake_interval(struct net_device *dev,
|
|||
netdev_info(dev, "%s(): set lps awake interval ! extra is %d\n",
|
||||
__func__, *extra);
|
||||
|
||||
pPSC->RegMaxLPSAwakeIntvl = *extra;
|
||||
pPSC->reg_max_lps_awake_intvl = *extra;
|
||||
mutex_unlock(&priv->wx_mutex);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -91,8 +91,8 @@ void HTUpdateDefaultSetting(struct rtllib_device *ieee)
|
|||
pHTInfo->self_mimo_ps = 3;
|
||||
if (pHTInfo->self_mimo_ps == 2)
|
||||
pHTInfo->self_mimo_ps = 3;
|
||||
ieee->bTxDisableRateFallBack = 0;
|
||||
ieee->bTxUseDriverAssingedRate = 0;
|
||||
ieee->tx_dis_rate_fallback = 0;
|
||||
ieee->tx_use_drv_assinged_rate = 0;
|
||||
|
||||
ieee->bTxEnableFwCalcDur = 1;
|
||||
|
||||
|
|
|
@ -126,8 +126,8 @@ struct cb_desc {
|
|||
u8 bFirstSeg:1;
|
||||
u8 bLastSeg:1;
|
||||
u8 bEncrypt:1;
|
||||
u8 bTxDisableRateFallBack:1;
|
||||
u8 bTxUseDriverAssingedRate:1;
|
||||
u8 tx_dis_rate_fallback:1;
|
||||
u8 tx_use_drv_assinged_rate:1;
|
||||
u8 bHwSec:1;
|
||||
|
||||
u8 nStuckCount;
|
||||
|
@ -1256,7 +1256,7 @@ struct rt_pwr_save_ctrl {
|
|||
|
||||
bool bLeisurePs;
|
||||
u8 LpsIdleCount;
|
||||
u8 RegMaxLPSAwakeIntvl;
|
||||
u8 reg_max_lps_awake_intvl;
|
||||
u8 LPSAwakeIntvl;
|
||||
|
||||
u32 CurPsLevel;
|
||||
|
@ -1441,8 +1441,8 @@ struct rtllib_device {
|
|||
u8 RegHTSuppRateSet[16];
|
||||
u8 HTCurrentOperaRate;
|
||||
u8 HTHighestOperaRate;
|
||||
u8 bTxDisableRateFallBack;
|
||||
u8 bTxUseDriverAssingedRate;
|
||||
u8 tx_dis_rate_fallback;
|
||||
u8 tx_use_drv_assinged_rate;
|
||||
u8 bTxEnableFwCalcDur;
|
||||
atomic_t atm_swbw;
|
||||
|
||||
|
|
|
@ -220,8 +220,8 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct rtllib_device *ieee)
|
|||
|
||||
tcb_desc->data_rate = MgntQuery_MgntFrameTxRate(ieee);
|
||||
tcb_desc->RATRIndex = 7;
|
||||
tcb_desc->bTxDisableRateFallBack = 1;
|
||||
tcb_desc->bTxUseDriverAssingedRate = 1;
|
||||
tcb_desc->tx_dis_rate_fallback = 1;
|
||||
tcb_desc->tx_use_drv_assinged_rate = 1;
|
||||
if (single) {
|
||||
if (ieee->queue_stop) {
|
||||
enqueue_mgmt(ieee, skb);
|
||||
|
@ -298,8 +298,8 @@ softmac_ps_mgmt_xmit(struct sk_buff *skb,
|
|||
|
||||
tcb_desc->data_rate = MgntQuery_MgntFrameTxRate(ieee);
|
||||
tcb_desc->RATRIndex = 7;
|
||||
tcb_desc->bTxDisableRateFallBack = 1;
|
||||
tcb_desc->bTxUseDriverAssingedRate = 1;
|
||||
tcb_desc->tx_dis_rate_fallback = 1;
|
||||
tcb_desc->tx_use_drv_assinged_rate = 1;
|
||||
if (single) {
|
||||
if (type != RTLLIB_FTYPE_CTL) {
|
||||
header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
|
||||
|
@ -1996,12 +1996,12 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
|
|||
|
||||
if (pPSC->LPSAwakeIntvl == 0)
|
||||
pPSC->LPSAwakeIntvl = 1;
|
||||
if (pPSC->RegMaxLPSAwakeIntvl == 0)
|
||||
if (pPSC->reg_max_lps_awake_intvl == 0)
|
||||
MaxPeriod = 1;
|
||||
else if (pPSC->RegMaxLPSAwakeIntvl == 0xFF)
|
||||
else if (pPSC->reg_max_lps_awake_intvl == 0xFF)
|
||||
MaxPeriod = ieee->current_network.dtim_period;
|
||||
else
|
||||
MaxPeriod = pPSC->RegMaxLPSAwakeIntvl;
|
||||
MaxPeriod = pPSC->reg_max_lps_awake_intvl;
|
||||
pPSC->LPSAwakeIntvl = (pPSC->LPSAwakeIntvl >=
|
||||
MaxPeriod) ? MaxPeriod :
|
||||
(pPSC->LPSAwakeIntvl + 1);
|
||||
|
|
|
@ -477,13 +477,13 @@ NO_PROTECTION:
|
|||
static void rtllib_txrate_selectmode(struct rtllib_device *ieee,
|
||||
struct cb_desc *tcb_desc)
|
||||
{
|
||||
if (ieee->bTxDisableRateFallBack)
|
||||
tcb_desc->bTxDisableRateFallBack = true;
|
||||
if (ieee->tx_dis_rate_fallback)
|
||||
tcb_desc->tx_dis_rate_fallback = true;
|
||||
|
||||
if (ieee->bTxUseDriverAssingedRate)
|
||||
tcb_desc->bTxUseDriverAssingedRate = true;
|
||||
if (!tcb_desc->bTxDisableRateFallBack ||
|
||||
!tcb_desc->bTxUseDriverAssingedRate) {
|
||||
if (ieee->tx_use_drv_assinged_rate)
|
||||
tcb_desc->tx_use_drv_assinged_rate = true;
|
||||
if (!tcb_desc->tx_dis_rate_fallback ||
|
||||
!tcb_desc->tx_use_drv_assinged_rate) {
|
||||
if (ieee->iw_mode == IW_MODE_INFRA ||
|
||||
ieee->iw_mode == IW_MODE_ADHOC)
|
||||
tcb_desc->RATRIndex = 0;
|
||||
|
@ -886,14 +886,14 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
|
|||
HT_IOT_ACT_WA_IOT_Broadcom) {
|
||||
tcb_desc->data_rate =
|
||||
MgntQuery_TxRateExcludeCCKRates(ieee);
|
||||
tcb_desc->bTxDisableRateFallBack = false;
|
||||
tcb_desc->tx_dis_rate_fallback = false;
|
||||
} else {
|
||||
tcb_desc->data_rate = ieee->basic_rate;
|
||||
tcb_desc->bTxDisableRateFallBack = 1;
|
||||
tcb_desc->tx_dis_rate_fallback = 1;
|
||||
}
|
||||
|
||||
tcb_desc->RATRIndex = 7;
|
||||
tcb_desc->bTxUseDriverAssingedRate = 1;
|
||||
tcb_desc->tx_use_drv_assinged_rate = 1;
|
||||
} else {
|
||||
if (is_multicast_ether_addr(header.addr1))
|
||||
tcb_desc->bMulticast = 1;
|
||||
|
@ -910,14 +910,14 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
|
|||
HT_IOT_ACT_WA_IOT_Broadcom) {
|
||||
tcb_desc->data_rate =
|
||||
MgntQuery_TxRateExcludeCCKRates(ieee);
|
||||
tcb_desc->bTxDisableRateFallBack = false;
|
||||
tcb_desc->tx_dis_rate_fallback = false;
|
||||
} else {
|
||||
tcb_desc->data_rate = MGN_1M;
|
||||
tcb_desc->bTxDisableRateFallBack = 1;
|
||||
tcb_desc->tx_dis_rate_fallback = 1;
|
||||
}
|
||||
|
||||
tcb_desc->RATRIndex = 7;
|
||||
tcb_desc->bTxUseDriverAssingedRate = 1;
|
||||
tcb_desc->tx_use_drv_assinged_rate = 1;
|
||||
tcb_desc->bdhcp = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue