staging: rtl8192e: renamed variable bAMPDUEnable
authorGary Rookard <garyrookard@fastmail.org>
Wed, 6 Dec 2023 23:04:01 +0000 (18:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2023 14:06:47 +0000 (15:06 +0100)
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>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_tx.c

index 13e3f26279aa82bfa1e65c134487c9e171bb5951..fe48cc6b7132a0fc67b1074ed812581a3eeeb9de 100644 (file)
@@ -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;
index e02fa40262bd6584ab0cf7bf8987f192a491aae0..7a3e36db849c3e43ec9ecd9cfc951bb8207e1e5b 100644 (file)
@@ -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;
index b2f2e1c0cf6b865071123d7564f5a5a45ab962c3..9841af15089fce2808e0132a195a339ada852951 100644 (file)
@@ -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) ||
index 0a8c44e497f5cc8e50891b92a78e8f9952ccd0d0..eb6e02f3d6b2659df4ef021ac550cf10bc882de5 100644 (file)
@@ -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;
 
index 1468bbf1e23af1345b05feee3f0c3db11281263f..9981bf4eabff8d9dc8443f37b5cf3d536546101f 100644 (file)
@@ -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 @@ FORCED_AGG_SETTING:
                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;