qcacmn: Add TSF timestamp to MCAST pkts in TX Cap

Move dp_tx_peer_init before dp_peer check to init for
bss_peers as well for MCAST packets. Add TSF timestamp
for wbm completion path in TX Capture feature.

Change-Id: I7da500671e2c22a937cae8770ce5357b9bbe5364
This commit is contained in:
Christopher Chopp
2020-03-27 12:46:38 -07:00
committed by nshrivas
parent 1f3652debc
commit 6b17c700d4
2 changed files with 2 additions and 1 deletions

View File

@@ -5503,6 +5503,7 @@ dp_peer_setup_wifi3(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
* which is REO2TCL ring. for this reason we should * which is REO2TCL ring. for this reason we should
* not setup reo_queues and default route for bss_peer. * not setup reo_queues and default route for bss_peer.
*/ */
dp_peer_tx_init(pdev, peer);
if (peer->bss_peer && vdev->opmode == wlan_op_mode_ap) { if (peer->bss_peer && vdev->opmode == wlan_op_mode_ap) {
status = QDF_STATUS_E_FAILURE; status = QDF_STATUS_E_FAILURE;
goto fail; goto fail;
@@ -5520,7 +5521,6 @@ dp_peer_setup_wifi3(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
qdf_atomic_set(&peer->is_default_route_set, 1); qdf_atomic_set(&peer->is_default_route_set, 1);
dp_peer_rx_init(pdev, peer); dp_peer_rx_init(pdev, peer);
dp_peer_tx_init(pdev, peer);
dp_peer_ppdu_delayed_ba_init(peer); dp_peer_ppdu_delayed_ba_init(peer);

View File

@@ -3608,6 +3608,7 @@ void dp_tx_process_htt_completion(struct dp_tx_desc_s *tx_desc, uint8_t *status,
HTT_TX_WBM_COMPLETION_V2_ACK_FRAME_RSSI_GET( HTT_TX_WBM_COMPLETION_V2_ACK_FRAME_RSSI_GET(
htt_desc[1]); htt_desc[1]);
ts.tsf = htt_desc[3];
ts.first_msdu = 1; ts.first_msdu = 1;
ts.last_msdu = 1; ts.last_msdu = 1;
tid = ts.tid; tid = ts.tid;