mirror of
https://github.com/proski/madwifi
synced 2024-11-24 15:30:09 +03:00
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:
parent
d818daa1f2
commit
60a88a29d6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user