浏览代码

rc80211-pid: fix definition of rate control interval

Fix the rate control interval definition. Thanks to Mattias Nissler for
spotting this out.

Cc: Mattias Nissler <mattias.nissler@gmx.de>
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stefano Brivio 17 年之前
父节点
当前提交
1b507e7e53
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      net/mac80211/rc80211_pid.h

+ 2 - 2
net/mac80211/rc80211_pid.h

@@ -10,8 +10,8 @@
 #ifndef RC80211_PID_H
 #ifndef RC80211_PID_H
 #define RC80211_PID_H
 #define RC80211_PID_H
 
 
-/* Sampling period for measuring percentage of failed frames. */
-#define RC_PID_INTERVAL			(HZ / 8)
+/* Sampling period for measuring percentage of failed frames in ms. */
+#define RC_PID_INTERVAL			125
 
 
 /* Exponential averaging smoothness (used for I part of PID controller) */
 /* Exponential averaging smoothness (used for I part of PID controller) */
 #define RC_PID_SMOOTHING_SHIFT		3
 #define RC_PID_SMOOTHING_SHIFT		3