Parcourir la source

Merge "qcacld-3.0: Use objmgr api to get the vdev for pmo" into wlan-cld3.driver.lnx.2.0

CNSS_WLAN Service il y a 4 ans
Parent
commit
867f61360f
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 2 5
      components/pmo/core/src/wlan_pmo_suspend_resume.c

+ 2 - 5
components/pmo/core/src/wlan_pmo_suspend_resume.c

@@ -453,16 +453,13 @@ static void pmo_core_disable_runtime_pm_offloads(struct wlan_objmgr_psoc *psoc)
 {
 	uint8_t vdev_id;
 	struct wlan_objmgr_vdev *vdev;
-	QDF_STATUS status;
 
 	/* Iterate through VDEV list */
 	for (vdev_id = 0; vdev_id < WLAN_UMAC_PSOC_MAX_VDEVS; vdev_id++) {
-		vdev = pmo_psoc_get_vdev(psoc, vdev_id);
+		vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, vdev_id,
+							    WLAN_PMO_ID);
 		if (!vdev)
 			continue;
-		status = pmo_vdev_get_ref(vdev);
-		if (QDF_IS_STATUS_ERROR(status))
-			continue;
 
 		pmo_clear_action_frame_patterns(vdev);
 		pmo_vdev_put_ref(vdev);