staging:rtl8192u: Rename Rx_Smooth_Factor - Style
Rename the MACRO Rx_Smooth_Factor to RX_SMOOTH_FACTOR, this clears the checkpatch issue with CamelCase naming. This is 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>
This commit is contained in:
parent
73d4be9472
commit
3d7f12d31f
|
@ -45,7 +45,7 @@
|
|||
#define MAX_KEY_LEN 61
|
||||
#define KEY_BUF_SIZE 5
|
||||
|
||||
#define Rx_Smooth_Factor 20
|
||||
#define RX_SMOOTH_FACTOR 20
|
||||
#define DMESG(x, a...)
|
||||
#define DMESGW(x, a...)
|
||||
#define DMESGE(x, a...)
|
||||
|
|
|
@ -3975,13 +3975,13 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
|
|||
pprevious_stats->RxMIMOSignalStrength[rfpath];
|
||||
if (pprevious_stats->RxMIMOSignalStrength[rfpath] > priv->stats.rx_rssi_percentage[rfpath]) {
|
||||
priv->stats.rx_rssi_percentage[rfpath] =
|
||||
((priv->stats.rx_rssi_percentage[rfpath] * (Rx_Smooth_Factor - 1)) +
|
||||
(pprevious_stats->RxMIMOSignalStrength[rfpath])) / (Rx_Smooth_Factor);
|
||||
((priv->stats.rx_rssi_percentage[rfpath] * (RX_SMOOTH_FACTOR - 1)) +
|
||||
(pprevious_stats->RxMIMOSignalStrength[rfpath])) / (RX_SMOOTH_FACTOR);
|
||||
priv->stats.rx_rssi_percentage[rfpath] = priv->stats.rx_rssi_percentage[rfpath] + 1;
|
||||
} else {
|
||||
priv->stats.rx_rssi_percentage[rfpath] =
|
||||
((priv->stats.rx_rssi_percentage[rfpath] * (Rx_Smooth_Factor - 1)) +
|
||||
(pprevious_stats->RxMIMOSignalStrength[rfpath])) / (Rx_Smooth_Factor);
|
||||
((priv->stats.rx_rssi_percentage[rfpath] * (RX_SMOOTH_FACTOR - 1)) +
|
||||
(pprevious_stats->RxMIMOSignalStrength[rfpath])) / (RX_SMOOTH_FACTOR);
|
||||
}
|
||||
RT_TRACE(COMP_DBG,
|
||||
"priv->stats.rx_rssi_percentage[rfPath] = %d\n",
|
||||
|
@ -4026,13 +4026,13 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
|
|||
pprevious_stats->RxPWDBAll;
|
||||
if (pprevious_stats->RxPWDBAll > (u32)priv->undecorated_smoothed_pwdb) {
|
||||
priv->undecorated_smoothed_pwdb =
|
||||
(((priv->undecorated_smoothed_pwdb) * (Rx_Smooth_Factor - 1)) +
|
||||
(pprevious_stats->RxPWDBAll)) / (Rx_Smooth_Factor);
|
||||
(((priv->undecorated_smoothed_pwdb) * (RX_SMOOTH_FACTOR - 1)) +
|
||||
(pprevious_stats->RxPWDBAll)) / (RX_SMOOTH_FACTOR);
|
||||
priv->undecorated_smoothed_pwdb = priv->undecorated_smoothed_pwdb + 1;
|
||||
} else {
|
||||
priv->undecorated_smoothed_pwdb =
|
||||
(((priv->undecorated_smoothed_pwdb) * (Rx_Smooth_Factor - 1)) +
|
||||
(pprevious_stats->RxPWDBAll)) / (Rx_Smooth_Factor);
|
||||
(((priv->undecorated_smoothed_pwdb) * (RX_SMOOTH_FACTOR - 1)) +
|
||||
(pprevious_stats->RxPWDBAll)) / (RX_SMOOTH_FACTOR);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4075,8 +4075,8 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
|
|||
if (priv->stats.rx_evm_percentage[nspatial_stream] == 0) /* initialize */
|
||||
priv->stats.rx_evm_percentage[nspatial_stream] = pprevious_stats->RxMIMOSignalQuality[nspatial_stream];
|
||||
priv->stats.rx_evm_percentage[nspatial_stream] =
|
||||
((priv->stats.rx_evm_percentage[nspatial_stream] * (Rx_Smooth_Factor - 1)) +
|
||||
(pprevious_stats->RxMIMOSignalQuality[nspatial_stream] * 1)) / (Rx_Smooth_Factor);
|
||||
((priv->stats.rx_evm_percentage[nspatial_stream] * (RX_SMOOTH_FACTOR - 1)) +
|
||||
(pprevious_stats->RxMIMOSignalQuality[nspatial_stream] * 1)) / (RX_SMOOTH_FACTOR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue