diff options
author | sam <sam@FreeBSD.org> | 2009-05-30 20:11:23 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-05-30 20:11:23 +0000 |
commit | edb66515a00d296986b025807b90de1f9253e1d1 (patch) | |
tree | cc5dca2d30ef6cf4835c0386b52ce9a5a0b3c73f /sys/net80211/ieee80211_dfs.c | |
parent | 26090443666d3ceab2f75d88550efeb67cd0461b (diff) | |
download | FreeBSD-src-edb66515a00d296986b025807b90de1f9253e1d1.zip FreeBSD-src-edb66515a00d296986b025807b90de1f9253e1d1.tar.gz |
distribute sysctl decls so global variables can be made static
Diffstat (limited to 'sys/net80211/ieee80211_dfs.c')
-rw-r--r-- | sys/net80211/ieee80211_dfs.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_dfs.c b/sys/net80211/ieee80211_dfs.c index fb75b4b..7e65c5f 100644 --- a/sys/net80211/ieee80211_dfs.c +++ b/sys/net80211/ieee80211_dfs.c @@ -54,10 +54,14 @@ __FBSDID("$FreeBSD$"); MALLOC_DEFINE(M_80211_DFS, "80211dfs", "802.11 DFS state"); -/* XXX public for sysctl hookup */ -int ieee80211_nol_timeout = 30*60; /* 30 minutes */ +static int ieee80211_nol_timeout = 30*60; /* 30 minutes */ +SYSCTL_INT(_net_wlan, OID_AUTO, nol_timeout, CTLFLAG_RW, + &ieee80211_nol_timeout, 0, "NOL timeout (secs)"); #define NOL_TIMEOUT msecs_to_ticks(ieee80211_nol_timeout*1000) -int ieee80211_cac_timeout = 60; /* 60 seconds */ + +static int ieee80211_cac_timeout = 60; /* 60 seconds */ +SYSCTL_INT(_net_wlan, OID_AUTO, cac_timeout, CTLFLAG_RW, + &ieee80211_cac_timeout, 0, "CAC timeout (secs)"); #define CAC_TIMEOUT msecs_to_ticks(ieee80211_cac_timeout*1000) void |