summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-06-26 13:43:15 +0000
committeradrian <adrian@FreeBSD.org>2011-06-26 13:43:15 +0000
commit5c01535c7c4aeafb7ba7768538315dca39fa182c (patch)
treead9bb19aededf0312db1e0876d371b0aefbe1286
parent1d169284e3cab5f4a13ee56c30c1d21f166855c2 (diff)
downloadFreeBSD-src-5c01535c7c4aeafb7ba7768538315dca39fa182c.zip
FreeBSD-src-5c01535c7c4aeafb7ba7768538315dca39fa182c.tar.gz
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.
-rw-r--r--sys/conf/options3
-rw-r--r--sys/dev/ath/if_ath.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/conf/options b/sys/conf/options
index ee696a8..1ce30b1 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -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
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index f3afc70..1bca5e4 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -528,6 +528,9 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
| 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.
OpenPOWER on IntegriCloud