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.
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to