aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_superg.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2009-05-30 20:11:23 +0000
committerSam Leffler <sam@FreeBSD.org>2009-05-30 20:11:23 +0000
commita77b10b321841a57772442193f6fc93432003785 (patch)
treecc5dca2d30ef6cf4835c0386b52ce9a5a0b3c73f /sys/net80211/ieee80211_superg.c
parent39c3faaf70391d0d5b84f8f4889c4f8527403364 (diff)
distribute sysctl decls so global variables can be made static
Notes
Notes: svn path=/head/; revision=193115
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 d75917b89e3f..dfe6f192f828 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)