Update TSTAMP MASK defines missed in last commit

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3077 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mentor 2007-12-24 01:10:25 +00:00
parent ff673bb684
commit 36d29a3180

View File

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