Jelajahi Sumber

qcacmn: Set the flow idx valid flag based on flow timeout

Set the flow idx valid flag only when there is no flow timeout.

Change-Id: If73219d894f3f5b7a4fde9105d1bb3fc18648f80
CRs-Fixed: 3399446
Sai Rupesh Chevuru 2 tahun lalu
induk
melakukan
fea98c45ed
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      dp/wifi3.0/be/dp_be_rx.c

+ 4 - 2
dp/wifi3.0/be/dp_be_rx.c

@@ -44,10 +44,12 @@
 static inline void
 dp_rx_update_flow_info(qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr)
 {
+	/* Set the flow idx valid flag only when there is no timeout */
+	if (hal_rx_msdu_flow_idx_timeout_be(rx_tlv_hdr))
+		return;
+
 	qdf_nbuf_set_rx_flow_idx_valid(nbuf,
 				 !hal_rx_msdu_flow_idx_invalid_be(rx_tlv_hdr));
-	qdf_nbuf_set_rx_flow_idx_timeout(nbuf,
-				 hal_rx_msdu_flow_idx_timeout_be(rx_tlv_hdr));
 }
 #else
 static inline void