Date: Fri, 22 Feb 2008 09:33:26 +0800 From: "Sepherosa Ziehau" <sepherosa@gmail.com> To: "Barbieri, Paul (US SSA)" <paul.barbieri@baesystems.com> Cc: freebsd-net@freebsd.org Subject: Re: ieee80211 ms and tu convert macros Message-ID: <ea7b9c170802211733u48793b2l11559e6579bb3bfd@mail.gmail.com> In-Reply-To: <8DD841934E0E96429CC4470C23528CA10260B9CB@GLDMS00013.goldlnk.rootlnka.net> References: <8DD841934E0E96429CC4470C23528CA10260B9CB@GLDMS00013.goldlnk.rootlnka.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 21, 2008 at 1:30 AM, Barbieri, Paul (US SSA) <paul.barbieri@baesystems.com> wrote: > I happened to be looking in net80211/ieee80211_var.h and examined the > macros IEEE80211_MS_TO_TU and IEEE80211_TU_TO_MS. The conversions seem > backward to me. The macros are: > > > > #define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) > > #define IEEE80211_TU_TO_MS(x) (((x) * 1024) / 1000) > > > > If I take the values: > > 1 second = 1000 milliseconds (ms) = 1024 timer units (tu) Please reread 802.11-1999, page 6, 3.45: one tu is 1024us Best Regards, sephe -- Live Free or Die
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ea7b9c170802211733u48793b2l11559e6579bb3bfd>