Эх сурвалжийг харах

qcacmn: Populate LTF size for Rx stats

Populate LTF size value from TLV for HE and modify
HE_LTF enum value to match with Firmware values

Change-Id: I8e5cce31cbae4aa8722050b06d89c933b74aa752
Keyur Parekh 6 жил өмнө
parent
commit
44d8f8f9b1

+ 1 - 0
dp/wifi3.0/dp_rx_mon_status.c

@@ -118,6 +118,7 @@ dp_rx_populate_cdp_indication_ppdu(struct dp_pdev *pdev,
 		     peer->mac_addr.raw, QDF_MAC_ADDR_SIZE);
 	cdp_rx_ppdu->peer_id = peer->peer_ids[0];
 	cdp_rx_ppdu->vdev_id = peer->vdev->vdev_id;
+	cdp_rx_ppdu->u.ltf_size = ppdu_info->rx_status.ltf_size;
 }
 #else
 static inline void

+ 4 - 4
hal/wifi3.0/hal_api_mon.h

@@ -116,10 +116,10 @@
 
 #define HT_SGI_PRESENT 0x80
 
-#define HE_LTF_1_X 1
-#define HE_LTF_2_X 2
-#define HE_LTF_4_X 3
-#define HE_LTF_UNKNOWN 0
+#define HE_LTF_1_X 0
+#define HE_LTF_2_X 1
+#define HE_LTF_4_X 2
+#define HE_LTF_UNKNOWN 3
 #define VHT_SIG_SU_NSS_MASK	0x7
 #define HT_SIG_SU_NSS_SHIFT	0x3
 

+ 1 - 0
hal/wifi3.0/hal_generic_api.h

@@ -733,6 +733,7 @@ hal_rx_status_get_tlv_info_generic(void *rx_tlv_hdr, void *ppduinfo,
 		value = he_gi << QDF_MON_STATUS_GI_SHIFT;
 		ppdu_info->rx_status.he_data5 |= value;
 		value = he_ltf << QDF_MON_STATUS_HE_LTF_SIZE_SHIFT;
+		ppdu_info->rx_status.ltf_size = he_ltf;
 		ppdu_info->rx_status.he_data5 |= value;
 
 		value = HAL_RX_GET(he_sig_a_su_info, HE_SIG_A_SU_INFO_0, NSTS);

+ 1 - 0
qdf/inc/qdf_nbuf.h

@@ -299,6 +299,7 @@ struct mon_rx_status {
 	uint8_t monitor_direct_used;
 	uint8_t data_sequence_control_info_valid;
 	uint16_t first_data_seq_ctrl;
+	uint8_t ltf_size;
 };
 
 /**