Parcourir la source

qcacmn: Update replenish soc get for same SOC

In dp_replenish_soc_get() API return current
soc if chip_id of SOC matches

Change-Id: Iab7cc1809ab0e5daeb07dcfbd8f67a1d7ee9b12f
CRs-Fixed: 3297754
Chaithanya Garrepalli il y a 2 ans
Parent
commit
7c36d50fba
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      dp/wifi3.0/be/mlo/dp_mlo.c

+ 3 - 0
dp/wifi3.0/be/mlo/dp_mlo.c

@@ -646,6 +646,9 @@ dp_rx_replensih_soc_get(struct dp_soc *soc, uint8_t chip_id)
 	if (!be_soc->mlo_enabled || !mlo_ctxt)
 		return soc;
 
+	if (be_soc->mlo_chip_id == chip_id)
+		return soc;
+
 	replenish_soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, chip_id);
 	if (qdf_unlikely(!replenish_soc)) {
 		dp_alert("replenish SOC is NULL");