Parcourir la source

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
Shwetha G K il y a 4 ans
Parent
commit
e875fdf64e
2 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 4 0
      wmi/src/wmi_unified_cfr_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -7746,6 +7746,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;
 
 /**

+ 4 - 0
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) {