aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_dfs.h
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2012-01-31 00:03:49 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2012-01-31 00:03:49 +0000
commit62f8a13a756be9727a38be25c07d9a3c96f7e96d (patch)
treec167ab2f6bcbdeb4e2c2bfff53571f9b1ce06efc /sys/net80211/ieee80211_dfs.h
parent7f925de11ae77354b8c86398970050f39b3bca25 (diff)
downloadsrc-62f8a13a756be9727a38be25c07d9a3c96f7e96d.tar.gz
src-62f8a13a756be9727a38be25c07d9a3c96f7e96d.zip
Add a DFS debugging mode which is useful when doing automated DFS
compliance testing. In order to allow for radar pattern matching to occur, the DFS CAC/NOL handling needs to be made configurable. This commit introduces a new sysctl, "net.wlan.dfs_debug", which controls which DFS debug mode net80211 is in. * 0 = default, CSA/NOL handling as per normal. * 1 = announce a CSA, but don't add the channel to the non-occupy list (NOL.) * 2 = disable both CSA and NOL - only print that a radar event occured. This code is not compiled/enabled by default as it breaks regulatory handling. A user must enable IEEE80211_DFS_DEBUG in their kernel configuration file for this option to become available. Obtained from: Atheros
Notes
Notes: svn path=/head/; revision=230793
Diffstat (limited to 'sys/net80211/ieee80211_dfs.h')
-rw-r--r--sys/net80211/ieee80211_dfs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_dfs.h b/sys/net80211/ieee80211_dfs.h
index 90760777a785..a5688e3bc491 100644
--- a/sys/net80211/ieee80211_dfs.h
+++ b/sys/net80211/ieee80211_dfs.h
@@ -31,6 +31,12 @@
* 802.11h/DFS definitions.
*/
+typedef enum {
+ DFS_DBG_NONE = 0,
+ DFS_DBG_NONOL = 1,
+ DFS_DBG_NOCSANOL = 2
+} dfs_debug_t;
+
struct ieee80211_dfs_state {
int nol_event[IEEE80211_CHAN_MAX];
struct callout nol_timer; /* NOL list processing */