qcacmn: PN check bypass required in WEP mode as welil

There is no consecutive PN number for fragments in
open/WEP security mode so no point of dropping such frames

Change-Id: If75a99cb89c6b0997e9b07afc582c4141c277bb8
This commit is contained in:
Shikha Bakshi
2021-07-06 15:58:27 +05:30
committed by Madan Koyyalamudi
parent 8c35189d7f
commit 6494ed4e55

View File

@@ -917,13 +917,17 @@ dp_rx_construct_fraglist(struct dp_peer *peer, int tid, qdf_nbuf_t head,
int out_of_order = 0;
int index;
int needs_pn_check = 0;
enum cdp_sec_type sec_type;
prev_pn128[0] = rx_tid->pn128[0];
prev_pn128[1] = rx_tid->pn128[1];
index = hal_rx_msdu_is_wlan_mcast(soc->hal_soc, msdu) ? dp_sec_mcast :
dp_sec_ucast;
if (qdf_likely(peer->security[index].sec_type != cdp_sec_type_none))
sec_type = peer->security[index].sec_type;
if (!(sec_type == cdp_sec_type_none || sec_type == cdp_sec_type_wep128 ||
sec_type == cdp_sec_type_wep104 || sec_type == cdp_sec_type_wep40))
needs_pn_check = 1;
while (msdu) {