Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369589
b: refs/heads/master
c: eea8599
h: refs/heads/master
i:
  369587: df59707
v: v3
  • Loading branch information
Karl Beldan authored and Johannes Berg committed Apr 17, 2013
1 parent 506e166 commit 9cae8ef
Show file tree
Hide file tree
Showing 2 changed files with 4 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: e1c3b15dd33a7d990188fa5b4731c78f8ba416a4
refs/heads/master: eea85999eca4d7f3528010cd8277392cd56ba713
5 changes: 3 additions & 2 deletions trunk/net/mac80211/rc80211_minstrel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#ifndef __RC_MINSTREL_H
#define __RC_MINSTREL_H

#define EWMA_LEVEL 75 /* ewma weighting factor [%] */
#define EWMA_LEVEL 96 /* ewma weighting factor [/EWMA_DIV] */
#define EWMA_DIV 128
#define SAMPLE_COLUMNS 10 /* number of columns in sample table */


Expand All @@ -27,7 +28,7 @@
static inline int
minstrel_ewma(int old, int new, int weight)
{
return (new * (100 - weight) + old * weight) / 100;
return (new * (EWMA_DIV - weight) + old * weight) / EWMA_DIV;
}


Expand Down

0 comments on commit 9cae8ef

Please sign in to comment.