qcacld-3.0: Set tx_comp_req in the htt header when ptp is enabled

When the QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK feature is enabled
along with ptp feature, the req_tx_comp is not sent to the fw in
the htt header.

Since the driver expects tx completion from fw, the descriptors
are not freed.

Fix this by setting tx_comp_req appropriately.

CRs-Fixed: 2520686
Change-Id: I3960fb67fa5864b461d74cd3a683032e15cc460c
This commit is contained in:
Subrat Dash
2019-09-04 16:28:19 +05:30
committed by nshrivas
父節點 a515b7162d
當前提交 c8259cd9f3

查看文件

@@ -807,7 +807,8 @@ void ol_tx_hl_send_all_tcp_ack(struct ol_txrx_vdev_t *vdev)
/* Send all packets */
while (tcp_node_list) {
int tx_comp_req = vdev->pdev->cfg.default_tx_comp_req;
int tx_comp_req = pdev->cfg.default_tx_comp_req ||
pdev->cfg.request_tx_comp;
qdf_nbuf_t msdu_list;
temp = tcp_node_list;
@@ -1035,7 +1036,8 @@ void ol_tx_hl_find_and_send_tcp_stream(struct ol_txrx_vdev_t *vdev,
/* send packets */
if (node_to_be_remove) {
int tx_comp_req = vdev->pdev->cfg.default_tx_comp_req;
int tx_comp_req = pdev->cfg.default_tx_comp_req ||
pdev->cfg.request_tx_comp;
qdf_nbuf_t msdu_list;
msdu_list = ol_tx_hl_base(vdev, OL_TX_SPEC_STD,
@@ -1225,7 +1227,8 @@ void ol_tx_hl_find_and_replace_tcp_ack(struct ol_txrx_vdev_t *vdev,
/* send packets */
if (node_to_be_remove) {
int tx_comp_req = vdev->pdev->cfg.default_tx_comp_req;
int tx_comp_req = pdev->cfg.default_tx_comp_req ||
pdev->cfg.request_tx_comp;
qdf_nbuf_t msdu_list = NULL;
msdu_list = ol_tx_hl_base(vdev, OL_TX_SPEC_STD,
@@ -1405,7 +1408,8 @@ qdf_nbuf_t
ol_tx_hl(ol_txrx_vdev_handle vdev, qdf_nbuf_t msdu_list)
{
struct ol_txrx_pdev_t *pdev = vdev->pdev;
int tx_comp_req = pdev->cfg.default_tx_comp_req;
int tx_comp_req = pdev->cfg.default_tx_comp_req ||
pdev->cfg.request_tx_comp;
struct packet_info pkt_info;
qdf_nbuf_t temp;