From 1d893d85b3f4faec07de5a461b912992c61a2096 Mon Sep 17 00:00:00 2001 From: Sandhya Mahadevan Date: Wed, 20 Feb 2019 12:38:18 +0530 Subject: [PATCH] qcacmn: Fix compilation error when WLAN_SUPPORT_GREEN_AP is disabled Problem & Solution: WLAN_SUPPORT_GREEN_AP is enabled by default. cfg_green_ap_params.h file gets included only when this flag is enabled. So, in case of setting WLAN_SUPPORT_GREEN_AP=0, this file need not be included to avoid compilation errors. Change-Id: Id42be740268291c46621198a9c90c5d629a92386 --- cfg/inc/cfg_converged.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cfg/inc/cfg_converged.h b/cfg/inc/cfg_converged.h index a3381776ac..a26ac6d1db 100644 --- a/cfg/inc/cfg_converged.h +++ b/cfg/inc/cfg_converged.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2019 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 @@ -26,7 +26,11 @@ #include #include "cfg_dp.h" #include +#ifdef WLAN_SUPPORT_GREEN_AP #include "cfg_green_ap_params.h" +#else +#define CFG_GREEN_AP_ALL +#endif #include #define CFG_CONVERGED_ALL \