Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78691
b: refs/heads/master
c: 426706c
h: refs/heads/master
i:
  78689: 0619727
  78687: 1407184
v: v3
  • Loading branch information
Stefano Brivio authored and David S. Miller committed Jan 28, 2008
1 parent 56ff395 commit 60ef460
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69f817b654d683265118188bbfb8bc0d8978cce6
refs/heads/master: 426706c0791904766e10bef512d86786f2f62857
2 changes: 1 addition & 1 deletion trunk/net/mac80211/rc80211_pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* link quality is good, the controller will fail to adjust failed frames
* percentage to the target. This is intentional.
*/
#define RC_PID_TARGET_PF (11 << RC_PID_ARITH_SHIFT)
#define RC_PID_TARGET_PF 11

/* Rate behaviour normalization quantity over time. */
#define RC_PID_NORM_OFFSET 3
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/mac80211/rc80211_pid_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static void rate_control_pid_sample(struct rc_pid_info *pinfo,
rate_control_pid_normalize(pinfo, mode->num_rates);

/* Compute the proportional, integral and derivative errors. */
err_prop = pinfo->target - pf;
err_prop = (pinfo->target << RC_PID_ARITH_SHIFT) - pf;

err_avg = spinfo->err_avg_sc >> pinfo->smoothing_shift;
spinfo->err_avg_sc = spinfo->err_avg_sc - err_avg + err_prop;
Expand Down

0 comments on commit 60ef460

Please sign in to comment.