ifieee80211.c (139493) | ifieee80211.c (139494) |
---|---|
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 139493 2004-12-31 19:39:25Z sam $ | 27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 139494 2004-12-31 19:46:27Z 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, --- 1241 unchanged lines hidden (view full) --- 1277 if (ik->ik_flags & IEEE80211_KEY_DEFAULT) 1278 printf("%sdef", sep), sep = "+"; 1279 } 1280 LINE_BREAK(); 1281 } 1282} 1283 1284static 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, --- 1241 unchanged lines hidden (view full) --- 1277 if (ik->ik_flags & IEEE80211_KEY_DEFAULT) 1278 printf("%sdef", sep), sep = "+"; 1279 } 1280 LINE_BREAK(); 1281 } 1282} 1283 1284static void |
1285ieee80211_status(int s, const struct rt_addrinfo *info __unused) | 1285ieee80211_status(int s) |
1286{ 1287 static const uint8_t zerobssid[IEEE80211_ADDR_LEN]; 1288 enum ieee80211_opmode opmode = get80211opmode(s); 1289 int i, num, wpa, wme; 1290 struct ieee80211req ireq; 1291 u_int8_t data[32]; 1292 const struct ieee80211_channel *c; 1293 --- 493 unchanged lines hidden (view full) --- 1787 DEF_CMD_ARG("mac:del", set80211delmac), 1788#if 0 1789 DEF_CMD_ARG("mac:kick", set80211kickmac), 1790#endif 1791}; 1792static struct afswtch af_ieee80211 = { 1793 .af_name = "af_ieee80211", 1794 .af_af = AF_UNSPEC, | 1286{ 1287 static const uint8_t zerobssid[IEEE80211_ADDR_LEN]; 1288 enum ieee80211_opmode opmode = get80211opmode(s); 1289 int i, num, wpa, wme; 1290 struct ieee80211req ireq; 1291 u_int8_t data[32]; 1292 const struct ieee80211_channel *c; 1293 --- 493 unchanged lines hidden (view full) --- 1787 DEF_CMD_ARG("mac:del", set80211delmac), 1788#if 0 1789 DEF_CMD_ARG("mac:kick", set80211kickmac), 1790#endif 1791}; 1792static struct afswtch af_ieee80211 = { 1793 .af_name = "af_ieee80211", 1794 .af_af = AF_UNSPEC, |
1795 .af_status = ieee80211_status, | 1795 .af_other_status = ieee80211_status, |
1796}; 1797 1798static __constructor void 1799ieee80211_ctor(void) 1800{ 1801#define N(a) (sizeof(a) / sizeof(a[0])) 1802 int i; 1803 1804 for (i = 0; i < N(ieee80211_cmds); i++) 1805 cmd_register(&ieee80211_cmds[i]); 1806 af_register(&af_ieee80211); 1807#undef N 1808} | 1796}; 1797 1798static __constructor void 1799ieee80211_ctor(void) 1800{ 1801#define N(a) (sizeof(a) / sizeof(a[0])) 1802 int i; 1803 1804 for (i = 0; i < N(ieee80211_cmds); i++) 1805 cmd_register(&ieee80211_cmds[i]); 1806 af_register(&af_ieee80211); 1807#undef N 1808} |