diff options
author | sam <sam@FreeBSD.org> | 2007-03-05 18:52:35 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-03-05 18:52:35 +0000 |
commit | 369e4f0ba492a59a3317fcc4f20ed5ae566d4310 (patch) | |
tree | cc105463447117019ac41e34ae862819d7ae1e9e /sys/net80211/ieee80211_var.h | |
parent | cdf4f0e4261561026225257dc9974e5331b4d608 (diff) | |
download | FreeBSD-src-369e4f0ba492a59a3317fcc4f20ed5ae566d4310.zip FreeBSD-src-369e4f0ba492a59a3317fcc4f20ed5ae566d4310.tar.gz |
correct conversions between TU and ms/ticks; these are not used
by any code in the tree[1] and are close enough for common values
that this change is a noop
[1] ath uses one macro to calculate a value that is not used
Submitted by: sephe
MFC after: 1 week
Diffstat (limited to 'sys/net80211/ieee80211_var.h')
-rw-r--r-- | sys/net80211/ieee80211_var.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h index a0a2d9e..482687c 100644 --- a/sys/net80211/ieee80211_var.h +++ b/sys/net80211/ieee80211_var.h @@ -76,9 +76,9 @@ #define IEEE80211_RTS_DEFAULT IEEE80211_RTS_MAX #define IEEE80211_FRAG_DEFAULT IEEE80211_FRAG_MAX -#define IEEE80211_MS_TO_TU(x) (((x) * 1024) / 1000) -#define IEEE80211_TU_TO_MS(x) (((x) * 1000) / 1024) -#define IEEE80211_TU_TO_TICKS(x)(((x) * hz) / 1024) +#define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) +#define IEEE80211_TU_TO_MS(x) (((x) * 1024) / 1000) +#define IEEE80211_TU_TO_TICKS(x)(((x) * 1024 * hz) / (1000 * 1000)) struct ieee80211_aclator; struct sysctl_ctx_list; |