staging: rtl8192e: this patch series renames (5) different variables
cover staging: rtl8192e: this patch series renames (5) different variables
Hi,
This patch series renames 5 different variables with the checkpatch coding style issue, Avoid CamelCase.
Patch 1/5) renamed variable bAMSDU_Support
Patch 2/5) renamed variable bAMPD?U_Enable
Patch 3/5) renamed variable AMPDU_factor
Patch 4/5) renamed variable MPDU_Density
Patch 5/5) renamed variable bTxEnableFwCalcDur
Gary Rookard (5):
staging: rtl8192e: renamed variable bAMSDU_Support
staging: rtl8192e: renamed variable bAMPDUEnable
staging: rtl8192e: renamed variable AMPDU_Factor
staging: rtl8192e: renamed variable MPDU_Density
staging: rtl8192e: renamed variable bTxEnableFwCalcDur
.../staging/rtl8192e/rtl8192e/r8192E_dev.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl819x_HT.h | 8 +++---- drivers/staging/rtl8192e/rtl819x_HTProc.c | 24 +++++++++---------- drivers/staging/rtl8192e/rtllib.h | 6 ++--- drivers/staging/rtl8192e/rtllib_tx.c | 10 ++++---- 6 files changed, 27 insertions(+), 27 deletions(-)
Signature · 1 line
2.41.0
PATCH 1/5 staging: rtl8192e: renamed variable bAMSDU_Support
Coding style issue, checkpatch Avoid CamelCase,
rename it. bAMSDU_Suppport -> amsdu_support
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -107,7 +107,7 @@ struct rt_hi_throughput {struct ht_info_ele SelfHTInfo;u8 PeerHTCapBuf[32 ];u8 PeerHTInfoBuf[32 ]; -u8 bAMSDU_Support; +u8 amsdu_support;u16 amsdu_max_size;u8 bCurrent_AMSDU_Support;u16 nCurrent_AMSDU_MaxSize;
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -82,7 +82,7 @@ void ht_update_default_setting(struct rtllib_device *ieee) ht_info->reg_supp_cck = true; ht_info->amsdu_max_size =7935UL ; - ht_info->bAMSDU_Support =0 ; + ht_info->amsdu_support =0 ; ht_info->bAMPDUEnable =1 ; ht_info->AMPDU_Factor =2 ;
@@ -489,7 +489,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) ((pPeerHTCap->DssCCk ==1 ) ? true : false) : false); - ht_info->bCurrent_AMSDU_Support = ht_info->bAMSDU_Support; + ht_info->bCurrent_AMSDU_Support = ht_info->amsdu_support; nMaxAMSDUSize = (pPeerHTCap->MaxAMSDUSize ==0 ) ?3839 :7935 ;
Signature · 1 line
2.41.0
PATCH 2/5 staging: rtl8192e: renamed variable bAMPDUEnable
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase,
rename it. bAMPDUEnable -> ampdu_enable
--- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +1 -1
@@ -883,7 +883,7 @@ void rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc, pTxFwInfo->Short =_rtl92e_query_is_short (pTxFwInfo->TxHT, pTxFwInfo->TxRate, cb_desc); -if (cb_desc->bAMPDUEnable) { +if (cb_desc->ampdu_enable) { pTxFwInfo->AllowAggregation =1 ; pTxFwInfo->RxMF = cb_desc->ampdu_factor; pTxFwInfo->RxAMD = cb_desc->ampdu_density;
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -111,7 +111,7 @@ struct rt_hi_throughput {u16 amsdu_max_size;u8 bCurrent_AMSDU_Support;u16 nCurrent_AMSDU_MaxSize; -u8 bAMPDUEnable; +u8 ampdu_enable;u8 current_ampdu_enable;u8 AMPDU_Factor;u8 CurrentAMPDUFactor;
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -84,7 +84,7 @@ void ht_update_default_setting(struct rtllib_device *ieee) ht_info->amsdu_max_size =7935UL ; ht_info->amsdu_support =0 ; - ht_info->bAMPDUEnable =1 ; + ht_info->ampdu_enable =1 ; ht_info->AMPDU_Factor =2 ; ht_info->MPDU_Density =0 ;
@@ -498,7 +498,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)else ht_info->nCurrent_AMSDU_MaxSize = ht_info->amsdu_max_size; - ht_info->current_ampdu_enable = ht_info->bAMPDUEnable; + ht_info->current_ampdu_enable = ht_info->ampdu_enable;if (ieee->rtllib_ap_sec_type && (ieee->rtllib_ap_sec_type (ieee) & (SEC_ALG_WEP |SEC_ALG_TKIP ))) { if ((ht_info->IOTPeer == HT_IOT_PEER_ATHEROS) ||
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -118,7 +118,7 @@ struct cb_desc { u8 bUseShortGI:1; u8 bUseShortPreamble:1; u8 bTxEnableFwCalcDur:1; - u8 bAMPDUEnable:1; + u8 ampdu_enable:1; u8 bRTSSTBC:1; u8 RTSSC:1;
drivers/staging/rtl8192e/rtllib_tx.c +4 -4
@@ -312,7 +312,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, goto FORCED_AGG_SETTING; }if (ieee->iw_mode ==IW_MODE_INFRA ) { - tcb_desc->bAMPDUEnable = true; + tcb_desc->ampdu_enable = true; tcb_desc->ampdu_factor = ht_info->CurrentAMPDUFactor; tcb_desc->ampdu_density = ht_info->current_mpdu_density; }
@@ -323,13 +323,13 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,break ;case HT_AGG_FORCE_ENABLE : - tcb_desc->bAMPDUEnable = true; + tcb_desc->ampdu_enable = true; tcb_desc->ampdu_density = ht_info->forced_mpdu_density; tcb_desc->ampdu_factor = ht_info->forced_ampdu_factor;break ;case HT_AGG_FORCE_DISABLE : - tcb_desc->bAMPDUEnable = false; + tcb_desc->ampdu_enable = false; tcb_desc->ampdu_density =0 ; tcb_desc->ampdu_factor =0 ;break ;
@@ -454,7 +454,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee, tcb_desc->bRTSEnable = true;break ; } -if (tcb_desc->bAMPDUEnable) { +if (tcb_desc->ampdu_enable) { tcb_desc->rts_rate =MGN_24M ; tcb_desc->bRTSEnable = false;break ;
Signature · 1 line
2.41.0
PATCH 3/5 staging: rtl8192e: renamed variable AMPDU_Factor
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase,
rename it. AMPDU_Factor -> ampdu_factor
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -113,7 +113,7 @@ struct rt_hi_throughput {u16 nCurrent_AMSDU_MaxSize;u8 ampdu_enable;u8 current_ampdu_enable; -u8 AMPDU_Factor; +u8 ampdu_factor;u8 CurrentAMPDUFactor;u8 MPDU_Density;u8 current_mpdu_density;
drivers/staging/rtl8192e/rtl819x_HTProc.c +4 -4
@@ -85,7 +85,7 @@ void ht_update_default_setting(struct rtllib_device *ieee) ht_info->amsdu_support =0 ; ht_info->ampdu_enable =1 ; - ht_info->AMPDU_Factor =2 ; + ht_info->ampdu_factor =2 ; ht_info->MPDU_Density =0 ; ht_info->self_mimo_ps =3 ;
@@ -507,11 +507,11 @@ void HTOnAssocRsp(struct rtllib_device *ieee) }if (!ht_info->reg_rt2rt_aggregation) { -if (ht_info->AMPDU_Factor > pPeerHTCap->MaxRxAMPDUFactor) +if (ht_info->ampdu_factor > pPeerHTCap->MaxRxAMPDUFactor) ht_info->CurrentAMPDUFactor = pPeerHTCap->MaxRxAMPDUFactor;else - ht_info->CurrentAMPDUFactor = ht_info->AMPDU_Factor; + ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor; }else {if (ieee->current_network.bssht.bd_rt2rt_aggregation) {
@@ -571,7 +571,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) ht_info->bCurrent_AMSDU_Support = false; ht_info->nCurrent_AMSDU_MaxSize = ht_info->amsdu_max_size; ht_info->current_mpdu_density = ht_info->MPDU_Density; - ht_info->CurrentAMPDUFactor = ht_info->AMPDU_Factor; + ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor;memset ((void *)(&ht_info->SelfHTCap),0 ,sizeof (ht_info->SelfHTCap));
Signature · 1 line
2.41.0
PATCH 4/5 staging: rtl8192e: renamed variable MPDU_Density
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase,
rename it. MPDU_Density -> mpdu_density
--- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -115,7 +115,7 @@ struct rt_hi_throughput {u8 current_ampdu_enable;u8 ampdu_factor;u8 CurrentAMPDUFactor; -u8 MPDU_Density; +u8 mpdu_density;u8 current_mpdu_density;enum ht_aggre_mode ForcedAMPDUMode;u8 forced_ampdu_factor;
drivers/staging/rtl8192e/rtl819x_HTProc.c +3 -3
@@ -86,7 +86,7 @@ void ht_update_default_setting(struct rtllib_device *ieee) ht_info->ampdu_enable =1 ; ht_info->ampdu_factor =2 ; - ht_info->MPDU_Density =0 ; + ht_info->mpdu_density =0 ; ht_info->self_mimo_ps =3 ;if (ht_info->self_mimo_ps ==2 )
@@ -525,7 +525,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) HT_AGG_SIZE_32K); } } - ht_info->current_mpdu_density =max_t (u8, ht_info->MPDU_Density, + ht_info->current_mpdu_density =max_t (u8, ht_info->mpdu_density, pPeerHTCap->MPDUDensity);if (ht_info->iot_action &HT_IOT_ACT_TX_USE_AMSDU_8K ) { ht_info->current_ampdu_enable = false;
@@ -570,7 +570,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) ht_info->bCurrent_AMSDU_Support = false; ht_info->nCurrent_AMSDU_MaxSize = ht_info->amsdu_max_size; - ht_info->current_mpdu_density = ht_info->MPDU_Density; + ht_info->current_mpdu_density = ht_info->mpdu_density; ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor; memset((void *)(&ht_info->SelfHTCap), 0,
Signature · 1 line
2.41.0
PATCH 5/5 staging: rtl8192e: renamed variable bTxEnableFwCalcDur
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase, rename it. bTxEnableFwCalcDur -> tx_enable_fw_calc_dur
--- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 4 ++-- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +1 -1
@@ -879,7 +879,7 @@ void rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,memset (pTxFwInfo,0 ,sizeof (struct tx_fwinfo_8190pci )); pTxFwInfo->TxHT = (cb_desc->data_rate &0x80 ) ?1 :0 ; pTxFwInfo->TxRate =_rtl92e_rate_mgn_to_hw (cb_desc->data_rate); - pTxFwInfo->EnableCPUDur = cb_desc->bTxEnableFwCalcDur; + pTxFwInfo->EnableCPUDur = cb_desc->tx_enable_fw_calc_dur; pTxFwInfo->Short =_rtl92e_query_is_short (pTxFwInfo->TxHT, pTxFwInfo->TxRate, cb_desc);
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +1 -1
@@ -1189,7 +1189,7 @@ static int _rtl92e_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) tcb_desc->ratr_index =7 ; tcb_desc->tx_dis_rate_fallback =1 ; tcb_desc->tx_use_drv_assinged_rate =1 ; - tcb_desc->bTxEnableFwCalcDur =1 ; + tcb_desc->tx_enable_fw_calc_dur =1 ;skb_push (skb, priv->rtllib->tx_headroom); ret =_rtl92e_tx (dev, skb);if (ret !=0 )
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
@@ -94,7 +94,7 @@ void ht_update_default_setting(struct rtllib_device *ieee) ieee->tx_dis_rate_fallback =0 ; ieee->tx_use_drv_assinged_rate =0 ; - ieee->bTxEnableFwCalcDur =1 ; + ieee->tx_enable_fw_calc_dur =1 ; ht_info->reg_rt2rt_aggregation =1 ;
drivers/staging/rtl8192e/rtllib.h +2 -2
@@ -117,7 +117,7 @@ struct cb_desc { u8 bRTSEnable:1; u8 bUseShortGI:1; u8 bUseShortPreamble:1; - u8 bTxEnableFwCalcDur:1; + u8 tx_enable_fw_calc_dur:1; u8 ampdu_enable:1; u8 bRTSSTBC:1; u8 RTSSC:1;
@@ -1223,7 +1223,7 @@ struct rtllib_device {u8 HTHighestOperaRate;u8 tx_dis_rate_fallback;u8 tx_use_drv_assinged_rate; -u8 bTxEnableFwCalcDur; +u8 tx_enable_fw_calc_dur;atomic_t atm_swbw;struct list_head Tx_TS_Admit_List;
drivers/staging/rtl8192e/rtllib_tx.c +1 -1
@@ -847,7 +847,7 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)if (txb) { tcb_desc = (struct cb_desc *) (txb->fragments[0 ]->cb +MAX_DEV_ADDR_SIZE ); - tcb_desc->bTxEnableFwCalcDur =1 ; + tcb_desc->tx_enable_fw_calc_dur =1 ; tcb_desc->priority = skb->priority;if (ether_type ==ETH_P_PAE ) {
Signature · 1 line
2.41.0
Quoted 20 lines · Gary Rookard
Hi,
This patch series renames 5 different variables with the checkpatch coding style issue, Avoid CamelCase.
Patch 1/5) renamed variable
bAMSDU_Support
Patch 2/5) renamed variable bAMPD?U_Enable
Patch 3/5) renamed variableAMPDU_factor
Patch 4/5) renamed variableMPDU_Density
Patch 5/5) renamed variable bTxEnableFwCalcDurSigned-off-by Gary Rookard <[email protected]>Gary Rookard (5):
staging: rtl8192e: renamed variablebAMSDU_Support
staging: rtl8192e: renamed variable bAMPDUEnable
staging: rtl8192e: renamed variableAMPDU_Factor
staging: rtl8192e: renamed variableMPDU_Density
staging: rtl8192e: renamed variable bTxEnableFwCalcDur
Quoted 8 lines
.../staging/rtl8192e/rtl8192e/r8192E_dev.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl819x_HT.h | 8 +++---- drivers/staging/rtl8192e/rtl819x_HTProc.c | 24 +++++++++---------- drivers/staging/rtl8192e/rtllib.h | 6 ++--- drivers/staging/rtl8192e/rtllib_tx.c | 10 ++++---- 6 files changed, 27 insertions(+), 27 deletions(-)