summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifieee80211.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-07-30 03:28:41 +0000
committersam <sam@FreeBSD.org>2005-07-30 03:28:41 +0000
commitb88877a7682e50dd644feb9eec8ea9f64123dcdc (patch)
tree8fa2c4771ca91f3ebabb710d78f273bf717380c2 /sbin/ifconfig/ifieee80211.c
parent9e1f21a348a1ee4cd2f5caf7ed4863bae3c9cda6 (diff)
downloadFreeBSD-src-b88877a7682e50dd644feb9eec8ea9f64123dcdc.zip
FreeBSD-src-b88877a7682e50dd644feb9eec8ea9f64123dcdc.tar.gz
MFC: add fragthreshold parameter and accept - (or any) for rtsthreshold
Approved by: re (kensmith)
Diffstat (limited to 'sbin/ifconfig/ifieee80211.c')
-rw-r--r--sbin/ifconfig/ifieee80211.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index a32a2ab..8481a55 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -632,6 +632,13 @@ DECL_CMD_FUNC(set80211fragthreshold, val, d)
isundefarg(val) ? IEEE80211_FRAG_MAX : atoi(val), 0, NULL);
}
+static
+DECL_CMD_FUNC(set80211fragthreshold, val, d)
+{
+ set80211(s, IEEE80211_IOC_FRAGTHRESHOLD,
+ isundefarg(val) ? IEEE80211_FRAG_MAX : atoi(val), 0, NULL);
+}
+
static int
getmaxrate(uint8_t rates[15], uint8_t nrates)
{
OpenPOWER on IntegriCloud