mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 03:06:50 -04:00
staging: rtl8192e: renamed variable bAMPDUEnable
Coding style issue, checkpatch Avoid CamelCase, rename it. bAMPDUEnable -> ampdu_enable Signed-off-by: Gary Rookard <garyrookard@fastmail.org> Link: https://lore.kernel.org/r/20231206230404.1721-3-garyrookard@fastmail.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cbf028b29d
commit
e97f14e92d
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) ||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user