diff --git a/components/pmo/core/inc/wlan_pmo_apf.h b/components/pmo/core/inc/wlan_pmo_apf.h index 880bba42cb6c..64dfa341d922 100644 --- a/components/pmo/core/inc/wlan_pmo_apf.h +++ b/components/pmo/core/inc/wlan_pmo_apf.h @@ -23,6 +23,8 @@ #ifndef __WLAN_PMO_APF_H #define __WLAN_PMO_APF_H +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "qdf_types.h" #include "wlan_objmgr_psoc_obj.h" @@ -34,4 +36,6 @@ */ uint32_t pmo_get_apf_instruction_size(struct wlan_objmgr_psoc *psoc); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* __WLAN_PMO_APF_H */ diff --git a/components/pmo/core/inc/wlan_pmo_arp.h b/components/pmo/core/inc/wlan_pmo_arp.h index 0211e532ede7..976cf0260420 100644 --- a/components/pmo/core/inc/wlan_pmo_arp.h +++ b/components/pmo/core/inc/wlan_pmo_arp.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_ARP_H_ #define _WLAN_PMO_ARP_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_arp_public_struct.h" /** @@ -68,4 +70,6 @@ QDF_STATUS pmo_core_enable_arp_offload_in_fwr(struct wlan_objmgr_vdev *vdev, QDF_STATUS pmo_core_disable_arp_offload_in_fwr(struct wlan_objmgr_vdev *vdev, enum pmo_offload_trigger trigger); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_ARP_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_gtk.h b/components/pmo/core/inc/wlan_pmo_gtk.h index d86aec2fa7b7..44774872e9de 100644 --- a/components/pmo/core/inc/wlan_pmo_gtk.h +++ b/components/pmo/core/inc/wlan_pmo_gtk.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_GTK_H_ #define _WLAN_PMO_GTK_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_gtk_public_struct.h" /** @@ -70,5 +72,7 @@ QDF_STATUS pmo_core_disable_gtk_offload_in_fwr(struct wlan_objmgr_vdev *vdev); QDF_STATUS pmo_core_get_gtk_rsp(struct wlan_objmgr_vdev *vdev, struct pmo_gtk_rsp_req *gtk_rsp_req); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_GTK_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_hw_filter.h b/components/pmo/core/inc/wlan_pmo_hw_filter.h index c3cab641eade..6739cd0cf0de 100644 --- a/components/pmo/core/inc/wlan_pmo_hw_filter.h +++ b/components/pmo/core/inc/wlan_pmo_hw_filter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -23,6 +23,8 @@ #ifndef _WLAN_PMO_HW_FILTER_H_ #define _WLAN_PMO_HW_FILTER_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "qdf_status.h" #include "wlan_objmgr_vdev_obj.h" #include "wlan_pmo_hw_filter_public_struct.h" @@ -43,4 +45,6 @@ QDF_STATUS pmo_core_enable_hw_filter_in_fwr(struct wlan_objmgr_vdev *vdev); */ QDF_STATUS pmo_core_disable_hw_filter_in_fwr(struct wlan_objmgr_vdev *vdev); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* _WLAN_PMO_HW_FILTER_H_*/ diff --git a/components/pmo/core/inc/wlan_pmo_lphb.h b/components/pmo/core/inc/wlan_pmo_lphb.h index 80da03d0414d..00cacccb9fd4 100644 --- a/components/pmo/core/inc/wlan_pmo_lphb.h +++ b/components/pmo/core/inc/wlan_pmo_lphb.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_LPHB_H_ #define _WLAN_PMO_LPHB_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_lphb_public_struct.h" /** @@ -48,4 +50,6 @@ QDF_STATUS pmo_core_lphb_config_req(struct wlan_objmgr_psoc *psoc, */ void pmo_core_apply_lphb(struct wlan_objmgr_psoc *psoc); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_LPHB_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_main.h b/components/pmo/core/inc/wlan_pmo_main.h index 6f58d135c148..ed696b600520 100644 --- a/components/pmo/core/inc/wlan_pmo_main.h +++ b/components/pmo/core/inc/wlan_pmo_main.h @@ -23,6 +23,8 @@ #ifndef _WLAN_PMO_MAIN_H_ #define _WLAN_PMO_MAIN_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_common_public_struct.h" #include "wlan_pmo_obj_mgmt_public_struct.h" #include "wlan_pmo_priv.h" @@ -393,4 +395,6 @@ pmo_intersect_packet_filter(struct pmo_psoc_priv_obj *psoc_ctx) psoc_ctx->caps.packet_filter; } +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_MAIN_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_mc_addr_filtering.h b/components/pmo/core/inc/wlan_pmo_mc_addr_filtering.h index 9f9205c76fc5..8fb288844285 100644 --- a/components/pmo/core/inc/wlan_pmo_mc_addr_filtering.h +++ b/components/pmo/core/inc/wlan_pmo_mc_addr_filtering.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_MC_ADDR_FILTERING_H_ #define _WLAN_PMO_MC_ADDR_FILTERING_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_common_public_struct.h" #include "wlan_pmo_mc_addr_filtering_public_struct.h" @@ -142,4 +144,6 @@ int pmo_core_get_mc_addr_list_count(struct wlan_objmgr_psoc *psoc, */ uint8_t pmo_core_max_mc_addr_supported(struct wlan_objmgr_psoc *psoc); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_MC_ADDR_FILTERING_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_ns.h b/components/pmo/core/inc/wlan_pmo_ns.h index fed8c1921548..fa1e0d43f87f 100644 --- a/components/pmo/core/inc/wlan_pmo_ns.h +++ b/components/pmo/core/inc/wlan_pmo_ns.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_NS_H_ #define _WLAN_PMO_NS_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_common_public_struct.h" #include "wlan_pmo_ns_public_struct.h" @@ -69,4 +71,6 @@ QDF_STATUS pmo_core_enable_ns_offload_in_fwr(struct wlan_objmgr_vdev *vdev, QDF_STATUS pmo_core_disable_ns_offload_in_fwr(struct wlan_objmgr_vdev *vdev, enum pmo_offload_trigger trigger); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_NS_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_objmgr.h b/components/pmo/core/inc/wlan_pmo_objmgr.h index 26ef1e052bcf..41db7e33bd34 100644 --- a/components/pmo/core/inc/wlan_pmo_objmgr.h +++ b/components/pmo/core/inc/wlan_pmo_objmgr.h @@ -23,6 +23,8 @@ #ifndef _WLAN_PMO_OBJMGR_H #define _WLAN_PMO_OBJMGR_H +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_cmn.h" #include "wlan_objmgr_cmn.h" #include "wlan_objmgr_peer_obj.h" @@ -213,4 +215,6 @@ pmo_vdev_get_psoc_priv(struct wlan_objmgr_vdev *vdev) return pmo_psoc_get_priv(pmo_pdev_get_psoc(pmo_vdev_get_pdev(vdev))); } +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* _WLAN_PMO_OBJMGR_H */ diff --git a/components/pmo/core/inc/wlan_pmo_pkt_filter.h b/components/pmo/core/inc/wlan_pmo_pkt_filter.h index fe6b376fc583..7a3db9b5bac2 100644 --- a/components/pmo/core/inc/wlan_pmo_pkt_filter.h +++ b/components/pmo/core/inc/wlan_pmo_pkt_filter.h @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_PKT_FILTER_H_ #define _WLAN_PMO_PKT_FILTER_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_pkt_filter_public_struct.h" struct wlan_objmgr_psoc; @@ -61,5 +63,7 @@ QDF_STATUS pmo_core_clear_pkt_filter(struct wlan_objmgr_psoc *psoc, struct pmo_rcv_pkt_fltr_clear_param *pmo_clr_pkt_fltr_req, uint8_t vdev_id); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* _WLAN_PMO_PKT_FILTER_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_priv.h b/components/pmo/core/inc/wlan_pmo_priv.h index cc216d18bd45..cf9eb8fb245d 100644 --- a/components/pmo/core/inc/wlan_pmo_priv.h +++ b/components/pmo/core/inc/wlan_pmo_priv.h @@ -25,6 +25,8 @@ #ifndef _WLAN_PMO_PRIV_STRUCT_H_ #define _WLAN_PMO_PRIV_STRUCT_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_common_public_struct.h" #include "wlan_pmo_arp_public_struct.h" #include "wlan_pmo_ns_public_struct.h" @@ -129,4 +131,6 @@ struct pmo_vdev_priv_obj { qdf_spinlock_t pmo_vdev_lock; }; +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_PRIV_STRUCT_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_static_config.h b/components/pmo/core/inc/wlan_pmo_static_config.h index c6895ce653cd..90a339c3bf3f 100644 --- a/components/pmo/core/inc/wlan_pmo_static_config.h +++ b/components/pmo/core/inc/wlan_pmo_static_config.h @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_STATIC_CONFIG_H_ #define _WLAN_PMO_STATIC_CONFIG_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_common_public_struct.h" #include "wlan_pmo_wow.h" @@ -113,4 +115,6 @@ void pmo_set_sta_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmask_size); */ void pmo_set_sap_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmask_size); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_STATIC_CONFIG_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_suspend_resume.h b/components/pmo/core/inc/wlan_pmo_suspend_resume.h index 343aae0f7d55..7de32fa70253 100644 --- a/components/pmo/core/inc/wlan_pmo_suspend_resume.h +++ b/components/pmo/core/inc/wlan_pmo_suspend_resume.h @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_SUSPEND_RESUME_H_ #define _WLAN_PMO_SUSPEND_RESUME_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_common_public_struct.h" #include "wlan_pmo_wow.h" @@ -430,4 +432,6 @@ void pmo_core_psoc_target_suspend_acknowledge(void *context, bool wow_nack); */ void pmo_core_psoc_wakeup_host_event_received(struct wlan_objmgr_psoc *psoc); +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_SUSPEND_RESUME_H_ */ diff --git a/components/pmo/core/inc/wlan_pmo_wow.h b/components/pmo/core/inc/wlan_pmo_wow.h index d40a9f4f74c3..158a8bbc36e4 100644 --- a/components/pmo/core/inc/wlan_pmo_wow.h +++ b/components/pmo/core/inc/wlan_pmo_wow.h @@ -22,6 +22,8 @@ #ifndef _WLAN_PMO_WOW_H_ #define _WLAN_PMO_WOW_H_ +#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD + #include "wlan_pmo_main.h" #include "wlan_pmo_wow_public_struct.h" #include "wlan_pmo_tgt_api.h" @@ -695,4 +697,7 @@ static inline void pmo_get_event_bitmap_idx(WOW_WAKE_EVENT_TYPE event, * Return: number of WoW filters supported */ uint8_t pmo_get_num_wow_filters(struct wlan_objmgr_psoc *psoc); + +#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ + #endif /* end of _WLAN_PMO_WOW_H_ */