From cee2b2f82a95ef879290426a5b33b36daabba042 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Jan 2010 02:49:13 +0000 Subject: [PATCH] madwifi: make sure that minstrel rc updates still work after a jiffies wraparound SVN-Revision: 19377 --- package/madwifi/patches/452-minstrel_no_timer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/madwifi/patches/452-minstrel_no_timer.patch b/package/madwifi/patches/452-minstrel_no_timer.patch index e7f2deac1c..b9b5c9f074 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; + } -- 2.30.2