svn commit: r240254 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Sun Sep 9 04:53:11 UTC 2012


Author: adrian
Date: Sun Sep  9 04:53:10 2012
New Revision: 240254
URL: http://svn.freebsd.org/changeset/base/240254

Log:
  Remove TDMA #define entries from if_ath.c; they now exist in if_ath_tdma.h.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Sun Sep  9 01:22:32 2012	(r240253)
+++ head/sys/dev/ath/if_ath.c	Sun Sep  9 04:53:10 2012	(r240254)
@@ -204,22 +204,6 @@ static void	ath_dfs_tasklet(void *, int)
 #include <dev/ath/if_ath_tdma.h>
 #endif
 
-#if 0
-#define	TDMA_EP_MULTIPLIER	(1<<10) /* pow2 to optimize out * and / */
-#define	TDMA_LPF_LEN		6
-#define	TDMA_DUMMY_MARKER	0x127
-#define	TDMA_EP_MUL(x, mul)	((x) * (mul))
-#define	TDMA_IN(x)		(TDMA_EP_MUL((x), TDMA_EP_MULTIPLIER))
-#define	TDMA_LPF(x, y, len) \
-    ((x != TDMA_DUMMY_MARKER) ? (((x) * ((len)-1) + (y)) / (len)) : (y))
-#define	TDMA_SAMPLE(x, y) do {					\
-	x = TDMA_LPF((x), TDMA_IN(y), TDMA_LPF_LEN);		\
-} while (0)
-#define	TDMA_EP_RND(x,mul) \
-	((((x)%(mul)) >= ((mul)/2)) ? ((x) + ((mul) - 1)) / (mul) : (x)/(mul))
-#define	TDMA_AVG(x)		TDMA_EP_RND(x, TDMA_EP_MULTIPLIER)
-#endif /* IEEE80211_SUPPORT_TDMA */
-
 SYSCTL_DECL(_hw_ath);
 
 /* XXX validate sysctl values */


More information about the svn-src-all mailing list