l_sig_b_info.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * Copyright (c) 2020, The Linux Foundation. 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. #ifndef _L_SIG_B_INFO_H_
  17. #define _L_SIG_B_INFO_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. // ################ START SUMMARY #################
  21. //
  22. // Dword Fields
  23. // 0 rate[3:0], length[15:4], reserved[31:16]
  24. //
  25. // ################ END SUMMARY #################
  26. #define NUM_OF_DWORDS_L_SIG_B_INFO 1
  27. struct l_sig_b_info {
  28. uint32_t rate : 4, //[3:0]
  29. length : 12, //[15:4]
  30. reserved : 16; //[31:16]
  31. };
  32. /*
  33. rate
  34. <enum 1 dsss_1_mpbs_long> DSSS 1 Mbps long
  35. <enum 2 dsss_2_mbps_long> DSSS 2 Mbps long
  36. <enum 3 cck_5_5_mbps_long> CCK 5.5 Mbps long
  37. <enum 4 cck_11_mbps_long> CCK 11 Mbps long
  38. <enum 5 dsss_2_mbps_short> DSSS 2 Mbps short
  39. <enum 6 cck_5_5_mbps_short> CCK 5.5 Mbps short
  40. <enum 7 cck_11_mbps_short> CCK 11 Mbps short
  41. <legal 1-7>
  42. length
  43. The length indicates the number of octets in this MPDU.
  44. <legal all>
  45. reserved
  46. Reserved: Should be set to 0 by the transmitting MAC and
  47. ignored by the PHY <legal 0>
  48. */
  49. /* Description L_SIG_B_INFO_0_RATE
  50. <enum 1 dsss_1_mpbs_long> DSSS 1 Mbps long
  51. <enum 2 dsss_2_mbps_long> DSSS 2 Mbps long
  52. <enum 3 cck_5_5_mbps_long> CCK 5.5 Mbps long
  53. <enum 4 cck_11_mbps_long> CCK 11 Mbps long
  54. <enum 5 dsss_2_mbps_short> DSSS 2 Mbps short
  55. <enum 6 cck_5_5_mbps_short> CCK 5.5 Mbps short
  56. <enum 7 cck_11_mbps_short> CCK 11 Mbps short
  57. <legal 1-7>
  58. */
  59. #define L_SIG_B_INFO_0_RATE_OFFSET 0x00000000
  60. #define L_SIG_B_INFO_0_RATE_LSB 0
  61. #define L_SIG_B_INFO_0_RATE_MASK 0x0000000f
  62. /* Description L_SIG_B_INFO_0_LENGTH
  63. The length indicates the number of octets in this MPDU.
  64. <legal all>
  65. */
  66. #define L_SIG_B_INFO_0_LENGTH_OFFSET 0x00000000
  67. #define L_SIG_B_INFO_0_LENGTH_LSB 4
  68. #define L_SIG_B_INFO_0_LENGTH_MASK 0x0000fff0
  69. /* Description L_SIG_B_INFO_0_RESERVED
  70. Reserved: Should be set to 0 by the transmitting MAC and
  71. ignored by the PHY <legal 0>
  72. */
  73. #define L_SIG_B_INFO_0_RESERVED_OFFSET 0x00000000
  74. #define L_SIG_B_INFO_0_RESERVED_LSB 16
  75. #define L_SIG_B_INFO_0_RESERVED_MASK 0xffff0000
  76. #endif // _L_SIG_B_INFO_H_