ieee80211_ioctl.h (161145) | ieee80211_ioctl.h (161146) |
---|---|
1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 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: --- 15 unchanged lines hidden (view full) --- 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-2005 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: --- 15 unchanged lines hidden (view full) --- 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 * |
32 * $FreeBSD: head/sys/net80211/ieee80211_ioctl.h 161145 2006-08-10 05:54:36Z sam $ | 32 * $FreeBSD: head/sys/net80211/ieee80211_ioctl.h 161146 2006-08-10 06:04:00Z sam $ |
33 */ 34#ifndef _NET80211_IEEE80211_IOCTL_H_ 35#define _NET80211_IEEE80211_IOCTL_H_ 36 37/* 38 * IEEE 802.11 ioctls. 39 */ 40#include <net80211/_ieee80211.h> 41#include <net80211/ieee80211.h> 42#include <net80211/ieee80211_crypto.h> 43 44/* | 33 */ 34#ifndef _NET80211_IEEE80211_IOCTL_H_ 35#define _NET80211_IEEE80211_IOCTL_H_ 36 37/* 38 * IEEE 802.11 ioctls. 39 */ 40#include <net80211/_ieee80211.h> 41#include <net80211/ieee80211.h> 42#include <net80211/ieee80211_crypto.h> 43 44/* |
45 * Per/node (station) statistics available when operating as an AP. | 45 * Per/node (station) statistics. |
46 */ 47struct ieee80211_nodestats { 48 u_int32_t ns_rx_data; /* rx data frames */ 49 u_int32_t ns_rx_mgmt; /* rx management frames */ 50 u_int32_t ns_rx_ctrl; /* rx control frames */ 51 u_int32_t ns_rx_ucast; /* rx unicast frames */ 52 u_int32_t ns_rx_mcast; /* rx multi/broadcast frames */ 53 u_int64_t ns_rx_bytes; /* rx data count (bytes) */ --- 252 unchanged lines hidden (view full) --- 306 * to retrieve other data like stats, unicast key, etc. 307 */ 308struct ieee80211req_sta_info { 309 u_int16_t isi_len; /* length (mult of 4) */ 310 u_int16_t isi_freq; /* MHz */ 311 u_int16_t isi_flags; /* channel flags */ 312 u_int16_t isi_state; /* state flags */ 313 u_int8_t isi_authmode; /* authentication algorithm */ | 46 */ 47struct ieee80211_nodestats { 48 u_int32_t ns_rx_data; /* rx data frames */ 49 u_int32_t ns_rx_mgmt; /* rx management frames */ 50 u_int32_t ns_rx_ctrl; /* rx control frames */ 51 u_int32_t ns_rx_ucast; /* rx unicast frames */ 52 u_int32_t ns_rx_mcast; /* rx multi/broadcast frames */ 53 u_int64_t ns_rx_bytes; /* rx data count (bytes) */ --- 252 unchanged lines hidden (view full) --- 306 * to retrieve other data like stats, unicast key, etc. 307 */ 308struct ieee80211req_sta_info { 309 u_int16_t isi_len; /* length (mult of 4) */ 310 u_int16_t isi_freq; /* MHz */ 311 u_int16_t isi_flags; /* channel flags */ 312 u_int16_t isi_state; /* state flags */ 313 u_int8_t isi_authmode; /* authentication algorithm */ |
314 u_int8_t isi_rssi; | 314 int8_t isi_rssi; /* receive signal strength */ |
315 u_int8_t isi_capinfo; /* capabilities */ 316 u_int8_t isi_erp; /* ERP element */ 317 u_int8_t isi_macaddr[IEEE80211_ADDR_LEN]; 318 u_int8_t isi_nrates; 319 /* negotiated rates */ 320 u_int8_t isi_rates[IEEE80211_RATE_MAXSIZE]; 321 u_int8_t isi_txrate; /* index to isi_rates[] */ | 315 u_int8_t isi_capinfo; /* capabilities */ 316 u_int8_t isi_erp; /* ERP element */ 317 u_int8_t isi_macaddr[IEEE80211_ADDR_LEN]; 318 u_int8_t isi_nrates; 319 /* negotiated rates */ 320 u_int8_t isi_rates[IEEE80211_RATE_MAXSIZE]; 321 u_int8_t isi_txrate; /* index to isi_rates[] */ |
322 int8_t isi_noise; /* noise floor */ |
|
322 u_int16_t isi_ie_len; /* IE length */ 323 u_int16_t isi_associd; /* assoc response */ 324 u_int16_t isi_txpower; /* current tx power */ 325 u_int16_t isi_vlan; /* vlan tag */ 326 u_int16_t isi_txseqs[17]; /* seq to be transmitted */ 327 u_int16_t isi_rxseqs[17]; /* seq previous for qos frames*/ 328 u_int16_t isi_inact; /* inactivity timer */ 329 /* XXX frag state? */ --- 98 unchanged lines hidden (view full) --- 428#define IEEE80211_IOC_KEYMGTALGS 37 /* key management algorithms */ 429#define IEEE80211_IOC_RSNCAPS 38 /* RSN capabilities */ 430#define IEEE80211_IOC_WPAIE 39 /* WPA information element */ 431#define IEEE80211_IOC_STA_STATS 40 /* per-station statistics */ 432#define IEEE80211_IOC_MACCMD 41 /* MAC ACL operation */ 433#define IEEE80211_IOC_CHANINFO 42 /* channel info list */ 434#define IEEE80211_IOC_TXPOWMAX 43 /* max tx power for channel */ 435#define IEEE80211_IOC_STA_TXPOW 44 /* per-station tx power limit */ | 323 u_int16_t isi_ie_len; /* IE length */ 324 u_int16_t isi_associd; /* assoc response */ 325 u_int16_t isi_txpower; /* current tx power */ 326 u_int16_t isi_vlan; /* vlan tag */ 327 u_int16_t isi_txseqs[17]; /* seq to be transmitted */ 328 u_int16_t isi_rxseqs[17]; /* seq previous for qos frames*/ 329 u_int16_t isi_inact; /* inactivity timer */ 330 /* XXX frag state? */ --- 98 unchanged lines hidden (view full) --- 429#define IEEE80211_IOC_KEYMGTALGS 37 /* key management algorithms */ 430#define IEEE80211_IOC_RSNCAPS 38 /* RSN capabilities */ 431#define IEEE80211_IOC_WPAIE 39 /* WPA information element */ 432#define IEEE80211_IOC_STA_STATS 40 /* per-station statistics */ 433#define IEEE80211_IOC_MACCMD 41 /* MAC ACL operation */ 434#define IEEE80211_IOC_CHANINFO 42 /* channel info list */ 435#define IEEE80211_IOC_TXPOWMAX 43 /* max tx power for channel */ 436#define IEEE80211_IOC_STA_TXPOW 44 /* per-station tx power limit */ |
436#define IEEE80211_IOC_STA_INFO 45 /* station/neighbor info */ | 437/* 45 was IEEE80211_IOC_STA_INFO */ |
437#define IEEE80211_IOC_WME_CWMIN 46 /* WME: ECWmin */ 438#define IEEE80211_IOC_WME_CWMAX 47 /* WME: ECWmax */ 439#define IEEE80211_IOC_WME_AIFS 48 /* WME: AIFSN */ 440#define IEEE80211_IOC_WME_TXOPLIMIT 49 /* WME: txops limit */ 441#define IEEE80211_IOC_WME_ACM 50 /* WME: ACM (bss only) */ 442#define IEEE80211_IOC_WME_ACKPOLICY 51 /* WME: ACK policy (!bss only)*/ 443#define IEEE80211_IOC_DTIM_PERIOD 52 /* DTIM period (beacons) */ 444#define IEEE80211_IOC_BEACON_INTERVAL 53 /* beacon interval (ms) */ 445#define IEEE80211_IOC_ADDMAC 54 /* add sta to MAC ACL table */ 446#define IEEE80211_IOC_DELMAC 55 /* del sta from MAC ACL table */ 447#define IEEE80211_IOC_PUREG 56 /* pure 11g (no 11b stations) */ 448#define IEEE80211_IOC_MCAST_RATE 72 /* tx rate for mcast frames */ 449#define IEEE80211_IOC_FRAGTHRESHOLD 73 /* tx fragmentation threshold */ 450#define IEEE80211_IOC_BURST 75 /* packet bursting */ 451#define IEEE80211_IOC_SCAN_RESULTS 76 /* get scan results */ 452#define IEEE80211_IOC_BMISSTHRESHOLD 77 /* beacon miss threshold */ | 438#define IEEE80211_IOC_WME_CWMIN 46 /* WME: ECWmin */ 439#define IEEE80211_IOC_WME_CWMAX 47 /* WME: ECWmax */ 440#define IEEE80211_IOC_WME_AIFS 48 /* WME: AIFSN */ 441#define IEEE80211_IOC_WME_TXOPLIMIT 49 /* WME: txops limit */ 442#define IEEE80211_IOC_WME_ACM 50 /* WME: ACM (bss only) */ 443#define IEEE80211_IOC_WME_ACKPOLICY 51 /* WME: ACK policy (!bss only)*/ 444#define IEEE80211_IOC_DTIM_PERIOD 52 /* DTIM period (beacons) */ 445#define IEEE80211_IOC_BEACON_INTERVAL 53 /* beacon interval (ms) */ 446#define IEEE80211_IOC_ADDMAC 54 /* add sta to MAC ACL table */ 447#define IEEE80211_IOC_DELMAC 55 /* del sta from MAC ACL table */ 448#define IEEE80211_IOC_PUREG 56 /* pure 11g (no 11b stations) */ 449#define IEEE80211_IOC_MCAST_RATE 72 /* tx rate for mcast frames */ 450#define IEEE80211_IOC_FRAGTHRESHOLD 73 /* tx fragmentation threshold */ 451#define IEEE80211_IOC_BURST 75 /* packet bursting */ 452#define IEEE80211_IOC_SCAN_RESULTS 76 /* get scan results */ 453#define IEEE80211_IOC_BMISSTHRESHOLD 77 /* beacon miss threshold */ |
454#define IEEE80211_IOC_STA_INFO 78 /* station/neighbor info */ |
|
453 454/* 455 * Scan result data returned for IEEE80211_IOC_SCAN_RESULTS. 456 * Each result is a fixed size structure followed by a variable 457 * length SSID and one or more variable length information elements. 458 * The size of each variable length item is found in the fixed 459 * size structure and the entire length of the record is specified 460 * in isr_len. Result records are rounded to a multiple of 4 bytes. --- 23 unchanged lines hidden --- | 455 456/* 457 * Scan result data returned for IEEE80211_IOC_SCAN_RESULTS. 458 * Each result is a fixed size structure followed by a variable 459 * length SSID and one or more variable length information elements. 460 * The size of each variable length item is found in the fixed 461 * size structure and the entire length of the record is specified 462 * in isr_len. Result records are rounded to a multiple of 4 bytes. --- 23 unchanged lines hidden --- |