madwifi: make sure that minstrel rc updates still work after a jiffies wraparound
SVN-Revision: 19377
This commit is contained in:
parent
b935b1abe2
commit
8de3096f63
@ -32,7 +32,7 @@
|
|||||||
int mrr;
|
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);
|
+ ath_rate_statistics(&an->an_node);
|
||||||
+ sn->last_update = jiffies;
|
+ sn->last_update = jiffies;
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user