Browse Source

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
Aniruddha Paul 6 years ago
parent
commit
a2e7c93db7
2 changed files with 6 additions and 1 deletions
  1. 3 0
      dp/wifi3.0/dp_rx.h
  2. 3 1
      dp/wifi3.0/dp_rx_err.c

+ 3 - 0
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 {                                                          \

+ 3 - 1
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;
 }