From a2e7c93db75974a5e6d01ef88e4a5ba8e24b2c84 Mon Sep 17 00:00:00 2001 From: Aniruddha Paul Date: Mon, 3 Dec 2018 19:10:12 +0530 Subject: [PATCH] qcacmn: Change the 2k handling API to non-static Make the 2k jump handler from static to non-static to change the scope of the API. Change-Id: I55e2b69c8d470cdf958da76f4f0c8d0effc7ed2e --- dp/wifi3.0/dp_rx.h | 3 +++ dp/wifi3.0/dp_rx_err.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx.h b/dp/wifi3.0/dp_rx.h index 1f8671b95eb0..24d32f10e09d 100644 --- a/dp/wifi3.0/dp_rx.h +++ b/dp/wifi3.0/dp_rx.h @@ -655,6 +655,9 @@ void dp_rx_process_invalid_peer_wrapper(struct dp_soc *soc, qdf_nbuf_t mpdu, bool mpdu_done); void dp_rx_process_mic_error(struct dp_soc *soc, qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr, struct dp_peer *peer); +void dp_2k_jump_handle(struct dp_soc *soc, qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr, + uint16_t peer_id, uint8_t tid); + #define DP_RX_LIST_APPEND(head, tail, elem) \ do { \ diff --git a/dp/wifi3.0/dp_rx_err.c b/dp/wifi3.0/dp_rx_err.c index 037e1f21e073..cc930075c802 100644 --- a/dp/wifi3.0/dp_rx_err.c +++ b/dp/wifi3.0/dp_rx_err.c @@ -509,7 +509,7 @@ dp_rx_chain_msdus(struct dp_soc *soc, qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr, * */ -static void +void dp_2k_jump_handle(struct dp_soc *soc, qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr, @@ -556,6 +556,8 @@ dp_2k_jump_handle(struct dp_soc *soc, } free_nbuf: + if (peer) + dp_peer_unref_del_find_by_id(peer); qdf_nbuf_free(nbuf); return; }