From: mentor Date: Mon, 24 Dec 2007 01:10:25 +0000 (+0000) Subject: Update TSTAMP MASK defines missed in last commit X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=36d29a3180a02581186a99b371fa659fd630796c;p=madwifi%2F.git Update TSTAMP MASK defines missed in last commit git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3077 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/ath/if_ath.c b/ath/if_ath.c index 4187b3b..3c0dd91 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -1547,13 +1547,13 @@ ath_extend_tsf(u_int64_t tsf, u_int32_t rstamp) u_int64_t result; - result = (tsf & ~TSTAMP_MASK) | rstamp; + result = (tsf & ~TSTAMP_RX_MASK) | rstamp; if (result > tsf) { - if ((result - tsf) > (TSTAMP_MASK / 2)) - result -= (TSTAMP_MASK + 1); + if ((result - tsf) > (TSTAMP_RX_MASK / 2)) + result -= (TSTAMP_RX_MASK + 1); } else { - if ((tsf - result) > (TSTAMP_MASK / 2)) - result += (TSTAMP_MASK + 1); + if ((tsf - result) > (TSTAMP_RX_MASK / 2)) + result += (TSTAMP_RX_MASK + 1); } return result;