qcacmn: Remove policy mgr component and related files from hostcmn

Policy mgr component used in CLD only and needn't in hostcmn. So there
is requirement to move policy mgr component from hostcmn to cld. This
change removes policy mgr related files/codes from hostcmn.

Change-Id: Ie774d526cd4aa91b16afe6e01919141b570324c4
CRs-Fixed: 2361566
This commit is contained in:
Wu Gao
2018-11-30 23:14:37 +08:00
committed by nshrivas
parent 6fb46e2759
commit c38f0e89f0
17 changed files with 0 additions and 20838 deletions

View File

@@ -28,9 +28,6 @@
#include <wlan_mgmt_txrx_utils_api.h>
#include <wlan_serialization_api.h>
#include <wlan_vdev_mlme_main.h>
#ifdef WLAN_POLICY_MGR_ENABLE
#include "wlan_policy_mgr_api.h"
#endif
#ifdef WLAN_ATF_ENABLE
#include <wlan_atf_utils_api.h>
#endif
@@ -335,76 +332,6 @@ static QDF_STATUS dispatcher_regulatory_pdev_close(struct wlan_objmgr_pdev
return regulatory_pdev_close(pdev);
}
#ifdef WLAN_POLICY_MGR_ENABLE
static QDF_STATUS dispatcher_policy_mgr_init(void)
{
return policy_mgr_init();
}
static QDF_STATUS dispatcher_policy_mgr_deinit(void)
{
return policy_mgr_deinit();
}
static QDF_STATUS dispatcher_policy_mgr_psoc_open(
struct wlan_objmgr_psoc *psoc)
{
return policy_mgr_psoc_open(psoc);
}
static QDF_STATUS dispatcher_policy_mgr_psoc_close(
struct wlan_objmgr_psoc *psoc)
{
return policy_mgr_psoc_close(psoc);
}
static QDF_STATUS dispatcher_policy_mgr_psoc_enable(
struct wlan_objmgr_psoc *psoc)
{
return policy_mgr_psoc_enable(psoc);
}
static QDF_STATUS dispatcher_policy_mgr_psoc_disable(
struct wlan_objmgr_psoc *psoc)
{
return policy_mgr_psoc_disable(psoc);
}
#else
static QDF_STATUS dispatcher_policy_mgr_init(void)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_deinit(void)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_psoc_open(
struct wlan_objmgr_psoc *psoc)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_psoc_close(
struct wlan_objmgr_psoc *psoc)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_psoc_enable(
struct wlan_objmgr_psoc *psoc)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS dispatcher_policy_mgr_psoc_disable(
struct wlan_objmgr_psoc *psoc)
{
return QDF_STATUS_SUCCESS;
}
#endif /* END of WLAN_POLICY_MGR_ENABLE */
#ifdef WLAN_SA_API_ENABLE
static QDF_STATUS dispatcher_init_sa_api(void)
{
@@ -822,9 +749,6 @@ QDF_STATUS dispatcher_init(void)
if (QDF_STATUS_SUCCESS != dispatcher_init_crypto())
goto crypto_init_fail;
if (QDF_STATUS_SUCCESS != dispatcher_policy_mgr_init())
goto policy_mgr_init_fail;
if (QDF_STATUS_SUCCESS != dispatcher_init_cp_stats())
goto cp_stats_init_fail;
@@ -911,8 +835,6 @@ sa_api_init_fail:
atf_init_fail:
dispatcher_deinit_cp_stats();
cp_stats_init_fail:
dispatcher_policy_mgr_deinit();
policy_mgr_init_fail:
dispatcher_deinit_crypto();
crypto_init_fail:
wlan_serialization_deinit();
@@ -967,8 +889,6 @@ QDF_STATUS dispatcher_deinit(void)
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_deinit_cp_stats());
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_policy_mgr_deinit());
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_deinit_crypto());
QDF_BUG(QDF_STATUS_SUCCESS == wlan_serialization_deinit());
@@ -1023,9 +943,6 @@ QDF_STATUS dispatcher_psoc_open(struct wlan_objmgr_psoc *psoc)
if (QDF_STATUS_SUCCESS != atf_psoc_open(psoc))
goto atf_psoc_open_fail;
if (QDF_STATUS_SUCCESS != dispatcher_policy_mgr_psoc_open(psoc))
goto policy_mgr_psoc_open_fail;
if (QDF_STATUS_SUCCESS != dispatcher_regulatory_psoc_open(psoc))
goto regulatory_psoc_open_fail;
@@ -1042,8 +959,6 @@ ftm_psoc_open_fail:
psoc_son_fail:
regulatory_psoc_close(psoc);
regulatory_psoc_open_fail:
dispatcher_policy_mgr_psoc_close(psoc);
policy_mgr_psoc_open_fail:
atf_psoc_close(psoc);
atf_psoc_open_fail:
cp_stats_psoc_close(psoc);
@@ -1069,8 +984,6 @@ QDF_STATUS dispatcher_psoc_close(struct wlan_objmgr_psoc *psoc)
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_regulatory_psoc_close(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == dispatcher_policy_mgr_psoc_close(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == atf_psoc_close(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == cp_stats_psoc_close(psoc));
@@ -1095,9 +1008,6 @@ QDF_STATUS dispatcher_psoc_enable(struct wlan_objmgr_psoc *psoc)
if (QDF_STATUS_SUCCESS != tdls_psoc_enable(psoc))
goto tdls_psoc_enable_fail;
if (QDF_STATUS_SUCCESS != dispatcher_policy_mgr_psoc_enable(psoc))
goto policy_mgr_psoc_enable_fail;
if (QDF_STATUS_SUCCESS != sa_api_psoc_enable(psoc))
goto sa_api_psoc_enable_fail;
@@ -1134,8 +1044,6 @@ atf_psoc_enable_fail:
cp_stats_psoc_enable_fail:
sa_api_psoc_disable(psoc);
sa_api_psoc_enable_fail:
dispatcher_policy_mgr_psoc_disable(psoc);
policy_mgr_psoc_enable_fail:
tdls_psoc_disable(psoc);
tdls_psoc_enable_fail:
ucfg_scan_psoc_disable(psoc);
@@ -1161,9 +1069,6 @@ QDF_STATUS dispatcher_psoc_disable(struct wlan_objmgr_psoc *psoc)
QDF_BUG(QDF_STATUS_SUCCESS == sa_api_psoc_disable(psoc));
QDF_BUG(QDF_STATUS_SUCCESS ==
dispatcher_policy_mgr_psoc_disable(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == tdls_psoc_disable(psoc));
QDF_BUG(QDF_STATUS_SUCCESS == ucfg_scan_psoc_disable(psoc));