ifieee80211.c (224224) | ifieee80211.c (227336) |
---|---|
1/* 2 * Copyright 2001 The Aerospace Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright 2001 The Aerospace Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 224224 2011-07-20 05:59:28Z adrian $ | 27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 227336 2011-11-08 14:22:40Z adrian $ |
28 */ 29 30/*- 31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc. 32 * All rights reserved. 33 * 34 * This code is derived from software contributed to The NetBSD Foundation 35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 1296 unchanged lines hidden (view full) --- 1332 1333static void 1334set80211pureg(const char *val, int d, int s, const struct afswtch *rafp) 1335{ 1336 set80211(s, IEEE80211_IOC_PUREG, d, 0, NULL); 1337} 1338 1339static void | 28 */ 29 30/*- 31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc. 32 * All rights reserved. 33 * 34 * This code is derived from software contributed to The NetBSD Foundation 35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 1296 unchanged lines hidden (view full) --- 1332 1333static void 1334set80211pureg(const char *val, int d, int s, const struct afswtch *rafp) 1335{ 1336 set80211(s, IEEE80211_IOC_PUREG, d, 0, NULL); 1337} 1338 1339static void |
1340set80211quiet(const char *val, int d, int s, const struct afswtch *rafp) 1341{ 1342 set80211(s, IEEE80211_IOC_QUIET, d, 0, NULL); 1343} 1344 1345static 1346DECL_CMD_FUNC(set80211quietperiod, val, d) 1347{ 1348 set80211(s, IEEE80211_IOC_QUIET_PERIOD, atoi(val), 0, NULL); 1349} 1350 1351static 1352DECL_CMD_FUNC(set80211quietcount, val, d) 1353{ 1354 set80211(s, IEEE80211_IOC_QUIET_COUNT, atoi(val), 0, NULL); 1355} 1356 1357static 1358DECL_CMD_FUNC(set80211quietduration, val, d) 1359{ 1360 set80211(s, IEEE80211_IOC_QUIET_DUR, atoi(val), 0, NULL); 1361} 1362 1363static 1364DECL_CMD_FUNC(set80211quietoffset, val, d) 1365{ 1366 set80211(s, IEEE80211_IOC_QUIET_OFFSET, atoi(val), 0, NULL); 1367} 1368 1369static void |
|
1340set80211bgscan(const char *val, int d, int s, const struct afswtch *rafp) 1341{ 1342 set80211(s, IEEE80211_IOC_BGSCAN, d, 0, NULL); 1343} 1344 1345static 1346DECL_CMD_FUNC(set80211bgscanidle, val, d) 1347{ --- 3808 unchanged lines hidden (view full) --- 5156 DEF_CMD("-ff", 0, set80211fastframes), 5157 DEF_CMD("dturbo", 1, set80211dturbo), 5158 DEF_CMD("-dturbo", 0, set80211dturbo), 5159 DEF_CMD("bgscan", 1, set80211bgscan), 5160 DEF_CMD("-bgscan", 0, set80211bgscan), 5161 DEF_CMD_ARG("bgscanidle", set80211bgscanidle), 5162 DEF_CMD_ARG("bgscanintvl", set80211bgscanintvl), 5163 DEF_CMD_ARG("scanvalid", set80211scanvalid), | 1370set80211bgscan(const char *val, int d, int s, const struct afswtch *rafp) 1371{ 1372 set80211(s, IEEE80211_IOC_BGSCAN, d, 0, NULL); 1373} 1374 1375static 1376DECL_CMD_FUNC(set80211bgscanidle, val, d) 1377{ --- 3808 unchanged lines hidden (view full) --- 5186 DEF_CMD("-ff", 0, set80211fastframes), 5187 DEF_CMD("dturbo", 1, set80211dturbo), 5188 DEF_CMD("-dturbo", 0, set80211dturbo), 5189 DEF_CMD("bgscan", 1, set80211bgscan), 5190 DEF_CMD("-bgscan", 0, set80211bgscan), 5191 DEF_CMD_ARG("bgscanidle", set80211bgscanidle), 5192 DEF_CMD_ARG("bgscanintvl", set80211bgscanintvl), 5193 DEF_CMD_ARG("scanvalid", set80211scanvalid), |
5194 DEF_CMD("quiet", 1, set80211quiet), 5195 DEF_CMD("-quiet", 0, set80211quiet), 5196 DEF_CMD_ARG("quiet_count", set80211quietcount), 5197 DEF_CMD_ARG("quiet_period", set80211quietperiod), 5198 DEF_CMD_ARG("quiet_dur", set80211quietduration), 5199 DEF_CMD_ARG("quiet_offset", set80211quietoffset), |
|
5164 DEF_CMD_ARG("roam:rssi", set80211roamrssi), 5165 DEF_CMD_ARG("roam:rate", set80211roamrate), 5166 DEF_CMD_ARG("mcastrate", set80211mcastrate), 5167 DEF_CMD_ARG("ucastrate", set80211ucastrate), 5168 DEF_CMD_ARG("mgtrate", set80211mgtrate), 5169 DEF_CMD_ARG("mgmtrate", set80211mgtrate), 5170 DEF_CMD_ARG("maxretry", set80211maxretry), 5171 DEF_CMD_ARG("fragthreshold", set80211fragthreshold), --- 109 unchanged lines hidden --- | 5200 DEF_CMD_ARG("roam:rssi", set80211roamrssi), 5201 DEF_CMD_ARG("roam:rate", set80211roamrate), 5202 DEF_CMD_ARG("mcastrate", set80211mcastrate), 5203 DEF_CMD_ARG("ucastrate", set80211ucastrate), 5204 DEF_CMD_ARG("mgtrate", set80211mgtrate), 5205 DEF_CMD_ARG("mgmtrate", set80211mgtrate), 5206 DEF_CMD_ARG("maxretry", set80211maxretry), 5207 DEF_CMD_ARG("fragthreshold", set80211fragthreshold), --- 109 unchanged lines hidden --- |