mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:27:30 +02:00
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
This commit is contained in:
parent
c961f4f63d
commit
2dab34dc00
@ -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;
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user