l_sig_b_info.h 3.0 KB

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