summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-29 02:49:13 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-01-29 02:49:13 +0000
commit2dab34dc0040b439d094eaa093a88d72d0eea1a9 (patch)
tree20bcd3f3a0428b3bc8b5588b1e3f3e0c704ae1fe /package
parentc961f4f63df90f6b65dd2bcda90fcc68b449c1d9 (diff)
madwifi: make sure that minstrel rc updates still work after a jiffies wraparound
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19377 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/452-minstrel_no_timer.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/patches/452-minstrel_no_timer.patch b/package/madwifi/patches/452-minstrel_no_timer.patch
index e7f2deac1..b9b5c9f07 100644
--- a/package/madwifi/patches/452-minstrel_no_timer.patch
+++ b/package/madwifi/patches/452-minstrel_no_timer.patch
@@ -32,7 +32,7 @@
int mrr;
+
-+ if (sn->last_update + msecs_to_jiffies(TIMER_INTERVAL) < jiffies) {
++ if (abs(jiffies - sn->last_update) > msecs_to_jiffies(TIMER_INTERVAL)) {
+ ath_rate_statistics(&an->an_node);
+ sn->last_update = jiffies;
+ }