qcacld-3.0: Enable policy mgr component in CLD

Policy mgr component related files moved from hostcmn to CLD, this
change add its initializion functions to CLD framework, change Kbuild
to enable it.

Change-Id: I0a87d93b9cf639aa66a10f9ae55ef8cb1dfbb80e
CRs-Fixed: 2361570
This commit is contained in:
Wu Gao
2018-12-03 22:09:24 +08:00
committed by nshrivas
parent ebb16d1886
commit d6b5e40780
3 changed files with 30 additions and 12 deletions

View File

@@ -82,15 +82,24 @@ QDF_STATUS ucfg_policy_mgr_psoc_open(struct wlan_objmgr_psoc *psoc)
QDF_STATUS status;
status = policy_mgr_init_cfg(psoc);
if (status != QDF_STATUS_SUCCESS) {
if (QDF_IS_STATUS_ERROR(status)) {
policy_mgr_err("pm_ctx is NULL");
return status;
}
status = policy_mgr_psoc_open(psoc);
if (QDF_IS_STATUS_ERROR(status)) {
policy_mgr_err("psoc open fail");
policy_mgr_psoc_close(psoc);
return status;
}
return QDF_STATUS_SUCCESS;
}
void ucfg_policy_mgr_psoc_close(struct wlan_objmgr_psoc *psoc)
{
policy_mgr_psoc_close(psoc);
policy_mgr_deinit_cfg(psoc);
}