PERFORCE change 69404 for review

Sam Leffler sam at FreeBSD.org
Thu Jan 20 17:35:03 PST 2005


http://perforce.freebsd.org/chv.cgi?CH=69404

Change 69404 by sam at 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;
 


More information about the p4-projects mailing list