staging: rtl8192e: renamed variable nAMSDU_MaxSize
authorGary Rookard <garyrookard@fastmail.org>
Tue, 5 Dec 2023 23:16:23 +0000 (18:16 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2023 02:38:17 +0000 (11:38 +0900)
Coding style issue, checkpatch Avoid CamelCase,
rename it nAMSDU_MaxSize -> amsdu_max_size

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231205231623.23070-6-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c

index c3efff2873d427377d9ca2f03f1f7377dd34ddad..5018c3905be854fc08d939aa1f1fb9ec201acb5e 100644 (file)
@@ -108,7 +108,7 @@ struct rt_hi_throughput {
        u8 PeerHTCapBuf[32];
        u8 PeerHTInfoBuf[32];
        u8 bAMSDU_Support;
-       u16 nAMSDU_MaxSize;
+       u16 amsdu_max_size;
        u8 bCurrent_AMSDU_Support;
        u16 nCurrent_AMSDU_MaxSize;
        u8 bAMPDUEnable;
index 910f8e9c939428396789c232cafe065eb78b65e6..6475832f23f675b64fcbc8b18c7528fc35798958 100644 (file)
@@ -81,7 +81,7 @@ void ht_update_default_setting(struct rtllib_device *ieee)
        else
                ht_info->reg_supp_cck = true;
 
-       ht_info->nAMSDU_MaxSize = 7935UL;
+       ht_info->amsdu_max_size = 7935UL;
        ht_info->bAMSDU_Support = 0;
 
        ht_info->bAMPDUEnable = 1;
@@ -493,10 +493,10 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
 
        nMaxAMSDUSize = (pPeerHTCap->MaxAMSDUSize == 0) ? 3839 : 7935;
 
-       if (ht_info->nAMSDU_MaxSize > nMaxAMSDUSize)
+       if (ht_info->amsdu_max_size > nMaxAMSDUSize)
                ht_info->nCurrent_AMSDU_MaxSize = nMaxAMSDUSize;
        else
-               ht_info->nCurrent_AMSDU_MaxSize = ht_info->nAMSDU_MaxSize;
+               ht_info->nCurrent_AMSDU_MaxSize = ht_info->amsdu_max_size;
 
        ht_info->current_ampdu_enable = ht_info->bAMPDUEnable;
        if (ieee->rtllib_ap_sec_type &&
@@ -569,7 +569,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee)
        ht_info->bCurSuppCCK = true;
 
        ht_info->bCurrent_AMSDU_Support = false;
-       ht_info->nCurrent_AMSDU_MaxSize = ht_info->nAMSDU_MaxSize;
+       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;