madwifi: modify madwifi.sh to support IBSS WPA-NONE
[openwrt.git] / package / madwifi / patches / 452-minstrel_no_timer.patch
index e7f2dea..f0f5c26 100644 (file)
  
  
  #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52))
  
  
  #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52))
-@@ -204,6 +202,11 @@ ath_rate_findrate(struct ath_softc *sc, 
+@@ -204,6 +202,11 @@ ath_rate_findrate(struct ath_softc *sc,
                unsigned int ndx, offset;
                int mrr;
  
 +
                unsigned int ndx, offset;
                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;
 +              }
 +                      ath_rate_statistics(&an->an_node);
 +                      sn->last_update = jiffies;
 +              }
This page took 0.024857 seconds and 4 git commands to generate.