Merge "qca-wifi: initialize preamble value for radiotap use"
diff --git a/dp/wifi3.0/dp_tx_capture.c b/dp/wifi3.0/dp_tx_capture.c
index 6a31e01..41a068d 100644
--- a/dp/wifi3.0/dp_tx_capture.c
+++ b/dp/wifi3.0/dp_tx_capture.c
@@ -3524,20 +3524,23 @@
mpdu_info->ppdu_start_timestamp = ppdu_desc->ppdu_start_timestamp;
mpdu_info->ppdu_end_timestamp = ppdu_desc->ppdu_end_timestamp;
mpdu_info->tx_duration = ppdu_desc->tx_duration;
+
+ /* update cdp_tx_indication_mpdu_info */
+ dp_tx_update_user_mpdu_info(ppdu_desc->ppdu_id,
+ &tx_capture_info->mpdu_info,
+ user);
+
if (bar_frm_with_data) {
mpdu_info->ppdu_start_timestamp =
ppdu_desc->bar_ppdu_start_timestamp;
mpdu_info->ppdu_end_timestamp =
ppdu_desc->bar_ppdu_end_timestamp;
mpdu_info->tx_duration = ppdu_desc->bar_tx_duration;
+ mpdu_info->preamble = ppdu_desc->phy_mode;
}
+
mpdu_info->seq_no = user->start_seq;
mpdu_info->num_msdu = ppdu_desc->num_msdu;
-
- /* update cdp_tx_indication_mpdu_info */
- dp_tx_update_user_mpdu_info(ppdu_desc->ppdu_id,
- &tx_capture_info->mpdu_info,
- user);
tx_capture_info->ppdu_desc = ppdu_desc;
tx_capture_info->mpdu_info.channel_num = pdev->operating_channel.num;