Pārlūkot izejas kodu

qcacld-3.0: PMO feature flag disable (part one)

In case PMO feature flag disable, add this change.

Change-Id: Ib0add24b3eda54d0400f9cf2eff895e28db4de39
CRs-Fixed: 2243950
Wu Gao 6 gadi atpakaļ
vecāks
revīzija
5395a2e179

+ 4 - 0
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 */

+ 5 - 1
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_ */

+ 5 - 1
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_ */
 

+ 5 - 1
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_*/

+ 5 - 1
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_ */

+ 4 - 0
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_ */

+ 5 - 1
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_ */

+ 5 - 1
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_ */

+ 4 - 0
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 */

+ 4 - 0
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_ */
 

+ 4 - 0
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_ */

+ 4 - 0
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_ */

+ 4 - 0
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_ */

+ 5 - 0
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_ */