Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2011 13:43:15 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223567 - in head/sys: conf dev/ath
Message-ID:  <201106261343.p5QDhF9l054810@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Jun 26 13:43:15 2011
New Revision: 223567
URL: http://svn.freebsd.org/changeset/base/223567

Log:
  Add ATH_ENABLE_DFS which enables the DFS flag so the DFS code
  can be tested.
  
  This doesn't at all actually do radar detection! It's just
  so developers who wish to test the net80211 DFS code can easily
  do so. Without this flag, the DFS channels are never marked
  DFS and thus the DFS stuff doesn't run.

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

Modified: head/sys/conf/options
==============================================================================
--- head/sys/conf/options	Sun Jun 26 11:37:24 2011	(r223566)
+++ head/sys/conf/options	Sun Jun 26 13:43:15 2011	(r223567)
@@ -773,7 +773,8 @@ ATH_TXBUF		opt_ath.h
 ATH_RXBUF		opt_ath.h
 ATH_DIAGAPI		opt_ath.h
 ATH_TX99_DIAG		opt_ath.h
-ATH_ENABLE_11N		opt_ah.h
+ATH_ENABLE_11N		opt_ath.h
+ATH_ENABLE_DFS		opt_ath.h
 
 # options for the Atheros hal
 AH_SUPPORT_AR5416	opt_ah.h

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Sun Jun 26 11:37:24 2011	(r223566)
+++ head/sys/dev/ath/if_ath.c	Sun Jun 26 13:43:15 2011	(r223567)
@@ -528,6 +528,9 @@ ath_attach(u_int16_t devid, struct ath_s
 		| IEEE80211_C_WPA		/* capable of WPA1+WPA2 */
 		| IEEE80211_C_BGSCAN		/* capable of bg scanning */
 		| IEEE80211_C_TXFRAG		/* handle tx frags */
+#ifdef	ATH_ENABLE_DFS
+		| IEEE80211_C_DFS		/* Enable DFS radar detection */
+#endif
 		;
 	/*
 	 * Query the hal to figure out h/w crypto support.



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