madwifi: make sure that minstrel rc updates still work after a jiffies wraparound
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 29 Jan 2010 02:49:13 +0000 (02:49 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 29 Jan 2010 02:49:13 +0000 (02:49 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19377 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/madwifi/patches/452-minstrel_no_timer.patch

index e7f2dea..b9b5c9f 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;
 +              }