summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_superg.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-05-30 20:11:23 +0000
committersam <sam@FreeBSD.org>2009-05-30 20:11:23 +0000
commitedb66515a00d296986b025807b90de1f9253e1d1 (patch)
treecc5dca2d30ef6cf4835c0386b52ce9a5a0b3c73f /sys/net80211/ieee80211_superg.c
parent26090443666d3ceab2f75d88550efeb67cd0461b (diff)
downloadFreeBSD-src-edb66515a00d296986b025807b90de1f9253e1d1.zip
FreeBSD-src-edb66515a00d296986b025807b90de1f9253e1d1.tar.gz
distribute sysctl decls so global variables can be made static
Diffstat (limited to 'sys/net80211/ieee80211_superg.c')
-rw-r--r--sys/net80211/ieee80211_superg.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_superg.c b/sys/net80211/ieee80211_superg.c
index d75917b..dfe6f19 100644
--- a/sys/net80211/ieee80211_superg.c
+++ b/sys/net80211/ieee80211_superg.c
@@ -83,9 +83,13 @@ __FBSDID("$FreeBSD$");
#define ETHER_HEADER_COPY(dst, src) \
memcpy(dst, src, sizeof(struct ether_header))
-/* XXX public for sysctl hookup */
-int ieee80211_ffppsmin = 2; /* pps threshold for ff aggregation */
-int ieee80211_ffagemax = -1; /* max time frames held on stage q */
+static int ieee80211_ffppsmin = 2; /* pps threshold for ff aggregation */
+SYSCTL_INT(_net_wlan, OID_AUTO, ffppsmin, CTLTYPE_INT | CTLFLAG_RW,
+ &ieee80211_ffppsmin, 0, "min packet rate before fast-frame staging");
+static int ieee80211_ffagemax = -1; /* max time frames held on stage q */
+SYSCTL_PROC(_net_wlan, OID_AUTO, ffagemax, CTLTYPE_INT | CTLFLAG_RW,
+ &ieee80211_ffagemax, 0, ieee80211_sysctl_msecs_ticks, "I",
+ "max hold time for fast-frame staging (ms)");
void
ieee80211_superg_attach(struct ieee80211com *ic)
OpenPOWER on IntegriCloud