qcacmn: pmo feature flag disable

In case PMO feature flag disable, add this change. Change
WLAN_PMO_ENABLE  to WLAN_POWER_MANAGEMENT_OFFLOAD.

Change-Id: I875e568dcb239da1b86d1a76cb8cbc925bb13cde
CRs-Fixed: 2243948
这个提交包含在:
Wu Gao
2018-05-17 16:14:00 +08:00
提交者 nshrivas
父节点 c3b7af01ed
当前提交 7503f36333
修改 3 个文件,包含 7 行新增3 行删除

查看文件

@@ -34,7 +34,7 @@
#include "wlan_p2p_roc.h"
#include "wlan_p2p_off_chan_tx.h"
#ifdef WLAN_PMO_ENABLE
#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
#include <wlan_pmo_obj_mgmt_api.h>
#endif
@@ -537,7 +537,7 @@ static void wlan_p2p_init_connection_status(
}
#endif /* WLAN_FEATURE_P2P_DEBUG */
#ifdef WLAN_PMO_ENABLE
#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
/**
* p2p_suspend_handler() - suspend handler of P2P
@@ -655,12 +655,14 @@ static inline QDF_STATUS p2p_unregister_pmo_handler(void)
#else
static inline QDF_STATUS p2p_register_pmo_handler(void)
{
return QDF_STATUS_SUCCESS;
}
static inline QDF_STATUS p2p_unregister_pmo_handler(void)
{
return QDF_STATUS_SUCCESS;
}
#endif /* End of WLAN_PMO_ENABLE */
#endif /* End of WLAN_POWER_MANAGEMENT_OFFLOAD */
QDF_STATUS p2p_component_init(void)
{

查看文件

@@ -23,6 +23,7 @@
#include <wmi_unified_api.h>
#include <wlan_mgmt_txrx_utils_api.h>
#include <wlan_objmgr_psoc_obj.h>
#include <wlan_objmgr_peer_obj.h>
#include <wlan_utility.h>
#include "wlan_p2p_public_struct.h"
#include "wlan_p2p_tgt_api.h"

查看文件

@@ -22,6 +22,7 @@
#include <wmi_unified_api.h>
#include <wlan_objmgr_psoc_obj.h>
#include <wlan_objmgr_vdev_obj.h>
#include <scheduler_api.h>
#include "wlan_p2p_public_struct.h"
#include "wlan_p2p_ucfg_api.h"