qcacmn: Change return type to QDF_STATUS
Changing return type of ce_send_single and hif_send_single functions to return QDF_STATUS instead of int so caller can handle as needed. Change-Id: Ifa0db300982e22c2784662492727923e4614c2b7 CRs-Fixed: 2468534
This commit is contained in:
@@ -1040,8 +1040,8 @@ void hif_init_ini_config(struct hif_opaque_softc *hif_ctx,
|
|||||||
void hif_update_tx_ring(struct hif_opaque_softc *osc, u_int32_t num_htt_cmpls);
|
void hif_update_tx_ring(struct hif_opaque_softc *osc, u_int32_t num_htt_cmpls);
|
||||||
qdf_nbuf_t hif_batch_send(struct hif_opaque_softc *osc, qdf_nbuf_t msdu,
|
qdf_nbuf_t hif_batch_send(struct hif_opaque_softc *osc, qdf_nbuf_t msdu,
|
||||||
uint32_t transfer_id, u_int32_t len, uint32_t sendhead);
|
uint32_t transfer_id, u_int32_t len, uint32_t sendhead);
|
||||||
int hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu, uint32_t
|
QDF_STATUS hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu,
|
||||||
transfer_id, u_int32_t len);
|
uint32_t transfer_id, u_int32_t len);
|
||||||
int hif_send_fast(struct hif_opaque_softc *osc, qdf_nbuf_t nbuf,
|
int hif_send_fast(struct hif_opaque_softc *osc, qdf_nbuf_t nbuf,
|
||||||
uint32_t transfer_id, uint32_t download_len);
|
uint32_t transfer_id, uint32_t download_len);
|
||||||
void hif_pkt_dl_len_set(void *hif_sc, unsigned int pkt_download_len);
|
void hif_pkt_dl_len_set(void *hif_sc, unsigned int pkt_download_len);
|
||||||
|
@@ -170,7 +170,7 @@ extern qdf_nbuf_t ce_batch_send(struct CE_handle *ce_tx_hdl,
|
|||||||
uint32_t len,
|
uint32_t len,
|
||||||
uint32_t sendhead);
|
uint32_t sendhead);
|
||||||
|
|
||||||
extern int ce_send_single(struct CE_handle *ce_tx_hdl,
|
QDF_STATUS ce_send_single(struct CE_handle *ce_tx_hdl,
|
||||||
qdf_nbuf_t msdu,
|
qdf_nbuf_t msdu,
|
||||||
uint32_t transfer_id,
|
uint32_t transfer_id,
|
||||||
uint32_t len);
|
uint32_t len);
|
||||||
|
@@ -559,7 +559,7 @@ void ce_update_tx_ring(struct CE_handle *ce_tx_hdl, uint32_t num_htt_cmpls)
|
|||||||
*
|
*
|
||||||
* Return: int: CE sent status
|
* Return: int: CE sent status
|
||||||
*/
|
*/
|
||||||
int ce_send_single(struct CE_handle *ce_tx_hdl, qdf_nbuf_t msdu,
|
QDF_STATUS ce_send_single(struct CE_handle *ce_tx_hdl, qdf_nbuf_t msdu,
|
||||||
uint32_t transfer_id, u_int32_t len)
|
uint32_t transfer_id, u_int32_t len)
|
||||||
{
|
{
|
||||||
struct CE_state *ce_state = (struct CE_state *)ce_tx_hdl;
|
struct CE_state *ce_state = (struct CE_state *)ce_tx_hdl;
|
||||||
|
@@ -1192,8 +1192,8 @@ qdf_export_symbol(hif_update_tx_ring);
|
|||||||
*
|
*
|
||||||
* Return: msdu sent status
|
* Return: msdu sent status
|
||||||
*/
|
*/
|
||||||
int hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu, uint32_t
|
QDF_STATUS hif_send_single(struct hif_opaque_softc *osc, qdf_nbuf_t msdu,
|
||||||
transfer_id, u_int32_t len)
|
uint32_t transfer_id, u_int32_t len)
|
||||||
{
|
{
|
||||||
void *ce_tx_hdl = hif_get_ce_handle(osc, CE_HTT_TX_CE);
|
void *ce_tx_hdl = hif_get_ce_handle(osc, CE_HTT_TX_CE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user