Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a1d36cd authored by Karthik Kantamneni's avatar Karthik Kantamneni Committed by Madan Koyyalamudi
Browse files

qcacmn: Fix compilation error for modulo operator

In some of the targets modulo operator assembly API's
are not defined causing compilation error.
To avoid this use qdf based API's for modulo operations.

Change-Id: Ibc69b69aa38cadff5daa8dee8b65ceaacfe997b7
CRs-Fixed: 2940281
parent eb13f602
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1543,7 +1543,7 @@ dp_tx_hw_desc_update_evt(uint8_t *hal_tx_desc_cached,
	idx = ++soc->tx_hw_desc_history->index;
	idx = ++soc->tx_hw_desc_history->index;
	if (idx == DP_TX_HW_DESC_HIST_MAX)
	if (idx == DP_TX_HW_DESC_HIST_MAX)
		soc->tx_hw_desc_history->index = 0;
		soc->tx_hw_desc_history->index = 0;
	idx = (idx % DP_TX_HW_DESC_HIST_MAX);
	idx = qdf_do_div_rem(idx, DP_TX_HW_DESC_HIST_MAX);


	evt = &soc->tx_hw_desc_history->entry[idx];
	evt = &soc->tx_hw_desc_history->entry[idx];
	qdf_mem_copy(evt->tcl_desc, hal_tx_desc_cached, HAL_TX_DESC_LEN_BYTES);
	qdf_mem_copy(evt->tcl_desc, hal_tx_desc_cached, HAL_TX_DESC_LEN_BYTES);