eht_sig_usr_su_info.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. #ifndef _EHT_SIG_USR_SU_INFO_H_
  16. #define _EHT_SIG_USR_SU_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_EHT_SIG_USR_SU_INFO 1
  20. struct eht_sig_usr_su_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t sta_id : 11, // [10:0]
  23. sta_mcs : 4, // [14:11]
  24. validate_0a : 1, // [15:15]
  25. nss : 4, // [19:16]
  26. txbf : 1, // [20:20]
  27. sta_coding : 1, // [21:21]
  28. reserved_0b : 9, // [30:22]
  29. rx_integrity_check_passed : 1; // [31:31]
  30. #else
  31. uint32_t rx_integrity_check_passed : 1, // [31:31]
  32. reserved_0b : 9, // [30:22]
  33. sta_coding : 1, // [21:21]
  34. txbf : 1, // [20:20]
  35. nss : 4, // [19:16]
  36. validate_0a : 1, // [15:15]
  37. sta_mcs : 4, // [14:11]
  38. sta_id : 11; // [10:0]
  39. #endif
  40. };
  41. /* Description STA_ID
  42. Identifies the STA that is addressed. Details of STA ID
  43. are TBD
  44. */
  45. #define EHT_SIG_USR_SU_INFO_STA_ID_OFFSET 0x00000000
  46. #define EHT_SIG_USR_SU_INFO_STA_ID_LSB 0
  47. #define EHT_SIG_USR_SU_INFO_STA_ID_MSB 10
  48. #define EHT_SIG_USR_SU_INFO_STA_ID_MASK 0x000007ff
  49. /* Description STA_MCS
  50. Indicates the data MCS
  51. 0 - 13: MCS 0 - 13
  52. 14: MCS 0 with DCM and 2x duplicate
  53. 15: MCS 0 with DCM
  54. <legal all>
  55. */
  56. #define EHT_SIG_USR_SU_INFO_STA_MCS_OFFSET 0x00000000
  57. #define EHT_SIG_USR_SU_INFO_STA_MCS_LSB 11
  58. #define EHT_SIG_USR_SU_INFO_STA_MCS_MSB 14
  59. #define EHT_SIG_USR_SU_INFO_STA_MCS_MASK 0x00007800
  60. /* Description VALIDATE_0A
  61. Note: spec indicates this shall be set to 1
  62. <legal 1>
  63. */
  64. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_OFFSET 0x00000000
  65. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_LSB 15
  66. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_MSB 15
  67. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_MASK 0x00008000
  68. /* Description NSS
  69. Number of spatial streams for this user
  70. The actual number of streams is 1 larger than indicated
  71. in this field.
  72. <legal all>
  73. */
  74. #define EHT_SIG_USR_SU_INFO_NSS_OFFSET 0x00000000
  75. #define EHT_SIG_USR_SU_INFO_NSS_LSB 16
  76. #define EHT_SIG_USR_SU_INFO_NSS_MSB 19
  77. #define EHT_SIG_USR_SU_INFO_NSS_MASK 0x000f0000
  78. /* Description TXBF
  79. Indicates whether beamforming is applied
  80. 0: No beamforming
  81. 1: beamforming
  82. <legal all>
  83. */
  84. #define EHT_SIG_USR_SU_INFO_TXBF_OFFSET 0x00000000
  85. #define EHT_SIG_USR_SU_INFO_TXBF_LSB 20
  86. #define EHT_SIG_USR_SU_INFO_TXBF_MSB 20
  87. #define EHT_SIG_USR_SU_INFO_TXBF_MASK 0x00100000
  88. /* Description STA_CODING
  89. Distinguishes between BCC/LDPC
  90. 0: BCC
  91. 1: LDPC
  92. <legal all>
  93. */
  94. #define EHT_SIG_USR_SU_INFO_STA_CODING_OFFSET 0x00000000
  95. #define EHT_SIG_USR_SU_INFO_STA_CODING_LSB 21
  96. #define EHT_SIG_USR_SU_INFO_STA_CODING_MSB 21
  97. #define EHT_SIG_USR_SU_INFO_STA_CODING_MASK 0x00200000
  98. /* Description RESERVED_0B
  99. <legal 0>
  100. */
  101. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_OFFSET 0x00000000
  102. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_LSB 22
  103. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_MSB 30
  104. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_MASK 0x7fc00000
  105. /* Description RX_INTEGRITY_CHECK_PASSED
  106. TX side: Set to 0
  107. RX side: Set to 1 if PHY determines the CRC check of the
  108. codeblock containing this EHT-SIG user info has passed,
  109. else set to 0
  110. <legal all>
  111. */
  112. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000000
  113. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 31
  114. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 31
  115. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x80000000
  116. #endif // EHT_SIG_USR_SU_INFO