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_superg.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_superg.c')
-rw-r--r-- | sys/net80211/ieee80211_superg.c | 10 |
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) |