Use time_after_eq(), not time_after()
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 17 Jul 2008 05:11:56 +0000 (05:11 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 17 Jul 2008 05:11:56 +0000 (05:11 +0000)
The trunk and the madwifi-dfs branch fixed jiffy rollover differently,
but the madwifi-dfs fix is closer to the original code.

Reference: madwifi-dfs@3676

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3788 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath_rate/onoe/onoe.c

index 3032c74abb6fb316ba4de91780ea2a444b559a47..c0f86749421a3575372b0ffeef23f6b2e4cca173 100644 (file)
@@ -160,7 +160,7 @@ ath_rate_tx_complete(struct ath_softc *sc,
                on->on_tx_err++;
        on->on_tx_retr += ts->ts_shortretry
                        + ts->ts_longretry;
-       if (time_after(jiffies, on->on_nextcheck)) {
+       if (time_after_eq(jiffies, on->on_nextcheck)) {
                ath_rate_ctl(sc, &an->an_node);
                /* XXX halve rate for station mode */
                on->on_nextcheck = jiffies + (ath_rateinterval * HZ) / 1000;