Browse Source

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
Yingying Tang 8 years ago
parent
commit
a1863be43c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 7 - 1
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 !=