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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user