summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi/if_wavelan_ieee.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-04-11 07:21:16 +0000
committerimp <imp@FreeBSD.org>2002-04-11 07:21:16 +0000
commit0b4ed14b52d23be9b4d33be078dfe30b1a0bb1f3 (patch)
treeb390bad81164cedb04a4ef4eb55f523388a229a7 /sys/dev/wi/if_wavelan_ieee.h
parentf9f60207318d6373f0da852a06b1463e95641fec (diff)
downloadFreeBSD-src-0b4ed14b52d23be9b4d33be078dfe30b1a0bb1f3.zip
FreeBSD-src-0b4ed14b52d23be9b4d33be078dfe30b1a0bb1f3.tar.gz
Integrate the hostap stuff that Thomas Skibo <skibo@packbell.net>
wrote. This code was for 4.5-release, so I've ported it to -current and made a few minor tweaks. The biggest non-style tweak was to not make access point the default. More changes will be needed to get this actually working, but I wanted to get a relatively pure baseline. This doesn't seem to break what works now.
Diffstat (limited to 'sys/dev/wi/if_wavelan_ieee.h')
-rw-r--r--sys/dev/wi/if_wavelan_ieee.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wavelan_ieee.h b/sys/dev/wi/if_wavelan_ieee.h
index 159867e..2ba1dbf 100644
--- a/sys/dev/wi/if_wavelan_ieee.h
+++ b/sys/dev/wi/if_wavelan_ieee.h
@@ -50,6 +50,7 @@
#ifndef SIOCGWAVELAN
#define SIOCGWAVELAN SIOCGIFGENERIC
#endif
+#define WI_RID_MONITOR_MODE 0x0500
/*
* Technically I don't think there's a limit to a record
@@ -113,6 +114,13 @@ struct wi_80211_hdr {
#define WI_STYPE_MGMT_AUTH 0x00B0 /* authentication */
#define WI_STYPE_MGMT_DEAUTH 0x00C0 /* deauthentication */
+#define WI_STYPE_CTL_PSPOLL 0x00A0
+#define WI_STYPE_CTL_RTS 0x00B0
+#define WI_STYPE_CTL_CTS 0x00C0
+#define WI_STYPE_CTL_ACK 0x00D0
+#define WI_STYPE_CTL_CFEND 0x00E0
+#define WI_STYPE_CTL_CFENDACK 0x00F0
+
struct wi_mgmt_hdr {
u_int16_t frame_ctl;
u_int16_t duration;
@@ -209,7 +217,7 @@ struct wi_counters {
#define IV_EVERY100_FRAME 0x60 /* every 100 frame IV reuse */
#define HOST_DECRYPT 0x80
#define WI_RID_WEP_MAPTABLE 0xFC29
-#define WI_RID_AUTH_CNTL 0xFC2A
+#define WI_RID_CNFAUTHMODE 0xFC2A
#define WI_RID_ROAMING_MODE 0xFC2D
#define WI_RID_BASIC_RATE 0xFCB3
#define WI_RID_SUPPORT_RATE 0xFCB4
@@ -221,7 +229,11 @@ struct wi_counters {
#define WI_RID_CREATE_IBSS 0xFC81 /* create IBSS */
#define WI_RID_FRAG_THRESH 0xFC82 /* frag len, unicast msg xmit */
#define WI_RID_RTS_THRESH 0xFC83 /* frame len for RTS/CTS handshake */
-#define WI_RID_TX_RATE 0xFC84 /* data rate for message xmit */
+#define WI_RID_TX_RATE 0xFC84 /* data rate for message xmit
+ * 0 == Fixed 1mbps
+ * 1 == Fixed 2mbps
+ * 2 == auto fallback
+ */
#define WI_RID_PROMISC 0xFC85 /* enable promisc mode */
#define WI_RID_FRAG_THRESH0 0xFC90
#define WI_RID_FRAG_THRESH1 0xFC91
OpenPOWER on IntegriCloud