From 699074598ba81bd0a188e2ae89a9e214e87337cc Mon Sep 17 00:00:00 2001 From: Amar Singhal Date: Thu, 7 Jun 2018 10:36:46 -0700 Subject: [PATCH] qcacmn: Remove unused function htc_add_receive_pkt Function htc_add_receive_pkt exposes pointer to local variable to the caller. Since it is unused; remove it. Change-Id: I3294fde4499a58e6872c44fd8615eff2bfb42556 CRs-Fixed: 2247626 --- htc/htc_api.h | 24 ------------------------ htc/htc_recv.c | 8 -------- 2 files changed, 32 deletions(-) diff --git a/htc/htc_api.h b/htc/htc_api.h index 4ad211e1f734..86336a5c4c4d 100644 --- a/htc/htc_api.h +++ b/htc/htc_api.h @@ -439,18 +439,6 @@ QDF_STATUS htc_wait_target(HTC_HANDLE HTCHandle); */ QDF_STATUS htc_start(HTC_HANDLE HTCHandle); -/** - * htc_add_receive_pkt - Add receive packet to HTC - * @HTCHandle - HTC handle - * @pPacket - HTC receive packet to add - * - * User must supply HTC packets for capturing incoming HTC frames. - * The caller must initialize each HTC packet using the - * SET_HTC_PACKET_INFO_RX_REFILL() macro. - * Return: A_OK on success - */ -A_STATUS htc_add_receive_pkt(HTC_HANDLE HTCHandle, HTC_PACKET *pPacket); - /** * htc_connect_service - Connect to an HTC service * @HTCHandle - HTC handle @@ -693,18 +681,6 @@ struct ol_ath_htc_stats *ieee80211_ioctl_get_htc_stats(HTC_HANDLE */ int htc_get_tx_queue_depth(HTC_HANDLE *htc_handle, HTC_ENDPOINT_ID endpoint_id); -#ifdef HIF_USB -#define HTCReturnReceivePkt(target, p, osbuf) \ - do { \ - A_NETBUF_FREE(osbuf); \ - if (p->Status == A_CLONE) { \ - qdf_mem_free(p); \ - } \ - } while (0) -#else -#define HTCReturnReceivePkt(target, p, osbuf) htc_add_receive_pkt(target, p) -#endif - #ifdef WLAN_FEATURE_FASTPATH void htc_ctrl_msg_cmpl(HTC_HANDLE htc_pdev, HTC_ENDPOINT_ID htc_ep_id); diff --git a/htc/htc_recv.c b/htc/htc_recv.c index 4f9956fd2200..d6c60d330084 100644 --- a/htc/htc_recv.c +++ b/htc/htc_recv.c @@ -558,14 +558,6 @@ A_STATUS htc_add_receive_pkt_multiple(HTC_HANDLE HTCHandle, return status; } -A_STATUS htc_add_receive_pkt(HTC_HANDLE HTCHandle, HTC_PACKET *pPacket) -{ - HTC_PACKET_QUEUE queue; - - INIT_HTC_PACKET_QUEUE_AND_ADD(&queue, pPacket); - return htc_add_receive_pkt_multiple(HTCHandle, &queue); -} - void htc_flush_rx_hold_queue(HTC_TARGET *target, HTC_ENDPOINT *pEndpoint) { HTC_PACKET *pPacket;