Quellcode durchsuchen

qcacmn: Adjust mpdu length properly for RAW MPDUs

mpdu length is calculated wrongly in one corner case
resulting in wrongly identifying the last nbuf of the
mpdu, fixed it by properly adjusting the length.
CRs-Fixed: 2368608

Change-Id: Ia7bd3247eb05f2eb4b5de1c65e7190c798128792
Tallapragada Kalyan vor 6 Jahren
Ursprung
Commit
30d651d13b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      dp/wifi3.0/dp_rx.c

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

@@ -973,7 +973,7 @@ static inline bool dp_rx_adjust_nbuf_len(qdf_nbuf_t nbuf, uint16_t *mpdu_len)
 {
 	bool last_nbuf;
 
-	if (*mpdu_len >= (RX_BUFFER_SIZE - RX_PKT_TLVS_LEN)) {
+	if (*mpdu_len > (RX_BUFFER_SIZE - RX_PKT_TLVS_LEN)) {
 		qdf_nbuf_set_pktlen(nbuf, RX_BUFFER_SIZE);
 		last_nbuf = false;
 	} else {