mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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
This commit is contained in:
parent
240d85eed3
commit
89e3bc53dc
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue