diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-01-29 02:49:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-01-29 02:49:13 +0000 |
commit | 8de3096f63717335ad903f1b4976ac4842951a86 (patch) | |
tree | fca960f41558600aef272efbecc425462e97fe35 /package/madwifi/patches | |
parent | b935b1abe2161ea95966aa6b89fffde0b593918e (diff) | |
download | mtk-20170518-8de3096f63717335ad903f1b4976ac4842951a86.zip mtk-20170518-8de3096f63717335ad903f1b4976ac4842951a86.tar.gz mtk-20170518-8de3096f63717335ad903f1b4976ac4842951a86.tar.bz2 |
madwifi: make sure that minstrel rc updates still work after a jiffies wraparound
SVN-Revision: 19377
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r-- | package/madwifi/patches/452-minstrel_no_timer.patch | 2 |
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 e7f2dea..b9b5c9f 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; + } |