1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. The name of the author may not be used to endorse or promote products 15 * derived from this software without specific prior written permission. 16 * 17 * Alternatively, this software may be distributed under the terms of the 18 * GNU General Public License ("GPL") version 2 as published by the Free 19 * Software Foundation. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 *
| 1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. The name of the author may not be used to endorse or promote products 15 * derived from this software without specific prior written permission. 16 * 17 * Alternatively, this software may be distributed under the terms of the 18 * GNU General Public License ("GPL") version 2 as published by the Free 19 * Software Foundation. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 *
|
41#ifdef __FreeBSD__ 42/* 43 * FreeBSD-style ioctls. 44 */ 45/* the first member must be matched with struct ifreq */ 46struct ieee80211req { 47 char i_name[IFNAMSIZ]; /* if_name, e.g. "wi0" */ 48 u_int16_t i_type; /* req type */ 49 int16_t i_val; /* Index or simple value */ 50 int16_t i_len; /* Index or simple value */ 51 void *i_data; /* Extra data */ 52}; 53#define SIOCS80211 _IOW('i', 234, struct ieee80211req) 54#define SIOCG80211 _IOWR('i', 235, struct ieee80211req) 55 56#define IEEE80211_IOC_SSID 1 57#define IEEE80211_IOC_NUMSSIDS 2 58#define IEEE80211_IOC_WEP 3 59#define IEEE80211_WEP_NOSUP -1 60#define IEEE80211_WEP_OFF 0 61#define IEEE80211_WEP_ON 1 62#define IEEE80211_WEP_MIXED 2 63#define IEEE80211_IOC_WEPKEY 4 64#define IEEE80211_IOC_NUMWEPKEYS 5 65#define IEEE80211_IOC_WEPTXKEY 6 66#define IEEE80211_IOC_AUTHMODE 7 67#define IEEE80211_IOC_STATIONNAME 8 68#define IEEE80211_IOC_CHANNEL 9 69#define IEEE80211_IOC_POWERSAVE 10 70#define IEEE80211_POWERSAVE_NOSUP -1 71#define IEEE80211_POWERSAVE_OFF 0 72#define IEEE80211_POWERSAVE_CAM 1 73#define IEEE80211_POWERSAVE_PSP 2 74#define IEEE80211_POWERSAVE_PSP_CAM 3 75#define IEEE80211_POWERSAVE_ON IEEE80211_POWERSAVE_CAM 76#define IEEE80211_IOC_POWERSAVESLEEP 11 77#define IEEE80211_IOC_RTSTHRESHOLD 12 78 79#ifndef IEEE80211_CHAN_ANY 80#define IEEE80211_CHAN_ANY 0xffff /* token for ``any channel'' */ 81#endif
| 85#ifdef __FreeBSD__ 86/* 87 * FreeBSD-style ioctls. 88 */ 89/* the first member must be matched with struct ifreq */ 90struct ieee80211req { 91 char i_name[IFNAMSIZ]; /* if_name, e.g. "wi0" */ 92 u_int16_t i_type; /* req type */ 93 int16_t i_val; /* Index or simple value */ 94 int16_t i_len; /* Index or simple value */ 95 void *i_data; /* Extra data */ 96}; 97#define SIOCS80211 _IOW('i', 234, struct ieee80211req) 98#define SIOCG80211 _IOWR('i', 235, struct ieee80211req) 99 100#define IEEE80211_IOC_SSID 1 101#define IEEE80211_IOC_NUMSSIDS 2 102#define IEEE80211_IOC_WEP 3 103#define IEEE80211_WEP_NOSUP -1 104#define IEEE80211_WEP_OFF 0 105#define IEEE80211_WEP_ON 1 106#define IEEE80211_WEP_MIXED 2 107#define IEEE80211_IOC_WEPKEY 4 108#define IEEE80211_IOC_NUMWEPKEYS 5 109#define IEEE80211_IOC_WEPTXKEY 6 110#define IEEE80211_IOC_AUTHMODE 7 111#define IEEE80211_IOC_STATIONNAME 8 112#define IEEE80211_IOC_CHANNEL 9 113#define IEEE80211_IOC_POWERSAVE 10 114#define IEEE80211_POWERSAVE_NOSUP -1 115#define IEEE80211_POWERSAVE_OFF 0 116#define IEEE80211_POWERSAVE_CAM 1 117#define IEEE80211_POWERSAVE_PSP 2 118#define IEEE80211_POWERSAVE_PSP_CAM 3 119#define IEEE80211_POWERSAVE_ON IEEE80211_POWERSAVE_CAM 120#define IEEE80211_IOC_POWERSAVESLEEP 11 121#define IEEE80211_IOC_RTSTHRESHOLD 12 122 123#ifndef IEEE80211_CHAN_ANY 124#define IEEE80211_CHAN_ANY 0xffff /* token for ``any channel'' */ 125#endif
|