aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_pid_algo.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/rc80211_pid_algo.c')
-rw-r--r--net/mac80211/rc80211_pid_algo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c
index 631e46888267..b84e51480c84 100644
--- a/net/mac80211/rc80211_pid_algo.c
+++ b/net/mac80211/rc80211_pid_algo.c
@@ -210,7 +210,7 @@ static void rate_control_pid_sample(struct rc_pid_info *pinfo,
210 rate_control_pid_normalize(pinfo, mode->num_rates); 210 rate_control_pid_normalize(pinfo, mode->num_rates);
211 211
212 /* Compute the proportional, integral and derivative errors. */ 212 /* Compute the proportional, integral and derivative errors. */
213 err_prop = pinfo->target - pf; 213 err_prop = (pinfo->target << RC_PID_ARITH_SHIFT) - pf;
214 214
215 err_avg = spinfo->err_avg_sc >> pinfo->smoothing_shift; 215 err_avg = spinfo->err_avg_sc >> pinfo->smoothing_shift;
216 spinfo->err_avg_sc = spinfo->err_avg_sc - err_avg + err_prop; 216 spinfo->err_avg_sc = spinfo->err_avg_sc - err_avg + err_prop;