Parcourir la source

qcacmn: Populate LTF in rx_ppdu_indication structure

Add support for indicating LTF as part of Rx PPDU indication

Change-Id: I9a39e5a32f3e6117b53ecae5a653df8318f0b21d
CRs-Fixed:2397734
Pamidipati, Vijay il y a 6 ans
Parent
commit
ba4b57f368
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      dp/wifi3.0/dp_rx_mon_status.c

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

@@ -75,6 +75,9 @@ dp_rx_populate_cdp_indication_ppdu(struct dp_pdev *pdev,
 	cdp_rx_ppdu->u.ldpc = ppdu_info->rx_status.ldpc;
 	cdp_rx_ppdu->u.preamble = ppdu_info->rx_status.preamble_type;
 	cdp_rx_ppdu->u.ppdu_type = ppdu_info->rx_status.reception_type;
+	cdp_rx_ppdu->u.ltf_size = (ppdu_info->rx_status.he_data5 >>
+				   QDF_MON_STATUS_HE_LTF_SIZE_SHIFT) & 0x3;
+	cdp_rx_ppdu->num_mpdu = ppdu_info->com_info.mpdu_cnt_fcs_ok;
 	cdp_rx_ppdu->rssi = ppdu_info->rx_status.rssi_comb;
 	cdp_rx_ppdu->timestamp = ppdu_info->rx_status.tsft;
 	cdp_rx_ppdu->channel = ppdu_info->rx_status.chan_num;
@@ -83,7 +86,6 @@ dp_rx_populate_cdp_indication_ppdu(struct dp_pdev *pdev,
 			cdp_rx_ppdu->udp_msdu_count +
 			cdp_rx_ppdu->other_msdu_count);
 
-	cdp_rx_ppdu->num_mpdu = ppdu_info->com_info.mpdu_cnt_fcs_ok;
 	if (ppdu_info->com_info.mpdu_cnt_fcs_ok > 1)
 		cdp_rx_ppdu->is_ampdu = 1;
 	else