From f2e3637e64dcf34d4977fe636b54af1f52f2a837 Mon Sep 17 00:00:00 2001 From: Nirav Shah Date: Thu, 10 Dec 2015 15:42:17 +0530 Subject: [PATCH] qcacld-3.0: Ignore HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND from FW Ignore HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND from firmware if management over WMI is enabled. Change-Id: Ic196d17526c251ae26dd59ca2f42b7bff9a46ffe CRs-Fixed: 949946 --- core/dp/htt/htt_t2h.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/dp/htt/htt_t2h.c b/core/dp/htt/htt_t2h.c index 92d847285c02..3ef8cdd8c6f7 100644 --- a/core/dp/htt/htt_t2h.c +++ b/core/dp/htt/htt_t2h.c @@ -283,10 +283,14 @@ void htt_t2h_lp_msg_handler(void *context, cdf_nbuf_t htt_t2h_msg) compl_msg = (struct htt_mgmt_tx_compl_ind *)(msg_word + 1); - ol_tx_single_completion_handler(pdev->txrx_pdev, - compl_msg->status, - compl_msg->desc_id); - HTT_TX_SCHED(pdev); + if (!ol_tx_get_is_mgmt_over_wmi_enabled()) { + ol_tx_single_completion_handler(pdev->txrx_pdev, + compl_msg->status, + compl_msg->desc_id); + HTT_TX_SCHED(pdev); + } else { + cdf_print("Ignoring HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND indication\n"); + } break; } case HTT_T2H_MSG_TYPE_STATS_CONF: