From a912add6c316c42b0ebe4a313b9940224ddfd6c7 Mon Sep 17 00:00:00 2001 From: Chaithanya Garrepalli Date: Fri, 22 Jan 2021 17:37:49 +0530 Subject: [PATCH] qcacmn: Fix duplicate tx buffer issue in send multiple In tx send multiple API stop processing of msdu_info when next segment is NULL Change-Id: I9bc6a90987bb03c86b110d9398bc0188218a348d --- dp/wifi3.0/dp_tx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index 310eb7983f..891e396713 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -2314,7 +2314,8 @@ qdf_nbuf_t dp_tx_send_msdu_multiple(struct dp_vdev *vdev, qdf_nbuf_t nbuf, .curr_seg->next; nbuf = msdu_info->u.sg_info .curr_seg->nbuf; - } + } else + break; i++; continue; } @@ -2356,7 +2357,8 @@ qdf_nbuf_t dp_tx_send_msdu_multiple(struct dp_vdev *vdev, qdf_nbuf_t nbuf, msdu_info->u.sg_info.curr_seg = msdu_info->u.sg_info.curr_seg->next; nbuf = msdu_info->u.sg_info.curr_seg->nbuf; - } + } else + break; } i++; }