From owner-freebsd-net@FreeBSD.ORG Fri Feb 22 01:33:28 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF12116A402 for ; Fri, 22 Feb 2008 01:33:28 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.180]) by mx1.freebsd.org (Postfix) with ESMTP id EEC1113C4CE for ; Fri, 22 Feb 2008 01:33:27 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so241792ele.3 for ; Thu, 21 Feb 2008 17:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+yzpmC3W50hGdCf0M/4wZdfmxfZhrx+v4HjA/Rqwl9I=; b=cxiWkztrgXFI6rL+K/uQt0NWlAldX6YcZY+nXu3Xm4Hos7dBEVSrnR5G+17sAFhe7/LhDiG2QMRq8RztE6WbOjUGkFSz5vB5irQ6yNJ4V375UyYDyVqbkMb7TOX2PsWHLbJAgd+lfqfPgtxXzZoMpjbhCnfzgr/mswamvn1PEV0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=knqefT7dZeTZsWyzVhxvqD1v+X3rsVNWvLEQupm1VTCUtZQsx917zTlr/1GITqCaEjFzmiZGHfj3A+iFXF+4WG/7htrWGoqIjtnx19dgSjSUYyQ8Fa63zHYRYqwoAF2+slnEv/H46f7uAuKBgRTu3ERe1r65wiNuQecfVtVIqnI= Received: by 10.142.194.1 with SMTP id r1mr8276497wff.123.1203644006497; Thu, 21 Feb 2008 17:33:26 -0800 (PST) Received: by 10.142.222.19 with HTTP; Thu, 21 Feb 2008 17:33:26 -0800 (PST) Message-ID: Date: Fri, 22 Feb 2008 09:33:26 +0800 From: "Sepherosa Ziehau" To: "Barbieri, Paul (US SSA)" In-Reply-To: <8DD841934E0E96429CC4470C23528CA10260B9CB@GLDMS00013.goldlnk.rootlnka.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8DD841934E0E96429CC4470C23528CA10260B9CB@GLDMS00013.goldlnk.rootlnka.net> Cc: freebsd-net@freebsd.org Subject: Re: ieee80211 ms and tu convert macros X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 01:33:28 -0000 On Thu, Feb 21, 2008 at 1:30 AM, Barbieri, Paul (US SSA) 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