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