From a1863be43c0ff8b1348946503d073aaf7f66fc79 Mon Sep 17 00:00:00 2001 From: Yingying Tang Date: Wed, 22 Mar 2017 18:10:43 +0800 Subject: [PATCH] qcacld-3.0: Fix compilation error when FEATURE_WLAN_TDLS is disabled STA_ENTRY_TDLS_PEER is used out of FEATURE_WLAN_TDLS, compilation will fail when disable FEATURE_WLAN_TDLS. Add fix to resolve this issue. Change-Id: I2e4766ba3f7810038304d22c4dee1035284b3e05 CRs-Fixed: 2023187 --- core/mac/src/pe/lim/lim_assoc_utils.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c index aa8ecb06fca5..2970687b35ef 100644 --- a/core/mac/src/pe/lim/lim_assoc_utils.c +++ b/core/mac/src/pe/lim/lim_assoc_utils.c @@ -63,6 +63,12 @@ #include "lim_types.h" #include "wlan_utility.h" +#ifdef FEATURE_WLAN_TDLS +#define IS_TDLS_PEER(type) ((type) == STA_ENTRY_TDLS_PEER) +#else +#define IS_TDLS_PEER(type) 0 +#endif + /** * lim_cmp_ssid() - utility function to compare SSIDs * @rx_ssid: Received SSID @@ -2582,7 +2588,7 @@ lim_del_sta(tpAniSirGlobal pMac, if (!fRespReqd) pDelStaParams->respReqd = 0; else { - if (pStaDs->staType != STA_ENTRY_TDLS_PEER) { + if (!(IS_TDLS_PEER(pStaDs->staType))) { /* when lim_del_sta is called from processSmeAssocCnf * then mlmState is already set properly. */ if (eLIM_MLM_WT_ASSOC_DEL_STA_RSP_STATE !=