]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging:rtl8192u: Rename RateAdaptiveTH_High - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 3 Aug 2018 00:02:07 +0000 (01:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Aug 2018 14:21:07 +0000 (16:21 +0200)
The constant RateAdaptiveTH_High causes a checkpatch issue with respect
to CamelCase naming. As a result the constant has been renamed to
RATE_ADAPTIVE_TH_HIGH.

This is purely a coding style change which should have no impact on
runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c
drivers/staging/rtl8192u/r8192U_dm.c
drivers/staging/rtl8192u/r8192U_dm.h

index 28592a8d6dd06a15667fa9ea71e21e83cef7e9cb..d4a063afca55e23f6fd3d291ee86789ad70b2a9a 100644 (file)
@@ -3079,9 +3079,9 @@ static bool HalRxCheckStuck819xUsb(struct net_device *dev)
         * or maybe it will continuous silent reset every 2 seconds.
         */
        rx_chk_cnt++;
-       if (priv->undecorated_smoothed_pwdb >= (RateAdaptiveTH_High + 5)) {
+       if (priv->undecorated_smoothed_pwdb >= (RATE_ADAPTIVE_TH_HIGH + 5)) {
                rx_chk_cnt = 0; /* high rssi, check rx stuck right now. */
-       } else if (priv->undecorated_smoothed_pwdb < (RateAdaptiveTH_High + 5) &&
+       } else if (priv->undecorated_smoothed_pwdb < (RATE_ADAPTIVE_TH_HIGH + 5) &&
                   ((priv->CurrentChannelBW != HT_CHANNEL_WIDTH_20 && priv->undecorated_smoothed_pwdb >= RateAdaptiveTH_Low_40M) ||
                    (priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 && priv->undecorated_smoothed_pwdb >= RateAdaptiveTH_Low_20M))) {
                if (rx_chk_cnt < 2)
index 3043b84e9237facbb46bcee9b6c01262a51780e1..b9b751fb96c37f262fb36b9cb7053f0d84d2e4fe 100644 (file)
@@ -243,11 +243,11 @@ void init_rate_adaptive(struct net_device *dev)
        prate_adaptive  pra = (prate_adaptive)&priv->rate_adaptive;
 
        pra->ratr_state = DM_RATR_STA_MAX;
-       pra->high2low_rssi_thresh_for_ra = RateAdaptiveTH_High;
+       pra->high2low_rssi_thresh_for_ra = RATE_ADAPTIVE_TH_HIGH;
        pra->low2high_rssi_thresh_for_ra20M = RateAdaptiveTH_Low_20M+5;
        pra->low2high_rssi_thresh_for_ra40M = RateAdaptiveTH_Low_40M+5;
 
-       pra->high_rssi_thresh_for_ra = RateAdaptiveTH_High+5;
+       pra->high_rssi_thresh_for_ra = RATE_ADAPTIVE_TH_HIGH + 5;
        pra->low_rssi_thresh_for_ra20M = RateAdaptiveTH_Low_20M;
        pra->low_rssi_thresh_for_ra40M = RateAdaptiveTH_Low_40M;
 
index 655b1afd9294e29eb98ba04c1f99f1e56b9215b1..07e80e064f76303f64ee67311a6329722e95e545 100644 (file)
@@ -40,7 +40,7 @@
 #define                RX_PATH_SELECTION_SS_TH_LOW             30
 #define                RX_PATH_SELECTION_DIFF_TH                       18
 
-#define                RateAdaptiveTH_High                     50
+#define                RATE_ADAPTIVE_TH_HIGH                   50
 #define                RateAdaptiveTH_Low_20M          30
 #define                RateAdaptiveTH_Low_40M          10
 #define                VeryLowRSSI                                     15