From 8a697c8d6537ed2515b7375de31d4245cb2890e3 Mon Sep 17 00:00:00 2001 From: Sriram Madhvapathi Date: Tue, 25 Sep 2018 15:12:32 +0530 Subject: [PATCH] qcacld-3.0: Don't wait for dload-complete for wmi_service_mgmt_tx_wmi In High Latency interfaces, do not wait for download complete when management over wmi service is enabled. Change-Id: I7e1e175fdf5b4c836c504a7a816be4f98d4451a0 CRs-Fixed: 2341451 --- core/wma/src/wma_data.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/wma/src/wma_data.c b/core/wma/src/wma_data.c index fb969c40aa40..8b10d976d1fd 100644 --- a/core/wma/src/wma_data.c +++ b/core/wma/src/wma_data.c @@ -2382,6 +2382,7 @@ QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen, int32_t status; QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; int32_t is_high_latency; + bool is_wmi_mgmt_tx = false; struct cdp_vdev *txrx_vdev; enum frame_index tx_frm_index = GENERIC_NODOWNLD_NOACK_COMP_INDEX; tpSirMacFrameCtl pFc = (tpSirMacFrameCtl) (qdf_nbuf_data(tx_frame)); @@ -2682,9 +2683,11 @@ QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen, return QDF_STATUS_E_FAILURE; } is_high_latency = cdp_cfg_is_high_latency(soc, ctrl_pdev); + is_wmi_mgmt_tx = wmi_service_enabled(wma_handle->wmi_handle, + wmi_service_mgmt_tx_wmi); downld_comp_required = tx_frm_download_comp_cb && is_high_latency && - tx_frm_ota_comp_cb; + (!is_wmi_mgmt_tx) && tx_frm_ota_comp_cb; /* Fill the frame index to send */ if (pFc->type == SIR_MAC_MGMT_FRAME) {