Home | History | Annotate | Line # | Download | only in ic
wi_ieee.h revision 1.15.2.1
      1  1.15.2.1   gehenna /*	$NetBSD: wi_ieee.h,v 1.15.2.1 2002/08/29 05:22:34 gehenna Exp $	*/
      2       1.1    ichiro 
      3       1.1    ichiro /*
      4       1.1    ichiro  * Copyright (c) 1997, 1998, 1999
      5       1.1    ichiro  *	Bill Paul <wpaul (at) ctr.columbia.edu>.  All rights reserved.
      6       1.1    ichiro  *
      7       1.1    ichiro  * Redistribution and use in source and binary forms, with or without
      8       1.1    ichiro  * modification, are permitted provided that the following conditions
      9       1.1    ichiro  * are met:
     10       1.1    ichiro  * 1. Redistributions of source code must retain the above copyright
     11       1.1    ichiro  *    notice, this list of conditions and the following disclaimer.
     12       1.1    ichiro  * 2. Redistributions in binary form must reproduce the above copyright
     13       1.1    ichiro  *    notice, this list of conditions and the following disclaimer in the
     14       1.1    ichiro  *    documentation and/or other materials provided with the distribution.
     15       1.1    ichiro  * 3. All advertising materials mentioning features or use of this software
     16       1.1    ichiro  *    must display the following acknowledgement:
     17       1.1    ichiro  *	This product includes software developed by Bill Paul.
     18       1.1    ichiro  * 4. Neither the name of the author nor the names of any co-contributors
     19       1.1    ichiro  *    may be used to endorse or promote products derived from this software
     20       1.1    ichiro  *    without specific prior written permission.
     21       1.1    ichiro  *
     22       1.1    ichiro  * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
     23       1.1    ichiro  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     24       1.1    ichiro  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     25       1.1    ichiro  * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
     26       1.1    ichiro  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     27       1.1    ichiro  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     28       1.1    ichiro  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     29       1.1    ichiro  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     30       1.1    ichiro  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     31       1.1    ichiro  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     32       1.1    ichiro  * THE POSSIBILITY OF SUCH DAMAGE.
     33       1.1    ichiro  *
     34       1.1    ichiro  * $FreeBSD: src/sys/i386/include/if_wavelan_ieee.h,v 1.4 1999/12/29 04:33:01 peter Exp $
     35       1.1    ichiro  */
     36       1.1    ichiro 
     37       1.1    ichiro #ifndef _IF_WAVELAN_IEEE_H
     38       1.1    ichiro #define _IF_WAVELAN_IEEE_H
     39       1.1    ichiro 
     40       1.1    ichiro /*
     41       1.1    ichiro  * FreeBSD driver ported to NetBSD by Bill Sommerfeld in the back of the
     42       1.1    ichiro  * Oslo IETF plenary meeting.
     43       1.1    ichiro  * The stuff in here should probably go into a generic extension to the
     44       1.1    ichiro  * ifmedia goop.
     45       1.1    ichiro  *
     46       1.1    ichiro  * Michael Graff brought over the encryption bits.
     47       1.1    ichiro  */
     48       1.1    ichiro 
     49       1.1    ichiro /*
     50       1.1    ichiro  * This header defines a simple command interface to the FreeBSD
     51       1.1    ichiro  * WaveLAN/IEEE driver (wi) driver, which is used to set certain
     52       1.1    ichiro  * device-specific parameters which can't be easily managed through
     53       1.1    ichiro  * ifconfig(8). No, sysctl(2) is not the answer. I said a _simple_
     54       1.1    ichiro  * interface, didn't I.
     55       1.1    ichiro  */
     56       1.1    ichiro 
     57       1.1    ichiro #ifndef SIOCSWAVELAN
     58       1.1    ichiro #define SIOCSWAVELAN	SIOCSIFGENERIC
     59       1.1    ichiro #endif
     60       1.1    ichiro 
     61       1.1    ichiro #ifndef SIOCGWAVELAN
     62       1.1    ichiro #define SIOCGWAVELAN	SIOCGIFGENERIC
     63       1.1    ichiro #endif
     64       1.1    ichiro 
     65       1.1    ichiro /*
     66       1.1    ichiro  * Technically I don't think there's a limit to a record
     67       1.1    ichiro  * length. The largest record is the one that contains the CIS
     68       1.1    ichiro  * data, which is 240 words long, so 256 should be a safe
     69       1.7  explorer  * value.
     70       1.1    ichiro  */
     71       1.1    ichiro #define WI_MAX_DATALEN	512
     72       1.1    ichiro 
     73       1.1    ichiro struct wi_req {
     74       1.1    ichiro 	u_int16_t	wi_len;
     75       1.1    ichiro 	u_int16_t	wi_type;
     76       1.1    ichiro 	u_int16_t	wi_val[WI_MAX_DATALEN];
     77       1.1    ichiro };
     78       1.1    ichiro 
     79       1.1    ichiro /*
     80       1.1    ichiro  * Private LTV records (interpreted only by the driver). This is
     81       1.1    ichiro  * a minor kludge to allow reading the interface statistics from
     82       1.1    ichiro  * the driver.
     83       1.1    ichiro  */
     84       1.1    ichiro #define WI_RID_IFACE_STATS	0x0100
     85       1.1    ichiro #define WI_RID_MGMT_XMIT	0x0200
     86       1.1    ichiro #ifdef WICACHE
     87       1.1    ichiro #define WI_RID_ZERO_CACHE	0x0300
     88       1.1    ichiro #define WI_RID_READ_CACHE	0x0400
     89       1.1    ichiro #endif
     90       1.9    ichiro #define	WI_RID_MONITOR_MODE	0x0500
     91       1.9    ichiro #define	WI_RID_SCAN_APS		0x0600
     92       1.9    ichiro #define	WI_RID_READ_APS		0x0700
     93       1.1    ichiro 
     94       1.1    ichiro struct wi_80211_hdr {
     95       1.1    ichiro 	u_int16_t		frame_ctl;
     96       1.1    ichiro 	u_int16_t		dur_id;
     97       1.1    ichiro 	u_int8_t		addr1[6];
     98       1.1    ichiro 	u_int8_t		addr2[6];
     99       1.1    ichiro 	u_int8_t		addr3[6];
    100       1.1    ichiro 	u_int16_t		seq_ctl;
    101       1.1    ichiro 	u_int8_t		addr4[6];
    102       1.1    ichiro };
    103       1.1    ichiro 
    104       1.1    ichiro #define WI_FCTL_VERS		0x0002
    105       1.1    ichiro #define WI_FCTL_FTYPE		0x000C
    106       1.1    ichiro #define WI_FCTL_STYPE		0x00F0
    107       1.1    ichiro #define WI_FCTL_TODS		0x0100
    108       1.1    ichiro #define WI_FCTL_FROMDS		0x0200
    109       1.1    ichiro #define WI_FCTL_MOREFRAGS	0x0400
    110       1.1    ichiro #define WI_FCTL_RETRY		0x0800
    111       1.1    ichiro #define WI_FCTL_PM		0x1000
    112       1.1    ichiro #define WI_FCTL_MOREDATA	0x2000
    113       1.1    ichiro #define WI_FCTL_WEP		0x4000
    114       1.1    ichiro #define WI_FCTL_ORDER		0x8000
    115       1.1    ichiro 
    116       1.1    ichiro #define WI_FTYPE_MGMT		0x0000
    117       1.1    ichiro #define WI_FTYPE_CTL		0x0004
    118       1.1    ichiro #define WI_FTYPE_DATA		0x0008
    119       1.1    ichiro 
    120       1.1    ichiro #define WI_STYPE_MGMT_ASREQ	0x0000	/* association request */
    121       1.1    ichiro #define WI_STYPE_MGMT_ASRESP	0x0010	/* association response */
    122       1.1    ichiro #define WI_STYPE_MGMT_REASREQ	0x0020	/* reassociation request */
    123       1.1    ichiro #define WI_STYPE_MGMT_REASRESP	0x0030	/* reassociation response */
    124       1.1    ichiro #define WI_STYPE_MGMT_PROBEREQ	0x0040	/* probe request */
    125       1.1    ichiro #define WI_STYPE_MGMT_PROBERESP	0x0050	/* probe response */
    126       1.1    ichiro #define WI_STYPE_MGMT_BEACON	0x0080	/* beacon */
    127       1.1    ichiro #define WI_STYPE_MGMT_ATIM	0x0090	/* announcement traffic ind msg */
    128       1.1    ichiro #define WI_STYPE_MGMT_DISAS	0x00A0	/* disassociation */
    129       1.1    ichiro #define WI_STYPE_MGMT_AUTH	0x00B0	/* authentication */
    130       1.1    ichiro #define WI_STYPE_MGMT_DEAUTH	0x00C0	/* deauthentication */
    131       1.1    ichiro 
    132  1.15.2.1   gehenna #define	WI_STYPE_CTL_PSPOLL	0x00A0
    133  1.15.2.1   gehenna #define	WI_STYPE_CTL_RTS	0x00B0
    134  1.15.2.1   gehenna #define	WI_STYPE_CTL_CTS	0x00C0
    135  1.15.2.1   gehenna #define	WI_STYPE_CTL_ACK	0x00D0
    136  1.15.2.1   gehenna #define	WI_STYPE_CTL_CFEND	0x00E0
    137  1.15.2.1   gehenna #define	WI_STYPE_CTL_CFENDACK	0x00F0
    138  1.15.2.1   gehenna 
    139       1.1    ichiro struct wi_mgmt_hdr {
    140       1.1    ichiro 	u_int16_t		frame_ctl;
    141       1.1    ichiro 	u_int16_t		duration;
    142       1.1    ichiro 	u_int8_t		dst_addr[6];
    143       1.1    ichiro 	u_int8_t		src_addr[6];
    144       1.1    ichiro 	u_int8_t		bssid[6];
    145       1.1    ichiro 	u_int16_t		seq_ctl;
    146       1.1    ichiro };
    147       1.1    ichiro 
    148       1.1    ichiro /*
    149       1.1    ichiro  * Lucent/wavelan IEEE signal strength cache
    150       1.1    ichiro  *
    151       1.1    ichiro  * driver keeps cache of last
    152       1.1    ichiro  * MAXWICACHE packets to arrive including signal strength info.
    153       1.1    ichiro  * daemons may read this via ioctl
    154       1.1    ichiro  *
    155       1.1    ichiro  * Each entry in the wi_sigcache has a unique macsrc.
    156       1.1    ichiro  */
    157       1.1    ichiro #ifdef WICACHE
    158       1.1    ichiro #define	MAXWICACHE	10
    159       1.1    ichiro 
    160       1.1    ichiro struct wi_sigcache {
    161       1.1    ichiro 	char	macsrc[6];	/* unique MAC address for entry */
    162       1.1    ichiro 	int	ipsrc;		/* ip address associated with packet */
    163       1.1    ichiro 	int	signal;		/* signal strength of the packet */
    164       1.1    ichiro 	int	noise;		/* noise value */
    165       1.1    ichiro 	int	quality;	/* quality of the packet */
    166       1.1    ichiro };
    167       1.1    ichiro #endif
    168       1.1    ichiro 
    169       1.1    ichiro struct wi_counters {
    170       1.1    ichiro 	u_int32_t		wi_tx_unicast_frames;
    171       1.1    ichiro 	u_int32_t		wi_tx_multicast_frames;
    172       1.1    ichiro 	u_int32_t		wi_tx_fragments;
    173       1.1    ichiro 	u_int32_t		wi_tx_unicast_octets;
    174       1.1    ichiro 	u_int32_t		wi_tx_multicast_octets;
    175       1.1    ichiro 	u_int32_t		wi_tx_deferred_xmits;
    176       1.1    ichiro 	u_int32_t		wi_tx_single_retries;
    177       1.1    ichiro 	u_int32_t		wi_tx_multi_retries;
    178       1.1    ichiro 	u_int32_t		wi_tx_retry_limit;
    179       1.1    ichiro 	u_int32_t		wi_tx_discards;
    180       1.1    ichiro 	u_int32_t		wi_rx_unicast_frames;
    181       1.1    ichiro 	u_int32_t		wi_rx_multicast_frames;
    182       1.1    ichiro 	u_int32_t		wi_rx_fragments;
    183       1.1    ichiro 	u_int32_t		wi_rx_unicast_octets;
    184       1.1    ichiro 	u_int32_t		wi_rx_multicast_octets;
    185       1.1    ichiro 	u_int32_t		wi_rx_fcs_errors;
    186       1.1    ichiro 	u_int32_t		wi_rx_discards_nobuf;
    187       1.1    ichiro 	u_int32_t		wi_tx_discards_wrong_sa;
    188       1.1    ichiro 	u_int32_t		wi_rx_WEP_cant_decrypt;
    189       1.1    ichiro 	u_int32_t		wi_rx_msg_in_msg_frags;
    190       1.1    ichiro 	u_int32_t		wi_rx_msg_in_bad_msg_frags;
    191       1.4  explorer };
    192       1.4  explorer 
    193       1.4  explorer /*
    194       1.1    ichiro  * Network parameters, static configuration entities.
    195       1.1    ichiro  */
    196       1.1    ichiro #define WI_RID_PORTTYPE		0xFC00 /* Connection control characteristics */
    197       1.1    ichiro #define WI_RID_MAC_NODE		0xFC01 /* MAC address of this station */
    198       1.1    ichiro #define WI_RID_DESIRED_SSID	0xFC02 /* Service Set ID for connection */
    199       1.1    ichiro #define WI_RID_OWN_CHNL		0xFC03 /* Comm channel for BSS creation */
    200       1.1    ichiro #define WI_RID_OWN_SSID		0xFC04 /* IBSS creation ID */
    201       1.1    ichiro #define WI_RID_OWN_ATIM_WIN	0xFC05 /* ATIM window time for IBSS creation */
    202       1.1    ichiro #define WI_RID_SYSTEM_SCALE	0xFC06 /* scale that specifies AP density */
    203       1.1    ichiro #define WI_RID_MAX_DATALEN	0xFC07 /* Max len of MAC frame body data */
    204       1.1    ichiro #define WI_RID_MAC_WDS		0xFC08 /* MAC addr of corresponding WDS node */
    205       1.1    ichiro #define WI_RID_PM_ENABLED	0xFC09 /* ESS power management enable */
    206       1.1    ichiro #define WI_RID_PM_EPS		0xFC0A /* PM EPS/PS mode */
    207       1.1    ichiro #define WI_RID_MCAST_RX		0xFC0B /* ESS PM mcast reception */
    208       1.1    ichiro #define WI_RID_MAX_SLEEP	0xFC0C /* max sleep time for ESS PM */
    209       1.1    ichiro #define WI_RID_HOLDOVER		0xFC0D /* holdover time for ESS PM */
    210       1.1    ichiro #define WI_RID_NODENAME		0xFC0E /* ID name of this node for diag */
    211       1.1    ichiro #define WI_RID_DTIM_PERIOD	0xFC10 /* beacon interval between DTIMs */
    212       1.1    ichiro #define WI_RID_WDS_ADDR1	0xFC11 /* port 1 MAC of WDS link node */
    213       1.1    ichiro #define WI_RID_WDS_ADDR2	0xFC12 /* port 1 MAC of WDS link node */
    214       1.1    ichiro #define WI_RID_WDS_ADDR3	0xFC13 /* port 1 MAC of WDS link node */
    215       1.1    ichiro #define WI_RID_WDS_ADDR4	0xFC14 /* port 1 MAC of WDS link node */
    216       1.1    ichiro #define WI_RID_WDS_ADDR5	0xFC15 /* port 1 MAC of WDS link node */
    217       1.1    ichiro #define WI_RID_WDS_ADDR6	0xFC16 /* port 1 MAC of WDS link node */
    218       1.1    ichiro #define WI_RID_MCAST_PM_BUF	0xFC17 /* PM buffering of mcast */
    219       1.1    ichiro #define WI_RID_ENCRYPTION	0xFC20 /* enable/disable WEP */
    220       1.1    ichiro #define WI_RID_AUTHTYPE		0xFC21 /* specify authentication type */
    221       1.1    ichiro #define WI_RID_P2_TX_CRYPT_KEY	0xFC23
    222       1.1    ichiro #define WI_RID_P2_CRYPT_KEY0	0xFC24
    223       1.1    ichiro #define WI_RID_P2_CRYPT_KEY1	0xFC25
    224       1.1    ichiro #define WI_RID_MICROWAVE_OVEN	0xFC25
    225       1.1    ichiro #define WI_RID_P2_CRYPT_KEY2	0xFC26
    226       1.1    ichiro #define WI_RID_P2_CRYPT_KEY3	0xFC27
    227       1.1    ichiro #define WI_RID_P2_ENCRYPTION	0xFC28
    228      1.12    ichiro #define	 PRIVACY_INVOKED	0x01
    229      1.12    ichiro #define	 EXCLUDE_UNENCRYPTED	0x02
    230      1.12    ichiro #define	 HOST_ENCRYPT		0x10
    231      1.12    ichiro #define	 IV_EVERY_FRAME		0x00	/* IV = Initialization Vector */
    232      1.13    ichiro #define	 IV_EVERY10_FRAME	0x20	/* every 10 frame IV reuse */
    233      1.13    ichiro #define	 IV_EVERY50_FRAME	0x40	/* every 50 frame IV reuse */
    234      1.13    ichiro #define	 IV_EVERY100_FRAME	0x60	/* every 100 frame IV reuse */
    235      1.12    ichiro #define	 HOST_DECRYPT		0x80
    236       1.2    ichiro #define WI_RID_WEP_MAPTABLE	0xFC29
    237  1.15.2.1   gehenna #define WI_RID_CNFAUTHMODE	0xFC2A
    238       1.2    ichiro #define WI_RID_ROAMING_MODE	0xFC2D
    239       1.2    ichiro #define WI_RID_BASIC_RATE	0xFCB3
    240       1.2    ichiro #define WI_RID_SUPPORT_RATE	0xFCB4
    241       1.1    ichiro 
    242       1.1    ichiro /*
    243       1.1    ichiro  * Network parameters, dynamic configuration entities
    244       1.1    ichiro  */
    245       1.5  christos #define WI_RID_MCAST_LIST	0xFC80 /* multicast addrs to put in filter */
    246       1.1    ichiro #define WI_RID_CREATE_IBSS	0xFC81 /* create IBSS */
    247       1.1    ichiro #define WI_RID_FRAG_THRESH	0xFC82 /* frag len, unicast msg xmit */
    248       1.1    ichiro #define WI_RID_RTS_THRESH	0xFC83 /* frame len for RTS/CTS handshake */
    249       1.5  christos #define WI_RID_TX_RATE		0xFC84 /* data rate for message xmit
    250       1.5  christos  					* 0 == Fixed 1mbps
    251       1.5  christos  					* 1 == Fixed 2mbps
    252       1.5  christos  					* 2 == auto fallback
    253       1.5  christos 					*/
    254       1.1    ichiro #define WI_RID_PROMISC		0xFC85 /* enable promisc mode */
    255       1.1    ichiro #define WI_RID_FRAG_THRESH0	0xFC90
    256       1.1    ichiro #define WI_RID_FRAG_THRESH1	0xFC91
    257       1.1    ichiro #define WI_RID_FRAG_THRESH2	0xFC92
    258       1.1    ichiro #define WI_RID_FRAG_THRESH3	0xFC93
    259       1.1    ichiro #define WI_RID_FRAG_THRESH4	0xFC94
    260       1.1    ichiro #define WI_RID_FRAG_THRESH5	0xFC95
    261       1.1    ichiro #define WI_RID_FRAG_THRESH6	0xFC96
    262       1.1    ichiro #define WI_RID_RTS_THRESH0	0xFC97
    263       1.1    ichiro #define WI_RID_RTS_THRESH1	0xFC98
    264       1.1    ichiro #define WI_RID_RTS_THRESH2	0xFC99
    265       1.1    ichiro #define WI_RID_RTS_THRESH3	0xFC9A
    266       1.1    ichiro #define WI_RID_RTS_THRESH4	0xFC9B
    267       1.1    ichiro #define WI_RID_RTS_THRESH5	0xFC9C
    268       1.1    ichiro #define WI_RID_RTS_THRESH6	0xFC9D
    269       1.1    ichiro #define WI_RID_TX_RATE0		0xFC9E
    270       1.1    ichiro #define WI_RID_TX_RATE1		0xFC9F
    271       1.1    ichiro #define WI_RID_TX_RATE2		0xFCA0
    272       1.1    ichiro #define WI_RID_TX_RATE3		0xFCA1
    273       1.1    ichiro #define WI_RID_TX_RATE4		0xFCA2
    274       1.1    ichiro #define WI_RID_TX_RATE5		0xFCA3
    275       1.1    ichiro #define WI_RID_TX_RATE6		0xFCA4
    276       1.1    ichiro #define WI_RID_DEFLT_CRYPT_KEYS	0xFCB0
    277       1.1    ichiro #define WI_RID_TX_CRYPT_KEY	0xFCB1
    278       1.5  christos #define WI_RID_TICK_TIME	0xFCE0 	/* Auxiliary Timer tick interval */
    279       1.1    ichiro 
    280       1.1    ichiro struct wi_key {
    281       1.1    ichiro 	u_int16_t		wi_keylen;
    282       1.1    ichiro 	u_int8_t		wi_keydat[14];
    283       1.1    ichiro };
    284       1.1    ichiro 
    285       1.1    ichiro struct wi_ltv_keys {
    286       1.1    ichiro 	u_int16_t		wi_len;
    287       1.1    ichiro 	u_int16_t		wi_type;
    288       1.1    ichiro 	struct wi_key		wi_keys[4];
    289       1.1    ichiro };
    290       1.1    ichiro 
    291       1.1    ichiro /*
    292       1.1    ichiro  * NIC information
    293       1.1    ichiro  */
    294       1.5  christos #define WI_RID_DNLD_BUF		0xFD01
    295      1.11    ichiro #define WI_RID_MEMSZ		0xFD02 /* memory size info (XXX Lucent) */
    296      1.11    ichiro #define	WI_RID_PRI_IDENTITY	0xFD02 /* primary funcs firmware ident (PRISM2) */
    297       1.1    ichiro #define WI_RID_PRI_SUP_RANGE	0xFD03 /* primary supplier compatibility */
    298       1.1    ichiro #define WI_RID_CIF_ACT_RANGE	0xFD04 /* controller sup. compatibility */
    299       1.1    ichiro #define WI_RID_SERIALNO		0xFD0A /* card serial number */
    300       1.1    ichiro #define WI_RID_CARD_ID		0xFD0B /* card identification */
    301       1.1    ichiro #define WI_RID_MFI_SUP_RANGE	0xFD0C /* modem supplier compatibility */
    302       1.1    ichiro #define WI_RID_CFI_SUP_RANGE	0xFD0D /* controller sup. compatibility */
    303       1.1    ichiro #define WI_RID_CHANNEL_LIST	0xFD10 /* allowd comm. frequencies. */
    304       1.1    ichiro #define WI_RID_REG_DOMAINS	0xFD11 /* list of intendted regulatory doms */
    305       1.1    ichiro #define WI_RID_TEMP_TYPE	0xFD12 /* hw temp range code */
    306       1.1    ichiro #define WI_RID_CIS		0xFD13 /* PC card info struct */
    307       1.3    ichiro #define WI_RID_STA_IDENTITY	0xFD20 /* station funcs firmware ident */
    308       1.1    ichiro #define WI_RID_STA_SUP_RANGE	0xFD21 /* station supplier compat */
    309       1.1    ichiro #define WI_RID_MFI_ACT_RANGE	0xFD22
    310      1.10      onoe #define WI_RID_SYMBOL_IDENTITY	0xFD24
    311       1.1    ichiro #define WI_RID_CFI_ACT_RANGE	0xFD33
    312       1.5  christos #define WI_RID_COMMQUAL		0xFD43
    313       1.5  christos #define WI_RID_SCALETHRESH	0xFD46
    314       1.5  christos #define WI_RID_PCF		0xFD87
    315       1.1    ichiro 
    316       1.1    ichiro /*
    317       1.1    ichiro  * MAC information
    318       1.1    ichiro  */
    319       1.1    ichiro #define WI_RID_PORT_STAT	0xFD40 /* actual MAC port con control stat */
    320       1.1    ichiro #define WI_RID_CURRENT_SSID	0xFD41 /* ID of actually connected SS */
    321       1.1    ichiro #define WI_RID_CURRENT_BSSID	0xFD42 /* ID of actually connected BSS */
    322       1.1    ichiro #define WI_RID_COMMS_QUALITY	0xFD43 /* quality of BSS connection */
    323       1.1    ichiro #define WI_RID_CUR_TX_RATE	0xFD44 /* current TX rate */
    324       1.1    ichiro #define WI_RID_OWN_BEACON_INT	0xFD45 /* beacon xmit time for BSS creation */
    325       1.1    ichiro #define WI_RID_CUR_SCALE_THRESH	0xFD46 /* actual system scane thresh setting */
    326       1.1    ichiro #define WI_RID_PROT_RESP_TIME	0xFD47 /* time to wait for resp to req msg */
    327       1.1    ichiro #define WI_RID_SHORT_RTR_LIM	0xFD48 /* max tx attempts for short frames */
    328       1.1    ichiro #define WI_RID_LONG_RTS_LIM	0xFD49 /* max tx attempts for long frames */
    329       1.1    ichiro #define WI_RID_MAX_TX_LIFE	0xFD4A /* max tx frame handling duration */
    330       1.1    ichiro #define WI_RID_MAX_RX_LIFE	0xFD4B /* max rx frame handling duration */
    331       1.1    ichiro #define WI_RID_CF_POLL		0xFD4C /* contention free pollable ind */
    332       1.1    ichiro #define WI_RID_AUTH_ALGS	0xFD4D /* auth algorithms available */
    333       1.1    ichiro #define WI_RID_AUTH_TYPE	0xFD4E /* available auth types */
    334       1.1    ichiro #define WI_RID_WEP_AVAIL	0xFD4F /* WEP privacy option available */
    335       1.1    ichiro #define WI_RID_CUR_TX_RATE1	0xFD80
    336       1.1    ichiro #define WI_RID_CUR_TX_RATE2	0xFD81
    337       1.1    ichiro #define WI_RID_CUR_TX_RATE3	0xFD82
    338       1.1    ichiro #define WI_RID_CUR_TX_RATE4	0xFD83
    339       1.1    ichiro #define WI_RID_CUR_TX_RATE5	0xFD84
    340       1.1    ichiro #define WI_RID_CUR_TX_RATE6	0xFD85
    341       1.1    ichiro #define WI_RID_OWN_MAC		0xFD86 /* unique local MAC addr */
    342       1.1    ichiro #define WI_RID_PCI_INFO		0xFD87 /* point coordination func cap */
    343       1.8    ichiro 
    344       1.8    ichiro /*
    345       1.8    ichiro  * Scan Information
    346       1.8    ichiro  */
    347      1.14      onoe #define	WI_RID_BCAST_SCAN_REQ	0xFCAB /* Broadcast Scan request (Symbol) */
    348      1.14      onoe #define	 BSCAN_5SEC		0x01
    349      1.14      onoe #define	 BSCAN_ONETIME		0x02
    350      1.14      onoe #define	 BSCAN_PASSIVE		0x40
    351      1.14      onoe #define	 BSCAN_BCAST		0x80
    352       1.9    ichiro #define WI_RID_SCAN_REQ		0xFCE1 /* Scan request (STA only) */
    353       1.9    ichiro #define WI_RID_JOIN_REQ		0xFCE2 /* Join request (STA only) */
    354       1.8    ichiro #define	WI_RID_AUTH_STATION	0xFCE3 /* Authenticates Station (AP) */
    355       1.8    ichiro #define	WI_RID_CHANNEL_REQ	0xFCE4 /* Channel Information Request (AP) */
    356       1.8    ichiro #define WI_RID_SCAN_RESULTS	0xFD88 /* Scan Results Table */
    357       1.9    ichiro 
    358       1.9    ichiro struct wi_apinfo {
    359       1.9    ichiro 	int			scanreason;	/* ScanReason */
    360       1.9    ichiro 	char			bssid[6];	/* BSSID (mac address) */
    361       1.9    ichiro 	int			channel;	/* Channel */
    362       1.9    ichiro 	int			signal;		/* Signal level */
    363       1.9    ichiro 	int			noise;		/* Average Noise Level*/
    364       1.9    ichiro 	int			quality;	/* Quality */
    365       1.9    ichiro 	int			namelen;	/* Length of SSID string */
    366       1.9    ichiro 	char			name[32];	/* SSID string */
    367       1.9    ichiro 	int			capinfo;	/* Capability info. */
    368       1.9    ichiro 	int			interval;	/* BSS Beacon Interval */
    369       1.9    ichiro 	int			rate;		/* Data Rate */
    370       1.9    ichiro };
    371       1.1    ichiro 
    372       1.1    ichiro /*
    373       1.1    ichiro  * Modem information
    374       1.1    ichiro  */
    375       1.1    ichiro #define WI_RID_PHY_TYPE		0xFDC0 /* phys layer type indication */
    376       1.1    ichiro #define WI_RID_CURRENT_CHAN	0xFDC1 /* current frequency */
    377       1.1    ichiro #define WI_RID_PWR_STATE	0xFDC2 /* pwr consumption status */
    378       1.1    ichiro #define WI_RID_CCA_MODE		0xFDC3 /* clear chan assess mode indication */
    379       1.1    ichiro #define WI_RID_CCA_TIME		0xFDC4 /* clear chan assess time */
    380       1.1    ichiro #define WI_RID_MAC_PROC_DELAY	0xFDC5 /* MAC processing delay time */
    381       1.1    ichiro #define WI_RID_DATA_RATES	0xFDC6 /* supported data rates */
    382       1.1    ichiro 
    383       1.1    ichiro #endif
    384