summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-10-10 07:51:48 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-10-10 07:51:48 +0000
commit073d842bead48ecc559efd19a865e6262e3e9db2 (patch)
tree55ba9046d1a16bb314241e366e75810c58f28670 /sys
parent22a9c3fda8e903aa6a876b2de338eeb5e6362354 (diff)
Add macros for A-MPDU and MCS data, both found in HT capabilities element.
typo fix + ok sthen@
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h
index 51da919979e..2961eacab3f 100644
--- a/sys/net80211/ieee80211.h
+++ b/sys/net80211/ieee80211.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.h,v 1.52 2015/07/14 21:13:12 stsp Exp $ */
+/* $OpenBSD: ieee80211.h,v 1.53 2015/10/10 07:51:47 stsp Exp $ */
/* $NetBSD: ieee80211.h,v 1.6 2004/04/30 23:51:53 dyoung Exp $ */
/*-
@@ -572,6 +572,29 @@ enum {
#define IEEE80211_HTCAP_LSIGTXOPPROT 0x00008000
/*
+ * HT A-MPDU parameters (see 802.11-2012 8.4.2.58.3).
+ */
+#define IEEE80211_AMPDU_PARAM_LE 0x03
+#define IEEE80211_AMPDU_PARAM_SS 0x1c
+
+/*
+ * HT Supported MCS Set (see 802.11-2012 8.4.2.58.4).
+ * This field is 16 bytes in size. Bitmasks given below
+ * operate on 8 or 16 bit integer subsets of this field.
+ */
+/* Bits 0-76: Supported Rx MCS bitmask */
+/* Bits 77-79: Reserved */
+/* Bits 80-89: Highest Rx rate in units of 1MB/s */
+#define IEEE80211_MCS_RX_RATE_HIGH 0x03ff
+/* Bits 90-95: Reserved */
+/* Bits 96-100: Tx MCS set */
+#define IEEE80211_TX_MCS_SET_DEFINED 0x01
+#define IEEE80211_TX_RX_MCS_NOT_EQUAL 0x02
+#define IEEE80211_TX_SPATIAL_STREAMS 0x18
+#define IEEE80211_TX_UNEQUAL_MODULATION 0x20
+/* Bits 101-127: Reserved */
+
+/*
* HT Extended Capabilities (see 802.11-2012 8.4.2.58.5).
*/
#define IEEE80211_HTXCAP_PCO 0x0001