diff options
| author | Yingying Tang <yintang@codeaurora.org> | 2017-03-22 18:10:43 +0800 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-03-24 23:18:56 -0700 |
| commit | ded14ab4cef7a7835ac3b52d54fc2347c4448e9c (patch) | |
| tree | a4a49c324716c6a9d0d5af7c8b4995a2594285de | |
| parent | e839ce8be9fa4c17e5db08c6c9da2b8b65cc5731 (diff) | |
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
| -rw-r--r-- | core/mac/src/pe/lim/lim_assoc_utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c index 8ba7c60c1575..99b92b08bdb8 100644 --- a/core/mac/src/pe/lim/lim_assoc_utils.c +++ b/core/mac/src/pe/lim/lim_assoc_utils.c @@ -62,6 +62,12 @@ #include "wma_types.h" #include "lim_types.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 @@ -2571,7 +2577,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 != |
