Staging: rtl8192e: Rename variable bCurrentAMPDUEnable
authorTree Davies <tdavies@darkphysics.net>
Mon, 13 Nov 2023 19:59:05 +0000 (11:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 12:45:56 +0000 (12:45 +0000)
Rename variable bCurrentAMPDUEnable to current_ampdu_enable to fix
checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20231113195910.8423-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BAProc.c
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib_tx.c

index c0058d2be6d1c8d110c55a23203b7c3bb4a7622e..404f873455fc113a70a62cdb9ec5d45c8ab3f864 100644 (file)
@@ -327,12 +327,12 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
 
        if (!ieee->current_network.qos_data.active ||
            !ieee->ht_info->current_ht_support ||
-           !ieee->ht_info->bCurrentAMPDUEnable) {
+           !ieee->ht_info->current_ampdu_enable) {
                netdev_warn(ieee->dev,
                            "reject to ADDBA_RSP as some capability is not ready(%d, %d, %d)\n",
                            ieee->current_network.qos_data.active,
                            ieee->ht_info->current_ht_support,
-                           ieee->ht_info->bCurrentAMPDUEnable);
+                           ieee->ht_info->current_ampdu_enable);
                reason_code = DELBA_REASON_UNKNOWN_BA;
                goto OnADDBARsp_Reject;
        }
index f8eb4d553fe02f1a4261f7e589f20e144d2ab9df..a4fe72943b36791e97cc2ee5857a97ca5d3e195f 100644 (file)
@@ -112,7 +112,7 @@ struct rt_hi_throughput {
        u8 bCurrent_AMSDU_Support;
        u16 nCurrent_AMSDU_MaxSize;
        u8 bAMPDUEnable;
-       u8 bCurrentAMPDUEnable;
+       u8 current_ampdu_enable;
        u8 AMPDU_Factor;
        u8 CurrentAMPDUFactor;
        u8 MPDU_Density;
index e607bccc079a52f54e0f8459c577cea6fb1405d7..d5520cc82d2291d845d63cc193fbea2c9dab932f 100644 (file)
@@ -514,12 +514,12 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
        else
                ht_info->nCurrent_AMSDU_MaxSize = ht_info->nAMSDU_MaxSize;
 
-       ht_info->bCurrentAMPDUEnable = ht_info->bAMPDUEnable;
+       ht_info->current_ampdu_enable = ht_info->bAMPDUEnable;
        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) ||
                    (ht_info->IOTPeer == HT_IOT_PEER_UNKNOWN))
-                       ht_info->bCurrentAMPDUEnable = false;
+                       ht_info->current_ampdu_enable = false;
        }
 
        if (!ht_info->reg_rt2rt_aggregation) {
@@ -544,7 +544,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
        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->bCurrentAMPDUEnable = false;
+               ht_info->current_ampdu_enable = false;
                ht_info->ForcedAMSDUMode = HT_AGG_FORCE_ENABLE;
        }
        ht_info->cur_rx_reorder_enable = ht_info->reg_rx_reorder_enable;
index 9bf679438ad11a297d5e0e96acad85361f098c60..a99c3b3f867cc8e236da00af4526a13e2a1b72ef 100644 (file)
@@ -288,7 +288,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
 
        if (!ieee->GetNmodeSupportBySecCfg(ieee->dev))
                return;
-       if (ht_info->bCurrentAMPDUEnable) {
+       if (ht_info->current_ampdu_enable) {
                if (!rtllib_get_ts(ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1,
                           skb->priority, TX_DIR, true)) {
                        netdev_info(ieee->dev, "%s: can't get TS\n", __func__);