From 6caec001fa40a714b99d808a59a48f5768c28eba Mon Sep 17 00:00:00 2001 From: Saket Jha Date: Wed, 14 Aug 2019 16:21:11 -0700 Subject: [PATCH] qcacmn: Correct return type for ce_send_single Due to previous API change, ce_send_single function now returns QDF_STATUS instead of int. In the case the condition is met where ce send fails, this function should return QDF_STATUS type. Change-Id: I0fe8cc2929623d6320bd782abcf75fff6ec60297 CRs-Fixed: 2509467 --- hif/src/ce/ce_service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c index ac9a3b202af6..85173da3ae72 100644 --- a/hif/src/ce/ce_service.c +++ b/hif/src/ce/ce_service.c @@ -557,7 +557,7 @@ void ce_update_tx_ring(struct CE_handle *ce_tx_hdl, uint32_t num_htt_cmpls) * 1. Send one msdu * 2. Increment write index of src ring accordinlgy. * - * Return: int: CE sent status + * Return: QDF_STATUS: CE sent status */ QDF_STATUS ce_send_single(struct CE_handle *ce_tx_hdl, qdf_nbuf_t msdu, uint32_t transfer_id, u_int32_t len) @@ -587,7 +587,7 @@ QDF_STATUS ce_send_single(struct CE_handle *ce_tx_hdl, qdf_nbuf_t msdu, /* ol_tx_stats_inc_ring_error(sc->scn->pdev_txrx_handle, 1); */ HIF_ERROR("%s: ce send fail %d %d %d", __func__, nentries_mask, write_index, sw_index); - return 1; + return QDF_STATUS_E_RESOURCES; } src_desc = (uint32_t *)CE_SRC_RING_TO_DESC(src_desc_base, write_index);