mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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
This commit is contained in:
parent
594d8a8167
commit
6caec001fa
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue