فهرست منبع

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 2 سال پیش
والد
کامیت
7c36d50fba
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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");