staging: rtl8192e: renamed variable bRegBW40MHz
authorGary Rookard <garyrookard@fastmail.org>
Tue, 5 Dec 2023 23:16:21 +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 bRegBW40MHz -> reg_bw_40mhz

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231205231623.23070-4-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 825c60cbcacb46772a58108c9589384f726f7dd4..ef88d7d713fb3f9b2bad7638831f727df215c918 100644 (file)
@@ -94,7 +94,7 @@ enum ht_aggre_mode {
 struct rt_hi_throughput {
        u8 enable_ht;
        u8 current_ht_support;
-       u8 bRegBW40MHz;
+       u8 reg_bw_40mhz;
        u8 cur_bw_40mhz;
        u8 reg_short_gi_40mhz;
        u8 bCurShortGI40MHz;
index 580b1423c46be9d144714e1b566ba08725493ae1..68ad082d41be75963e8dc2d93ccdc2fac610d594 100644 (file)
@@ -74,9 +74,9 @@ void ht_update_default_setting(struct rtllib_device *ieee)
        ht_info->reg_short_gi_20mhz = 1;
        ht_info->reg_short_gi_40mhz = 1;
 
-       ht_info->bRegBW40MHz = 1;
+       ht_info->reg_bw_40mhz = 1;
 
-       if (ht_info->bRegBW40MHz)
+       if (ht_info->reg_bw_40mhz)
                ht_info->bRegSuppCCK = 1;
        else
                ht_info->bRegSuppCCK = true;
@@ -275,7 +275,7 @@ void HTConstructCapabilityElement(struct rtllib_device *ieee, u8 *posHTCap,
        if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
                pCapELE->ChlWidth = 0;
        else
-               pCapELE->ChlWidth = (pHT->bRegBW40MHz ? 1 : 0);
+               pCapELE->ChlWidth = (pHT->reg_bw_40mhz ? 1 : 0);
 
        pCapELE->MimoPwrSave            = pHT->self_mimo_ps;
        pCapELE->GreenField             = 0;
@@ -286,7 +286,7 @@ void HTConstructCapabilityElement(struct rtllib_device *ieee, u8 *posHTCap,
        pCapELE->RxSTBC                 = 0;
        pCapELE->DelayBA                = 0;
        pCapELE->MaxAMSDUSize = (MAX_RECEIVE_BUFFER_SIZE >= 7935) ? 1 : 0;
-       pCapELE->DssCCk = ((pHT->bRegBW40MHz) ? (pHT->bRegSuppCCK ? 1 : 0) : 0);
+       pCapELE->DssCCk = ((pHT->reg_bw_40mhz) ? (pHT->bRegSuppCCK ? 1 : 0) : 0);
        pCapELE->PSMP = 0;
        pCapELE->LSigTxopProtect = 0;
 
@@ -734,7 +734,7 @@ void HTSetConnectBwMode(struct rtllib_device *ieee,
 {
        struct rt_hi_throughput *ht_info = ieee->ht_info;
 
-       if (!ht_info->bRegBW40MHz)
+       if (!ht_info->reg_bw_40mhz)
                return;
 
        if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))