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
This commit is contained in:
Yingying Tang 2017-03-22 18:10:43 +08:00 • committed by snandini
commit a1863be43c

View file

@ -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 !=