From 55105a2a431cfb2d30e1b54585ca3304d1026365 Mon Sep 17 00:00:00 2001 From: Shwetha G K Date: Sat, 5 Jun 2021 17:36:33 +0530 Subject: [PATCH] qcacmn: Extract mcs & gI info from peer tx event Changes to extract mcs rate and gI from cfr peer tx capture event. Change-Id: Ia64807aed4559466dc25f20928ed8c43ae77be62 --- wmi/inc/wmi_unified_param.h | 2 ++ wmi/src/wmi_unified_cfr_tlv.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 41b324bb66ac..4ee01ee2886f 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -8127,6 +8127,8 @@ typedef struct { uint8_t agc_gain[WMI_HOST_MAX_CHAINS]; uint32_t rx_start_ts; uint32_t rx_ts_reset; + uint32_t mcs_rate; + uint32_t gi_type; } wmi_cfr_peer_tx_event_param; /** diff --git a/wmi/src/wmi_unified_cfr_tlv.c b/wmi/src/wmi_unified_cfr_tlv.c index e2c6ce04198a..5c79f4c25c6e 100644 --- a/wmi/src/wmi_unified_cfr_tlv.c +++ b/wmi/src/wmi_unified_cfr_tlv.c @@ -70,6 +70,10 @@ extract_cfr_peer_tx_event_param_tlv(wmi_unified_t wmi_handle, void *evt_buf, peer_tx_event->rx_start_ts = peer_tx_event_ev->rx_start_ts; peer_tx_event->rx_ts_reset = peer_tx_event_ev->rx_ts_reset; + peer_tx_event->mcs_rate = + WMI_CFR_MCS_GET(peer_tx_event_ev->mcs_gi_info); + peer_tx_event->gi_type = + WMI_CFR_GI_TYPE_GET(peer_tx_event_ev->mcs_gi_info); chain_phase_ev = param_buf->phase_param; if (chain_phase_ev) {