Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89e3bc53 authored by Yeshwanth Sriram Guntuka's avatar Yeshwanth Sriram Guntuka Committed by Madan Koyyalamudi
Browse files

qcacmn: Modify check to ensure consecutive PN for frags

Modify check to ensure packet number is consecutive for
fragments and drop the fragments if the check fails.

Change-Id: I2ca0ef6211594ba35aae894e6a385d3d5778bff6
CRs-Fixed: 2874369
parent 240d85ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -879,9 +879,9 @@ static int dp_rx_defrag_pn_check(qdf_nbuf_t msdu,
		((uint64_t)rx_mpdu_info_details->pn_127_96 << 32);

	if (cur_pn128[1] == prev_pn128[1])
		out_of_order = (cur_pn128[0] <= prev_pn128[0]);
		out_of_order = (cur_pn128[0] - prev_pn128[0] != 1);
	else
		out_of_order = (cur_pn128[1] < prev_pn128[1]);
		out_of_order = (cur_pn128[1] - prev_pn128[1] != 1);

	return out_of_order;
}