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
This commit is contained in:
proski 2008-07-17 05:11:56 +00:00
parent d818daa1f2
commit 60a88a29d6

View 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;