From 60a88a29d694383a1c1d3b93d5203bcd1ad822bc Mon Sep 17 00:00:00 2001 From: proski Date: Thu, 17 Jul 2008 05:11:56 +0000 Subject: [PATCH] Use time_after_eq(), not time_after() 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ath_rate/onoe/onoe.c b/ath_rate/onoe/onoe.c index 3032c74..c0f8674 100644 --- a/ath_rate/onoe/onoe.c +++ b/ath_rate/onoe/onoe.c @@ -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; -- 2.35.1