Staging: rtl8192e: Rename variable CurrentAMPDUFactor
authorTree Davies <tdavies@darkphysics.net>
Sun, 28 Apr 2024 23:00:50 +0000 (16:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 May 2024 16:41:00 +0000 (18:41 +0200)
Rename variable CurrentAMPDUFactor to current_ampdu_factor
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/20240428230106.6548-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib_tx.c

index eeb5a5eb94be8acb645bea945ae35394f772eb44..b789d0f1715679018dd0395726464f00baa8b152 100644 (file)
@@ -104,7 +104,7 @@ struct rt_hi_throughput {
        u8 ampdu_enable;
        u8 current_ampdu_enable;
        u8 ampdu_factor;
-       u8 CurrentAMPDUFactor;
+       u8 current_ampdu_factor;
        u8 current_mpdu_density;
        u8 forced_ampdu_factor;
        u8 forced_mpdu_density;
index e82e8c50c0907d35f2f56f872778ec48b76c38a9..3982c37f208c01afdabcc5dbdfd5bb9c07169f13 100644 (file)
@@ -470,12 +470,12 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
 
        if (ieee->current_network.bssht.bd_rt2rt_aggregation) {
                if (ieee->pairwise_key_type != KEY_TYPE_NA)
-                       ht_info->CurrentAMPDUFactor =
+                       ht_info->current_ampdu_factor =
                                         pPeerHTCap->MaxRxAMPDUFactor;
                else
-                       ht_info->CurrentAMPDUFactor = HT_AGG_SIZE_64K;
+                       ht_info->current_ampdu_factor = HT_AGG_SIZE_64K;
        } else {
-               ht_info->CurrentAMPDUFactor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor,
+               ht_info->current_ampdu_factor = min_t(u32, pPeerHTCap->MaxRxAMPDUFactor,
                                                    HT_AGG_SIZE_32K);
        }
 
@@ -514,7 +514,7 @@ void ht_initialize_ht_info(struct rtllib_device *ieee)
        ht_info->cur_short_gi_40mhz = false;
 
        ht_info->current_mpdu_density = 0;
-       ht_info->CurrentAMPDUFactor = ht_info->ampdu_factor;
+       ht_info->current_ampdu_factor = ht_info->ampdu_factor;
 
        memset((void *)(&ht_info->self_ht_cap), 0,
               sizeof(ht_info->self_ht_cap));
index 54100dd81505b166dbdec48fc81349162eccc6cf..1aeb207a3feef93b9f03d42b31ccb77d4602d51c 100644 (file)
@@ -313,7 +313,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
                }
                if (ieee->iw_mode == IW_MODE_INFRA) {
                        tcb_desc->ampdu_enable = true;
-                       tcb_desc->ampdu_factor = ht_info->CurrentAMPDUFactor;
+                       tcb_desc->ampdu_factor = ht_info->current_ampdu_factor;
                        tcb_desc->ampdu_density = ht_info->current_mpdu_density;
                }
        }