l_sig_b_info.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 _L_SIG_B_INFO_H_
  16. #define _L_SIG_B_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_L_SIG_B_INFO 1
  20. struct l_sig_b_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t rate : 4,
  23. length : 12,
  24. reserved : 15,
  25. rx_integrity_check_passed : 1;
  26. #else
  27. uint32_t rx_integrity_check_passed : 1,
  28. reserved : 15,
  29. length : 12,
  30. rate : 4;
  31. #endif
  32. };
  33. #define L_SIG_B_INFO_RATE_OFFSET 0x00000000
  34. #define L_SIG_B_INFO_RATE_LSB 0
  35. #define L_SIG_B_INFO_RATE_MSB 3
  36. #define L_SIG_B_INFO_RATE_MASK 0x0000000f
  37. #define L_SIG_B_INFO_LENGTH_OFFSET 0x00000000
  38. #define L_SIG_B_INFO_LENGTH_LSB 4
  39. #define L_SIG_B_INFO_LENGTH_MSB 15
  40. #define L_SIG_B_INFO_LENGTH_MASK 0x0000fff0
  41. #define L_SIG_B_INFO_RESERVED_OFFSET 0x00000000
  42. #define L_SIG_B_INFO_RESERVED_LSB 16
  43. #define L_SIG_B_INFO_RESERVED_MSB 30
  44. #define L_SIG_B_INFO_RESERVED_MASK 0x7fff0000
  45. #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000000
  46. #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 31
  47. #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 31
  48. #define L_SIG_B_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x80000000
  49. #endif