Browse Source

qcacmn: Use correct frag index in monitor restitch path

While adding amsdu padding in last buffer (in case of msdu split
across multiple buffers) or single msdu buffer, address of frag at
0th index and size of the current frag index are considered currently.

Instead the address and size at current frag index are to be taken
into consideration. Make change to use correct frag index for amsdu
padding.

Change-Id: I3c5ac11cbdb67bc5264bc62425825583158269a0
CRs-Fixed: 2907489
Harsh Kumar Bijlani 4 years ago
parent
commit
2d5c0e2880
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dp/wifi3.0/dp_rx_mon_dest.c

+ 1 - 1
dp/wifi3.0/dp_rx_mon_dest.c

@@ -890,7 +890,7 @@ qdf_nbuf_t dp_rx_mon_frag_restitch_mpdu_from_msdus(struct dp_soc *soc,
 				qdf_nbuf_trim_add_frag_size(msdu_curr,
 							    frags_iter,
 							    amsdu_pad, 0);
-				frag_addr_temp = (char *)qdf_nbuf_get_frag_addr(msdu_curr, 0);
+				frag_addr_temp = (char *)qdf_nbuf_get_frag_addr(msdu_curr, frags_iter);
 				frag_addr_temp = (frag_addr_temp +
 					qdf_nbuf_get_frag_size_by_idx(msdu_curr, frags_iter)) -
 					amsdu_pad;