Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2005 01:35:01 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 69404 for review
Message-ID:  <200501210135.j0L1Z14n009840@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=69404

Change 69404 by sam@sam_ebb on 2005/01/21 01:34:07

	add macros to convert between TU's and milliseconds

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_var.h#24 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/ieee80211_var.h#24 (text+ko) ====

@@ -65,13 +65,16 @@
 #define	IEEE80211_DTIM_MIN	1	/* min DTIM period */
 #define	IEEE80211_DTIM_DEFAULT	1	/* default DTIM period */
 
-#define	IEEE80211_BINTVAL_MAX	500	/* max beacon interval (ms) */
-#define	IEEE80211_BINTVAL_MIN	25	/* min beacon interval */
-#define	IEEE80211_BINTVAL_DEFAULT 100	/* default beacon interval */
+#define	IEEE80211_BINTVAL_MAX	500	/* max beacon interval (TU's) */
+#define	IEEE80211_BINTVAL_MIN	25	/* min beacon interval (TU's) */
+#define	IEEE80211_BINTVAL_DEFAULT 100	/* default beacon interval (TU's) */
 
 #define	IEEE80211_PS_SLEEP	0x1	/* STA is in power saving mode */
 #define	IEEE80211_PS_MAX_QUEUE	50	/* maximum saved packets */
 
+#define	IEEE80211_MS_TO_TU(x)	(((x) * 1000) / 1024)
+#define	IEEE80211_TU_TO_MS(x)	(((x) * 1024) / 1000)
+
 struct ieee80211_aclator;
 struct sysctl_ctx_list;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501210135.j0L1Z14n009840>