1 2 /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 18 19 20 21 22 23 24 25 26 #ifndef _EHT_SIG_USR_MU_MIMO_INFO_H_ 27 #define _EHT_SIG_USR_MU_MIMO_INFO_H_ 28 #if !defined(__ASSEMBLER__) 29 #endif 30 31 #define NUM_OF_DWORDS_EHT_SIG_USR_MU_MIMO_INFO 2 32 33 34 struct eht_sig_usr_mu_mimo_info { 35 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 36 uint32_t sta_id : 11, 37 sta_mcs : 4, 38 sta_coding : 1, 39 sta_spatial_config : 6, 40 reserved_0a : 1, 41 rx_integrity_check_passed : 1, 42 subband80_cc_mask : 8; 43 uint32_t user_order_subband80_0 : 8, 44 user_order_subband80_1 : 8, 45 user_order_subband80_2 : 8, 46 user_order_subband80_3 : 8; 47 #else 48 uint32_t subband80_cc_mask : 8, 49 rx_integrity_check_passed : 1, 50 reserved_0a : 1, 51 sta_spatial_config : 6, 52 sta_coding : 1, 53 sta_mcs : 4, 54 sta_id : 11; 55 uint32_t user_order_subband80_3 : 8, 56 user_order_subband80_2 : 8, 57 user_order_subband80_1 : 8, 58 user_order_subband80_0 : 8; 59 #endif 60 }; 61 62 63 64 65 #define EHT_SIG_USR_MU_MIMO_INFO_STA_ID_OFFSET 0x00000000 66 #define EHT_SIG_USR_MU_MIMO_INFO_STA_ID_LSB 0 67 #define EHT_SIG_USR_MU_MIMO_INFO_STA_ID_MSB 10 68 #define EHT_SIG_USR_MU_MIMO_INFO_STA_ID_MASK 0x000007ff 69 70 71 72 73 #define EHT_SIG_USR_MU_MIMO_INFO_STA_MCS_OFFSET 0x00000000 74 #define EHT_SIG_USR_MU_MIMO_INFO_STA_MCS_LSB 11 75 #define EHT_SIG_USR_MU_MIMO_INFO_STA_MCS_MSB 14 76 #define EHT_SIG_USR_MU_MIMO_INFO_STA_MCS_MASK 0x00007800 77 78 79 80 81 #define EHT_SIG_USR_MU_MIMO_INFO_STA_CODING_OFFSET 0x00000000 82 #define EHT_SIG_USR_MU_MIMO_INFO_STA_CODING_LSB 15 83 #define EHT_SIG_USR_MU_MIMO_INFO_STA_CODING_MSB 15 84 #define EHT_SIG_USR_MU_MIMO_INFO_STA_CODING_MASK 0x00008000 85 86 87 88 89 #define EHT_SIG_USR_MU_MIMO_INFO_STA_SPATIAL_CONFIG_OFFSET 0x00000000 90 #define EHT_SIG_USR_MU_MIMO_INFO_STA_SPATIAL_CONFIG_LSB 16 91 #define EHT_SIG_USR_MU_MIMO_INFO_STA_SPATIAL_CONFIG_MSB 21 92 #define EHT_SIG_USR_MU_MIMO_INFO_STA_SPATIAL_CONFIG_MASK 0x003f0000 93 94 95 96 97 #define EHT_SIG_USR_MU_MIMO_INFO_RESERVED_0A_OFFSET 0x00000000 98 #define EHT_SIG_USR_MU_MIMO_INFO_RESERVED_0A_LSB 22 99 #define EHT_SIG_USR_MU_MIMO_INFO_RESERVED_0A_MSB 22 100 #define EHT_SIG_USR_MU_MIMO_INFO_RESERVED_0A_MASK 0x00400000 101 102 103 104 105 #define EHT_SIG_USR_MU_MIMO_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000000 106 #define EHT_SIG_USR_MU_MIMO_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 23 107 #define EHT_SIG_USR_MU_MIMO_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 23 108 #define EHT_SIG_USR_MU_MIMO_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x00800000 109 110 111 112 113 #define EHT_SIG_USR_MU_MIMO_INFO_SUBBAND80_CC_MASK_OFFSET 0x00000000 114 #define EHT_SIG_USR_MU_MIMO_INFO_SUBBAND80_CC_MASK_LSB 24 115 #define EHT_SIG_USR_MU_MIMO_INFO_SUBBAND80_CC_MASK_MSB 31 116 #define EHT_SIG_USR_MU_MIMO_INFO_SUBBAND80_CC_MASK_MASK 0xff000000 117 118 119 120 121 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_0_OFFSET 0x00000004 122 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_0_LSB 0 123 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_0_MSB 7 124 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_0_MASK 0x000000ff 125 126 127 128 129 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_1_OFFSET 0x00000004 130 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_1_LSB 8 131 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_1_MSB 15 132 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_1_MASK 0x0000ff00 133 134 135 136 137 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_2_OFFSET 0x00000004 138 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_2_LSB 16 139 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_2_MSB 23 140 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_2_MASK 0x00ff0000 141 142 143 144 145 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_3_OFFSET 0x00000004 146 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_3_LSB 24 147 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_3_MSB 31 148 #define EHT_SIG_USR_MU_MIMO_INFO_USER_ORDER_SUBBAND80_3_MASK 0xff000000 149 150 151 152 #endif 153