From a5e6565dd6873953fb9d5b4c54006cd0a56557ae Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Tue, 6 Apr 2021 18:03:24 +0530 Subject: [PATCH] qcacmn: Check for equal case in nbuf len sanity MSDU with len 1654 is received in the REO2SW ring and the total len of the pkt would be 1654 + 392 (pkt tlvs) + 2 (l2 hdr padding) = 2048bytes. The nbuf len sanity checks for strictly less than 2048 bytes which results in the assertion failure. Fix is to add the equal case when validating the nbuf len. Change-Id: I7e5d1df10339c8d7908a12001c2322028965a8fe CRs-Fixed: 2916351 --- dp/wifi3.0/dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index fca424cef6..060a342ea0 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -1939,7 +1939,7 @@ dp_rx_desc_nbuf_len_sanity_check(struct dp_soc *soc, struct rx_desc_pool *rx_desc_pool; rx_desc_pool = &soc->rx_desc_buf[0]; - qdf_assert_always(pkt_len < rx_desc_pool->buf_size); + qdf_assert_always(pkt_len <= rx_desc_pool->buf_size); } #else static inline