madwifi: make sure that minstrel rc updates still work after a jiffies wraparound
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jan 2010 02:49:13 +0000 (02:49 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jan 2010 02:49:13 +0000 (02:49 +0000)
SVN-Revision: 19377

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;
 +              }