Deleted Added
full compact
ifieee80211.c (148554) ifieee80211.c (148621)
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 148554 2005-07-30 03:30:29Z sam $
27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 148621 2005-08-01 16:34:41Z sam $
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,

--- 490 unchanged lines hidden (view full) ---

526
527static
528DECL_CMD_FUNC2(set80211txoplimit, ac, val)
529{
530 set80211(s, IEEE80211_IOC_WME_TXOPLIMIT, atoi(val), getac(ac), NULL);
531}
532
533static
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,

--- 490 unchanged lines hidden (view full) ---

526
527static
528DECL_CMD_FUNC2(set80211txoplimit, ac, val)
529{
530 set80211(s, IEEE80211_IOC_WME_TXOPLIMIT, atoi(val), getac(ac), NULL);
531}
532
533static
534DECL_CMD_FUNC(set80211acm, val, d)
534DECL_CMD_FUNC(set80211acm, ac, d)
535{
535{
536 set80211(s, IEEE80211_IOC_WME_ACM, d, WME_AC_BE, NULL);
536 set80211(s, IEEE80211_IOC_WME_ACM, 1, getac(ac), NULL);
537}
537}
538static
539DECL_CMD_FUNC(set80211noacm, ac, d)
540{
541 set80211(s, IEEE80211_IOC_WME_ACM, 0, getac(ac), NULL);
542}
538
539static
543
544static
540DECL_CMD_FUNC(set80211ackpolicy, val, d)
545DECL_CMD_FUNC(set80211ackpolicy, ac, d)
541{
546{
542 set80211(s, IEEE80211_IOC_WME_ACKPOLICY, d, WME_AC_BE, NULL);
547 set80211(s, IEEE80211_IOC_WME_ACKPOLICY, 1, getac(ac), NULL);
543}
548}
549static
550DECL_CMD_FUNC(set80211noackpolicy, ac, d)
551{
552 set80211(s, IEEE80211_IOC_WME_ACKPOLICY, 0, getac(ac), NULL);
553}
544
545static
546DECL_CMD_FUNC2(set80211bsscwmin, ac, val)
547{
548 set80211(s, IEEE80211_IOC_WME_CWMIN, atoi(val),
549 getac(ac)|IEEE80211_WMEPARAM_BSS, NULL);
550}
551

--- 1240 unchanged lines hidden (view full) ---

1792 DEF_CMD_ARG("bssid", set80211bssid),
1793 DEF_CMD_ARG("ap", set80211bssid),
1794 DEF_CMD("scan", 0, set80211scan),
1795 DEF_CMD_ARG("list", set80211list),
1796 DEF_CMD_ARG2("cwmin", set80211cwmin),
1797 DEF_CMD_ARG2("cwmax", set80211cwmax),
1798 DEF_CMD_ARG2("aifs", set80211aifs),
1799 DEF_CMD_ARG2("txoplimit", set80211txoplimit),
554
555static
556DECL_CMD_FUNC2(set80211bsscwmin, ac, val)
557{
558 set80211(s, IEEE80211_IOC_WME_CWMIN, atoi(val),
559 getac(ac)|IEEE80211_WMEPARAM_BSS, NULL);
560}
561

--- 1240 unchanged lines hidden (view full) ---

1802 DEF_CMD_ARG("bssid", set80211bssid),
1803 DEF_CMD_ARG("ap", set80211bssid),
1804 DEF_CMD("scan", 0, set80211scan),
1805 DEF_CMD_ARG("list", set80211list),
1806 DEF_CMD_ARG2("cwmin", set80211cwmin),
1807 DEF_CMD_ARG2("cwmax", set80211cwmax),
1808 DEF_CMD_ARG2("aifs", set80211aifs),
1809 DEF_CMD_ARG2("txoplimit", set80211txoplimit),
1800 DEF_CMD("acm", 1, set80211acm),
1801 DEF_CMD("-acm", 0, set80211acm),
1802 DEF_CMD("ack", 1, set80211ackpolicy),
1803 DEF_CMD("-ack", 0, set80211ackpolicy),
1810 DEF_CMD_ARG("acm", set80211acm),
1811 DEF_CMD_ARG("-acm", set80211noacm),
1812 DEF_CMD_ARG("ack", set80211ackpolicy),
1813 DEF_CMD_ARG("-ack", set80211noackpolicy),
1804 DEF_CMD_ARG2("bss:cwmin", set80211bsscwmin),
1805 DEF_CMD_ARG2("bss:cwmax", set80211bsscwmax),
1806 DEF_CMD_ARG2("bss:aifs", set80211bssaifs),
1807 DEF_CMD_ARG2("bss:txoplimit", set80211bsstxoplimit),
1808 DEF_CMD_ARG("dtimperiod", set80211dtimperiod),
1809 DEF_CMD_ARG("bintval", set80211bintval),
1810 DEF_CMD("mac:open", IEEE80211_MACCMD_POLICY_OPEN, set80211maccmd),
1811 DEF_CMD("mac:allow", IEEE80211_MACCMD_POLICY_ALLOW, set80211maccmd),

--- 29 unchanged lines hidden ---
1814 DEF_CMD_ARG2("bss:cwmin", set80211bsscwmin),
1815 DEF_CMD_ARG2("bss:cwmax", set80211bsscwmax),
1816 DEF_CMD_ARG2("bss:aifs", set80211bssaifs),
1817 DEF_CMD_ARG2("bss:txoplimit", set80211bsstxoplimit),
1818 DEF_CMD_ARG("dtimperiod", set80211dtimperiod),
1819 DEF_CMD_ARG("bintval", set80211bintval),
1820 DEF_CMD("mac:open", IEEE80211_MACCMD_POLICY_OPEN, set80211maccmd),
1821 DEF_CMD("mac:allow", IEEE80211_MACCMD_POLICY_ALLOW, set80211maccmd),

--- 29 unchanged lines hidden ---