aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/rc80211_pid.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/net/mac80211/rc80211_pid.h b/net/mac80211/rc80211_pid.h
index 6afd3cebdeca..b98e16afe4d1 100644
--- a/net/mac80211/rc80211_pid.h
+++ b/net/mac80211/rc80211_pid.h
@@ -11,41 +11,41 @@
11#define RC80211_PID_H 11#define RC80211_PID_H
12 12
13/* Sampling period for measuring percentage of failed frames. */ 13/* Sampling period for measuring percentage of failed frames. */
14#define RC_PID_INTERVAL (HZ / 8) 14#define RC_PID_INTERVAL (HZ / 8)
15 15
16/* Exponential averaging smoothness (used for I part of PID controller) */ 16/* Exponential averaging smoothness (used for I part of PID controller) */
17#define RC_PID_SMOOTHING_SHIFT 3 17#define RC_PID_SMOOTHING_SHIFT 3
18#define RC_PID_SMOOTHING (1 << RC_PID_SMOOTHING_SHIFT) 18#define RC_PID_SMOOTHING (1 << RC_PID_SMOOTHING_SHIFT)
19 19
20/* Sharpening factor (used for D part of PID controller) */ 20/* Sharpening factor (used for D part of PID controller) */
21#define RC_PID_SHARPENING_FACTOR 0 21#define RC_PID_SHARPENING_FACTOR 0
22#define RC_PID_SHARPENING_DURATION 0 22#define RC_PID_SHARPENING_DURATION 0
23 23
24/* Fixed point arithmetic shifting amount. */ 24/* Fixed point arithmetic shifting amount. */
25#define RC_PID_ARITH_SHIFT 8 25#define RC_PID_ARITH_SHIFT 8
26 26
27/* Fixed point arithmetic factor. */ 27/* Fixed point arithmetic factor. */
28#define RC_PID_ARITH_FACTOR (1 << RC_PID_ARITH_SHIFT) 28#define RC_PID_ARITH_FACTOR (1 << RC_PID_ARITH_SHIFT)
29 29
30/* Proportional PID component coefficient. */ 30/* Proportional PID component coefficient. */
31#define RC_PID_COEFF_P 15 31#define RC_PID_COEFF_P 15
32/* Integral PID component coefficient. */ 32/* Integral PID component coefficient. */
33#define RC_PID_COEFF_I 9 33#define RC_PID_COEFF_I 9
34/* Derivative PID component coefficient. */ 34/* Derivative PID component coefficient. */
35#define RC_PID_COEFF_D 15 35#define RC_PID_COEFF_D 15
36 36
37/* Target failed frames rate for the PID controller. NB: This effectively gives 37/* Target failed frames rate for the PID controller. NB: This effectively gives
38 * maximum failed frames percentage we're willing to accept. If the wireless 38 * maximum failed frames percentage we're willing to accept. If the wireless
39 * link quality is good, the controller will fail to adjust failed frames 39 * link quality is good, the controller will fail to adjust failed frames
40 * percentage to the target. This is intentional. 40 * percentage to the target. This is intentional.
41 */ 41 */
42#define RC_PID_TARGET_PF 11 42#define RC_PID_TARGET_PF 14
43 43
44/* Rate behaviour normalization quantity over time. */ 44/* Rate behaviour normalization quantity over time. */
45#define RC_PID_NORM_OFFSET 3 45#define RC_PID_NORM_OFFSET 3
46 46
47/* Push high rates right after loading. */ 47/* Push high rates right after loading. */
48#define RC_PID_FAST_START 0 48#define RC_PID_FAST_START 0
49 49
50/* Arithmetic right shift for positive and negative values for ISO C. */ 50/* Arithmetic right shift for positive and negative values for ISO C. */
51#define RC_PID_DO_ARITH_RIGHT_SHIFT(x, y) \ 51#define RC_PID_DO_ARITH_RIGHT_SHIFT(x, y) \