diff options
author | adrian <adrian@FreeBSD.org> | 2011-06-26 13:43:15 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-06-26 13:43:15 +0000 |
commit | 5c01535c7c4aeafb7ba7768538315dca39fa182c (patch) | |
tree | ad9bb19aededf0312db1e0876d371b0aefbe1286 /sys/dev | |
parent | 1d169284e3cab5f4a13ee56c30c1d21f166855c2 (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/if_ath.c | 3 |
1 files changed, 3 insertions, 0 deletions
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. |