madwifi: make sure that minstrel rc updates still work after a jiffies wraparound
[openwrt-10.03/.git] / package / madwifi / patches / 452-minstrel_no_timer.patch
index e7f2deac1c5a46461a4cd51be843aeb6bf2b3618..b9b5c9f074382ef07c0e210e1fe72a959d93ff30 100644 (file)
@@ -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;
 +              }