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
This commit is contained in:
Sai Rupesh Chevuru
2023-02-08 00:55:24 +05:30
committed by Madan Koyyalamudi
parent a70effe5d4
commit fea98c45ed

View File

@@ -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