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 | 31a4d0c369dcda01e1e8faeec73ca5f6f138d764 (patch) | |
tree | 20bcd3f3a0428b3bc8b5588b1e3f3e0c704ae1fe /package/madwifi | |
parent | d91f741c747bb7347f603251dee24ab2e0cef03e (diff) | |
download | upstream-31a4d0c369dcda01e1e8faeec73ca5f6f138d764.tar.gz upstream-31a4d0c369dcda01e1e8faeec73ca5f6f138d764.tar.bz2 upstream-31a4d0c369dcda01e1e8faeec73ca5f6f138d764.zip |
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/madwifi')
-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 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; + } |