mex_receive_user_info.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #pragma once
  17. #include "../mex_tlv_intf.h"
  18. #include "receive_user_info.h"
  19. template <typename TlvType>
  20. struct MexParseTlv<TlvType, typename std::enable_if<std::is_base_of<receive_user_info, TlvType>::value>::type>
  21. : MexParseTlvBase<TlvType> {
  22. std::string tlv_name{"receive_user_info"};
  23. void operator()() {
  24. MEX_PARSE_TLV_FIELD(phy_ppdu_id);
  25. MEX_PARSE_TLV_FIELD(user_rssi);
  26. MEX_PARSE_TLV_FIELD(pkt_type);
  27. MEX_PARSE_TLV_FIELD(stbc);
  28. MEX_PARSE_TLV_FIELD(reception_type);
  29. MEX_PARSE_TLV_FIELD(rate_mcs);
  30. MEX_PARSE_TLV_FIELD(sgi);
  31. MEX_PARSE_TLV_FIELD(receive_bandwidth);
  32. MEX_PARSE_TLV_FIELD(mimo_ss_bitmap);
  33. MEX_PARSE_TLV_FIELD(ofdma_ru_allocation);
  34. MEX_PARSE_TLV_FIELD(ofdma_user_index);
  35. MEX_PARSE_TLV_FIELD(ofdma_content_channel);
  36. MEX_PARSE_TLV_FIELD(ldpc);
  37. MEX_PARSE_TLV_FIELD(reserved_2a);
  38. }
  39. };