if_wavelan_ieee.h (50477) | if_wavelan_ieee.h (53702) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/wi/if_wavelan_ieee.h 50477 1999-08-28 01:08:13Z peter $ | 32 * $FreeBSD: head/sys/dev/wi/if_wavelan_ieee.h 53702 1999-11-25 20:45:49Z wpaul $ |
33 */ 34 35#ifndef _IF_WAVELAN_IEEE_H 36#define _IF_WAVELAN_IEEE_H 37 38/* 39 * This header defines a simple command interface to the FreeBSD 40 * WaveLAN/IEEE driver (wi) driver, which is used to set certain --- 26 unchanged lines hidden (view full) --- 67 68/* 69 * Private LTV records (interpreted only by the driver). This is 70 * a minor kludge to allow reading the interface statistics from 71 * the driver. 72 */ 73#define WI_RID_IFACE_STATS 0x0100 74#define WI_RID_MGMT_XMIT 0x0200 | 33 */ 34 35#ifndef _IF_WAVELAN_IEEE_H 36#define _IF_WAVELAN_IEEE_H 37 38/* 39 * This header defines a simple command interface to the FreeBSD 40 * WaveLAN/IEEE driver (wi) driver, which is used to set certain --- 26 unchanged lines hidden (view full) --- 67 68/* 69 * Private LTV records (interpreted only by the driver). This is 70 * a minor kludge to allow reading the interface statistics from 71 * the driver. 72 */ 73#define WI_RID_IFACE_STATS 0x0100 74#define WI_RID_MGMT_XMIT 0x0200 |
75#ifdef WICACHE 76#define WI_RID_ZERO_CACHE 0x0300 77#define WI_RID_READ_CACHE 0x0400 78#endif |
|
75 76struct wi_80211_hdr { 77 u_int16_t frame_ctl; 78 u_int16_t dur_id; 79 u_int8_t addr1[6]; 80 u_int8_t addr2[6]; 81 u_int8_t addr3[6]; 82 u_int16_t seq_ctl; --- 32 unchanged lines hidden (view full) --- 115 u_int16_t frame_ctl; 116 u_int16_t duration; 117 u_int8_t dst_addr[6]; 118 u_int8_t src_addr[6]; 119 u_int8_t bssid[6]; 120 u_int16_t seq_ctl; 121}; 122 | 79 80struct wi_80211_hdr { 81 u_int16_t frame_ctl; 82 u_int16_t dur_id; 83 u_int8_t addr1[6]; 84 u_int8_t addr2[6]; 85 u_int8_t addr3[6]; 86 u_int16_t seq_ctl; --- 32 unchanged lines hidden (view full) --- 119 u_int16_t frame_ctl; 120 u_int16_t duration; 121 u_int8_t dst_addr[6]; 122 u_int8_t src_addr[6]; 123 u_int8_t bssid[6]; 124 u_int16_t seq_ctl; 125}; 126 |
127/* 128 * Lucent/wavelan IEEE signal strength cache 129 * 130 * driver keeps cache of last 131 * MAXWICACHE packets to arrive including signal strength info. 132 * daemons may read this via ioctl 133 * 134 * Each entry in the wi_sigcache has a unique macsrc. 135 */ 136#ifdef WICACHE 137#define MAXWICACHE 10 138 139struct wi_sigcache { 140 char macsrc[6]; /* unique MAC address for entry */ 141 int ipsrc; /* ip address associated with packet */ 142 int signal; /* signal strength of the packet */ 143 int noise; /* noise value */ 144 int quality; /* quality of the packet */ 145}; 146#endif 147 |
|
123#ifndef KERNEL 124struct wi_counters { 125 u_int32_t wi_tx_unicast_frames; 126 u_int32_t wi_tx_multicast_frames; 127 u_int32_t wi_tx_fragments; 128 u_int32_t wi_tx_unicast_octets; 129 u_int32_t wi_tx_multicast_octets; 130 u_int32_t wi_tx_deferred_xmits; --- 151 unchanged lines hidden --- | 148#ifndef KERNEL 149struct wi_counters { 150 u_int32_t wi_tx_unicast_frames; 151 u_int32_t wi_tx_multicast_frames; 152 u_int32_t wi_tx_fragments; 153 u_int32_t wi_tx_unicast_octets; 154 u_int32_t wi_tx_multicast_octets; 155 u_int32_t wi_tx_deferred_xmits; --- 151 unchanged lines hidden --- |