From 11ec57d57b441fc8447ee4708fe8992f3ff165bb Mon Sep 17 00:00:00 2001 From: Ruben Columbus Date: Tue, 4 Feb 2020 12:35:24 -0800 Subject: [PATCH] qca-wifi: support for rx ack recreation frame for tx failed frames rx ack does not get created for tx failed frames. this is done with a check for completion status on the previous frame. Change-Id: Idfff8aa8165542bb2ca2cf1370a201ccb057997e --- dp/wifi3.0/dp_tx_capture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_tx_capture.c b/dp/wifi3.0/dp_tx_capture.c index 8d2ac9680a..f443ed0067 100644 --- a/dp/wifi3.0/dp_tx_capture.c +++ b/dp/wifi3.0/dp_tx_capture.c @@ -1730,7 +1730,9 @@ void dp_send_data_to_stack(struct dp_pdev *pdev, qdf_nbuf_free(tx_capture_info.mpdu_nbuf); } - if (ppdu_desc->resp_type == HTT_PPDU_STATS_ACK_EXPECTED_E) + if (ppdu_desc->resp_type == HTT_PPDU_STATS_ACK_EXPECTED_E && + ppdu_desc->user[0].completion_status == + HTT_PPDU_STATS_USER_STATUS_OK) dp_gen_ack_rx_frame(pdev, &tx_capture_info); }