]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Staging: rtl8192e: Rename variable bforced_tx20Mhz
authorTree Davies <tdavies@darkphysics.net>
Wed, 12 Jun 2024 03:22:15 +0000 (20:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 13:25:22 +0000 (15:25 +0200)
Rename variable bforced_tx20Mhz to forced_tx_20MHz
to remove hungarian notation and make it snake_case.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240612032230.9738-10-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_tx.c

index 5392d2daf87015ad982549439e5659eb88421fe7..f546e6d368b42b4771d42cbaa3aa3ccc53a9d8b2 100644 (file)
@@ -377,7 +377,7 @@ static void _rtl92e_dm_init_bandwidth_autoswitch(struct net_device *dev)
 
        priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz = BW_AUTO_SWITCH_LOW_HIGH;
        priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz = BW_AUTO_SWITCH_HIGH_LOW;
-       priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false;
+       priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = false;
        priv->rtllib->bandwidth_auto_switch.bautoswitch_enable = false;
 }
 
@@ -388,14 +388,14 @@ static void _rtl92e_dm_bandwidth_autoswitch(struct net_device *dev)
        if (priv->current_chnl_bw == HT_CHANNEL_WIDTH_20 ||
            !priv->rtllib->bandwidth_auto_switch.bautoswitch_enable)
                return;
-       if (!priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz) {
+       if (!priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz) {
                if (priv->undecorated_smoothed_pwdb <=
                    priv->rtllib->bandwidth_auto_switch.threshold_40Mhzto20Mhz)
-                       priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = true;
+                       priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = true;
        } else {
                if (priv->undecorated_smoothed_pwdb >=
                    priv->rtllib->bandwidth_auto_switch.threshold_20Mhzto40Mhz)
-                       priv->rtllib->bandwidth_auto_switch.bforced_tx20Mhz = false;
+                       priv->rtllib->bandwidth_auto_switch.forced_tx_20MHz = false;
        }
 }
 
index bd18d866ce225141ee57958a93e4b97830720be3..ab52fd66c705fe18de1f1dd3c2fcf17d3c8cabcc 100644 (file)
@@ -1018,7 +1018,7 @@ struct tx_pending {
 struct bandwidth_autoswitch {
        long threshold_20Mhzto40Mhz;
        long    threshold_40Mhzto20Mhz;
-       bool bforced_tx20Mhz;
+       bool forced_tx_20MHz;
        bool bautoswitch_enable;
 };
 
index d376c35a5ad797dd9ace7a1f46a37c8446830877..ba76d2fcc750f7f1b06de2ff596177421657cfc2 100644 (file)
@@ -362,7 +362,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,
        if ((tcb_desc->data_rate & 0x80) == 0)
                return;
        if (ht_info->cur_bw_40mhz && ht_info->cur_tx_bw40mhz &&
-           !ieee->bandwidth_auto_switch.bforced_tx20Mhz)
+           !ieee->bandwidth_auto_switch.forced_tx_20MHz)
                tcb_desc->bPacketBW = true;
 }