|
@@ -585,9 +585,12 @@ struct ieee80211_mgmt {
|
|
|
/* Rx MCS bitmask is in the first 77 bits of supported_mcs_set */
|
|
|
#define IEEE80211_HT_MCS_MASK_LEN 10
|
|
|
|
|
|
+/* HT Capabilities element */
|
|
|
struct ieee80211_ht_capabilities {
|
|
|
le16 ht_capabilities_info;
|
|
|
- u8 a_mpdu_params;
|
|
|
+ u8 a_mpdu_params; /* Maximum A-MPDU Length Exponent B0..B1
|
|
|
+ * Minimum MPDU Start Spacing B2..B4
|
|
|
+ * Reserved B5..B7 */
|
|
|
u8 supported_mcs_set[16];
|
|
|
le16 ht_extended_capabilities;
|
|
|
le32 tx_bf_capability_info;
|
|
@@ -595,12 +598,14 @@ struct ieee80211_ht_capabilities {
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
|
+/* HT Operation element */
|
|
|
struct ieee80211_ht_operation {
|
|
|
- u8 control_chan;
|
|
|
- u8 ht_param;
|
|
|
- le16 operation_mode;
|
|
|
- le16 stbc_param;
|
|
|
- u8 basic_set[16];
|
|
|
+ u8 primary_chan;
|
|
|
+ /* Five octets of HT Operation Information */
|
|
|
+ u8 ht_param; /* B0..B7 */
|
|
|
+ le16 operation_mode; /* B8..B23 */
|
|
|
+ le16 param; /* B24..B39 */
|
|
|
+ u8 basic_mcs_set[16];
|
|
|
} STRUCT_PACKED;
|
|
|
|
|
|
|
|
@@ -641,6 +646,7 @@ struct ieee80211_vht_operation {
|
|
|
#define ERP_INFO_BARKER_PREAMBLE_MODE BIT(2)
|
|
|
|
|
|
|
|
|
+/* HT Capabilities Info field within HT Capabilities element */
|
|
|
#define HT_CAP_INFO_LDPC_CODING_CAP ((u16) BIT(0))
|
|
|
#define HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET ((u16) BIT(1))
|
|
|
#define HT_CAP_INFO_SMPS_MASK ((u16) (BIT(2) | BIT(3)))
|
|
@@ -662,69 +668,82 @@ struct ieee80211_vht_operation {
|
|
|
#define HT_CAP_INFO_40MHZ_INTOLERANT ((u16) BIT(14))
|
|
|
#define HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT ((u16) BIT(15))
|
|
|
|
|
|
-
|
|
|
+/* HT Extended Capabilities field within HT Capabilities element */
|
|
|
#define EXT_HT_CAP_INFO_PCO ((u16) BIT(0))
|
|
|
+#define EXT_HT_CAP_INFO_PCO_TRANS_TIME_MASK ((u16) (BIT(1) | BIT(2)))
|
|
|
#define EXT_HT_CAP_INFO_TRANS_TIME_OFFSET 1
|
|
|
+/* B3..B7 - Reserved */
|
|
|
+#define EXT_HT_CAP_INFO_MCS_FEEDBACK_MASK ((u16) (BIT(8) | BIT(9)))
|
|
|
#define EXT_HT_CAP_INFO_MCS_FEEDBACK_OFFSET 8
|
|
|
-#define EXT_HT_CAP_INFO_HTC_SUPPORTED ((u16) BIT(10))
|
|
|
+#define EXT_HT_CAP_INFO_HTC_SUPPORT ((u16) BIT(10))
|
|
|
#define EXT_HT_CAP_INFO_RD_RESPONDER ((u16) BIT(11))
|
|
|
-
|
|
|
-
|
|
|
-#define TX_BEAMFORM_CAP_TXBF_CAP ((u32) BIT(0))
|
|
|
-#define TX_BEAMFORM_CAP_RX_STAGGERED_SOUNDING_CAP ((u32) BIT(1))
|
|
|
-#define TX_BEAMFORM_CAP_TX_STAGGERED_SOUNDING_CAP ((u32) BIT(2))
|
|
|
-#define TX_BEAMFORM_CAP_RX_ZLF_CAP ((u32) BIT(3))
|
|
|
-#define TX_BEAMFORM_CAP_TX_ZLF_CAP ((u32) BIT(4))
|
|
|
-#define TX_BEAMFORM_CAP_IMPLICIT_ZLF_CAP ((u32) BIT(5))
|
|
|
-#define TX_BEAMFORM_CAP_CALIB_OFFSET 6
|
|
|
-#define TX_BEAMFORM_CAP_EXPLICIT_CSI_TXBF_CAP ((u32) BIT(8))
|
|
|
-#define TX_BEAMFORM_CAP_EXPLICIT_UNCOMPR_STEERING_MATRIX_CAP ((u32) BIT(9))
|
|
|
-#define TX_BEAMFORM_CAP_EXPLICIT_BF_CSI_FEEDBACK_CAP ((u32) BIT(10))
|
|
|
-#define TX_BEAMFORM_CAP_EXPLICIT_BF_CSI_FEEDBACK_OFFSET 11
|
|
|
-#define TX_BEAMFORM_CAP_EXPLICIT_UNCOMPR_STEERING_MATRIX_FEEDBACK_OFFSET 13
|
|
|
-#define TX_BEAMFORM_CAP_EXPLICIT_COMPRESSED_STEERING_MATRIX_FEEDBACK_OFFSET 15
|
|
|
-#define TX_BEAMFORM_CAP_MINIMAL_GROUPING_OFFSET 17
|
|
|
-#define TX_BEAMFORM_CAP_CSI_NUM_BEAMFORMER_ANT_OFFSET 19
|
|
|
-#define TX_BEAMFORM_CAP_UNCOMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 21
|
|
|
-#define TX_BEAMFORM_CAP_COMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 23
|
|
|
-#define TX_BEAMFORM_CAP_SCI_MAX_OF_ROWS_BEANFORMER_SUPPORTED_OFFSET 25
|
|
|
-
|
|
|
-
|
|
|
-#define ASEL_CAPABILITY_ASEL_CAPABLE ((u8) BIT(0))
|
|
|
-#define ASEL_CAPABILITY_EXPLICIT_CSI_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(1))
|
|
|
-#define ASEL_CAPABILITY_ANT_INDICES_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(2))
|
|
|
-#define ASEL_CAPABILITY_EXPLICIT_CSI_FEEDBACK_CAP ((u8) BIT(3))
|
|
|
-#define ASEL_CAPABILITY_ANT_INDICES_FEEDBACK_CAP ((u8) BIT(4))
|
|
|
-#define ASEL_CAPABILITY_RX_AS_CAP ((u8) BIT(5))
|
|
|
-#define ASEL_CAPABILITY_TX_SOUND_PPDUS_CAP ((u8) BIT(6))
|
|
|
-
|
|
|
+/* B12..B15 - Reserved */
|
|
|
+
|
|
|
+/* Transmit Beanforming Capabilities within HT Capabilities element */
|
|
|
+#define TX_BF_CAP_IMPLICIT_TXBF_RX_CAP ((u32) BIT(0))
|
|
|
+#define TX_BF_CAP_RX_STAGGERED_SOUNDING_CAP ((u32) BIT(1))
|
|
|
+#define TX_BF_CAP_TX_STAGGERED_SOUNDING_CAP ((u32) BIT(2))
|
|
|
+#define TX_BF_CAP_RX_NDP_CAP ((u32) BIT(3))
|
|
|
+#define TX_BF_CAP_TX_NDP_CAP ((u32) BIT(4))
|
|
|
+#define TX_BF_CAP_IMPLICIT_TX_BF_CAP ((u32) BIT(5))
|
|
|
+#define TX_BF_CAP_CALIBRATION_MASK ((u32) (BIT(6) | BIT(7))
|
|
|
+#define TX_BF_CAP_CALIB_OFFSET 6
|
|
|
+#define TX_BF_CAP_EXPLICIT_CSI_TXBF_CAP ((u32) BIT(8))
|
|
|
+#define TX_BF_CAP_EXPLICIT_NONCOMPR_STEERING_CAP ((u32) BIT(9))
|
|
|
+#define TX_BF_CAP_EXPLICIT_COMPR_STEERING_CAP ((u32) BIT(10))
|
|
|
+#define TX_BF_CAP_EXPLICIT_TX_BF_CSI_FEEDBACK_MASK ((u32) (BIT(10) | BIT(11)))
|
|
|
+#define TX_BF_CAP_EXPLICIT_BF_CSI_FEEDBACK_OFFSET 11
|
|
|
+#define TX_BF_CAP_EXPLICIT_UNCOMPR_STEERING_MATRIX_FEEDBACK_OFFSET 13
|
|
|
+#define TX_BF_CAP_EXPLICIT_COMPRESSED_STEERING_MATRIX_FEEDBACK_OFFSET 15
|
|
|
+#define TX_BF_CAP_MINIMAL_GROUPING_OFFSET 17
|
|
|
+#define TX_BF_CAP_CSI_NUM_BEAMFORMER_ANT_OFFSET 19
|
|
|
+#define TX_BF_CAP_UNCOMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 21
|
|
|
+#define TX_BF_CAP_COMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 23
|
|
|
+#define TX_BF_CAP_SCI_MAX_OF_ROWS_BEANFORMER_SUPPORTED_OFFSET 25
|
|
|
+#define TX_BF_CAP_CHANNEL_ESTIMATION_CAP_MASK ((u32) (BIT(27) | BIT(28)))
|
|
|
+#define TX_BF_CAP_CHANNEL_ESTIMATION_CAP_OFFSET 27
|
|
|
+/* B29..B31 - Reserved */
|
|
|
+
|
|
|
+/* ASEL Capability field within HT Capabilities element */
|
|
|
+#define ASEL_CAP_ASEL_CAPABLE ((u8) BIT(0))
|
|
|
+#define ASEL_CAP_EXPLICIT_CSI_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(1))
|
|
|
+#define ASEL_CAP_ANT_INDICES_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(2))
|
|
|
+#define ASEL_CAP_EXPLICIT_CSI_FEEDBACK_CAP ((u8) BIT(3))
|
|
|
+#define ASEL_CAP_ANT_INDICES_FEEDBACK_CAP ((u8) BIT(4))
|
|
|
+#define ASEL_CAP_RX_AS_CAP ((u8) BIT(5))
|
|
|
+#define ASEL_CAP_TX_SOUNDING_PPDUS_CAP ((u8) BIT(6))
|
|
|
+/* B7 - Reserved */
|
|
|
+
|
|
|
+/* First octet of HT Operation Information within HT Operation element */
|
|
|
#define HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK ((u8) BIT(0) | BIT(1))
|
|
|
#define HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE ((u8) BIT(0))
|
|
|
#define HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW ((u8) BIT(0) | BIT(1))
|
|
|
-#define HT_INFO_HT_PARAM_REC_TRANS_CHNL_WIDTH ((u8) BIT(2))
|
|
|
+#define HT_INFO_HT_PARAM_STA_CHNL_WIDTH ((u8) BIT(2))
|
|
|
#define HT_INFO_HT_PARAM_RIFS_MODE ((u8) BIT(3))
|
|
|
-#define HT_INFO_HT_PARAM_CTRL_ACCESS_ONLY ((u8) BIT(4))
|
|
|
-#define HT_INFO_HT_PARAM_SRV_INTERVAL_GRANULARITY ((u8) BIT(5))
|
|
|
-
|
|
|
-
|
|
|
-#define OP_MODE_PURE 0
|
|
|
-#define OP_MODE_MAY_BE_LEGACY_STAS 1
|
|
|
-#define OP_MODE_20MHZ_HT_STA_ASSOCED 2
|
|
|
-#define OP_MODE_MIXED 3
|
|
|
-
|
|
|
-#define HT_INFO_OPERATION_MODE_OP_MODE_MASK \
|
|
|
- (0x0001 | 0x0002)
|
|
|
-#define HT_INFO_OPERATION_MODE_OP_MODE_OFFSET 0
|
|
|
-#define HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT ((u8) BIT(2))
|
|
|
-#define HT_INFO_OPERATION_MODE_TRANSMIT_BURST_LIMIT ((u8) BIT(3))
|
|
|
-#define HT_INFO_OPERATION_MODE_NON_HT_STA_PRESENT ((u8) BIT(4))
|
|
|
-
|
|
|
-#define HT_INFO_STBC_PARAM_DUAL_BEACON ((u16) BIT(6))
|
|
|
-#define HT_INFO_STBC_PARAM_DUAL_STBC_PROTECT ((u16) BIT(7))
|
|
|
-#define HT_INFO_STBC_PARAM_SECONDARY_BCN ((u16) BIT(8))
|
|
|
-#define HT_INFO_STBC_PARAM_LSIG_TXOP_PROTECT_ALLOWED ((u16) BIT(9))
|
|
|
-#define HT_INFO_STBC_PARAM_PCO_ACTIVE ((u16) BIT(10))
|
|
|
-#define HT_INFO_STBC_PARAM_PCO_PHASE ((u16) BIT(11))
|
|
|
+/* B4..B7 - Reserved */
|
|
|
+
|
|
|
+/* HT Protection (B8..B9 of HT Operation Information) */
|
|
|
+#define HT_PROT_NO_PROTECTION 0
|
|
|
+#define HT_PROT_NONMEMBER_PROTECTION 1
|
|
|
+#define HT_PROT_20MHZ_PROTECTION 2
|
|
|
+#define HT_PROT_NON_HT_MIXED 3
|
|
|
+/* Bits within ieee80211_ht_operation::operation_mode (BIT(0) maps to B8 in
|
|
|
+ * HT Operation Information) */
|
|
|
+#define HT_OPER_OP_MODE_HT_PROT_MASK ((u16) (BIT(0) | BIT(1))) /* B8..B9 */
|
|
|
+#define HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT ((u16) BIT(2)) /* B10 */
|
|
|
+/* BIT(3), i.e., B11 in HT Operation Information field - Reserved */
|
|
|
+#define HT_OPER_OP_MODE_OBSS_NON_HT_STAS_PRESENT ((u16) BIT(4)) /* B12 */
|
|
|
+/* BIT(5)..BIT(15), i.e., B13..B23 - Reserved */
|
|
|
+
|
|
|
+/* Last two octets of HT Operation Information (BIT(0) = B24) */
|
|
|
+/* B24..B29 - Reserved */
|
|
|
+#define HT_OPER_PARAM_DUAL_BEACON ((u16) BIT(6))
|
|
|
+#define HT_OPER_PARAM_DUAL_CTS_PROTECTION ((u16) BIT(7))
|
|
|
+#define HT_OPER_PARAM_STBC_BEACON ((u16) BIT(8))
|
|
|
+#define HT_OPER_PARAM_LSIG_TXOP_PROT_FULL_SUPP ((u16) BIT(9))
|
|
|
+#define HT_OPER_PARAM_PCO_ACTIVE ((u16) BIT(10))
|
|
|
+#define HT_OPER_PARAM_PCO_PHASE ((u16) BIT(11))
|
|
|
+/* B36..B39 - Reserved */
|
|
|
|
|
|
#define BSS_MEMBERSHIP_SELECTOR_VHT_PHY 126
|
|
|
#define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127
|