Sfoglia il codice sorgente

qcacld-3.0: Fix Defrag Address Compare

Fix the address compare operation that is used for defragmentation.
Also add hook to release the debug qdf node.

Change-Id: I782e0234d5b61bb118578788947aa8b13e8e189c
CRs-Fixed: 1059538
Dhanashri Atre 8 anni fa
parent
commit
5e584fa2eb
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      core/dp/txrx/ol_rx_defrag.c

+ 2 - 1
core/dp/txrx/ol_rx_defrag.c

@@ -70,7 +70,7 @@
 #include <qdf_time.h>           /* qdf_system_time */
 
 #define DEFRAG_IEEE80211_ADDR_EQ(a1, a2) \
-	(qdf_mem_cmp(a1, a2, IEEE80211_ADDR_LEN) != 0)
+	(!qdf_mem_cmp(a1, a2, IEEE80211_ADDR_LEN))
 
 #define DEFRAG_IEEE80211_ADDR_COPY(dst, src) \
 	qdf_mem_copy(dst, src, IEEE80211_ADDR_LEN)
@@ -1152,6 +1152,7 @@ ol_rx_defrag_decap_recombine(htt_pdev_handle htt_pdev,
 	qdf_nbuf_set_next(rx_nbuf, NULL);
 	while (msdu) {
 		htt_rx_msdu_desc_free(htt_pdev, msdu);
+		qdf_net_buf_debug_release_skb(msdu);
 		tmp = qdf_nbuf_next(msdu);
 		qdf_nbuf_set_next(msdu, NULL);
 		ol_rx_frag_pull_hdr(htt_pdev, msdu, hdrsize);