summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_dfs.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-01-31 00:03:49 +0000
committeradrian <adrian@FreeBSD.org>2012-01-31 00:03:49 +0000
commit52801b5562a08eb59e74be5bcae14bdb70311c39 (patch)
treec167ab2f6bcbdeb4e2c2bfff53571f9b1ce06efc /sys/net80211/ieee80211_dfs.h
parentda7d786fd42cccabf9a0a984972ae8d78c1d61fa (diff)
downloadFreeBSD-src-52801b5562a08eb59e74be5bcae14bdb70311c39.zip
FreeBSD-src-52801b5562a08eb59e74be5bcae14bdb70311c39.tar.gz
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
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 9076077..a5688e3 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 */
OpenPOWER on IntegriCloud