mirror of
https://github.com/proski/madwifi
synced 2024-11-22 06:21:47 +03:00
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:
parent
ff673bb684
commit
36d29a3180
10
ath/if_ath.c
10
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;
|
||||
|
Loading…
Reference in New Issue
Block a user