summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Ahuja <sahuja@qti.qualcomm.com>2014-02-28 14:57:16 +0530
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-03-03 10:38:29 -0800
commit495294b897954b4233c19ca8b19ecf9ef94e5c95 (patch)
tree7413702666ec78572622a1ccf938b91bf0903e77
parentd2940bc6f89ba39cddbcf67a39fdac6f9b46046d (diff)
Revert "Fix for Host does not send out TDLS discovery req"
This gerrit along with gerrit 635334 is causing the regression during connect/disconnect in STA mode. So reverting this gerrit. This reverts commit 5bdd3711910cf55296a901005c7eafebdc381696. Change-Id: Ia1865b83a0867a41a0b3673dd58fde12b7f98f62 CRs-Fixed: 607053
-rw-r--r--CORE/MAC/src/dph/dphHashTable.c46
1 files changed, 4 insertions, 42 deletions
diff --git a/CORE/MAC/src/dph/dphHashTable.c b/CORE/MAC/src/dph/dphHashTable.c
index 0a98194df695..c94290236a20 100644
--- a/CORE/MAC/src/dph/dphHashTable.c
+++ b/CORE/MAC/src/dph/dphHashTable.c
@@ -67,20 +67,12 @@ void dphHashTableClassInit(tpAniSirGlobal pMac, dphHashTableClass* pDphHashTable
{
tANI_U16 i;
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- for (i=0; i <= pDphHashTable->size; i++)
-#else
- for (i=0; i < pDphHashTable->size; i++)
-#endif
+ for (i=0; i<pDphHashTable->size; i++)
{
pDphHashTable->pHashTable[i] = 0;
}
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- for (i=0; i <= pDphHashTable->size; i++)
-#else
- for (i=0; i < pDphHashTable->size; i++)
-#endif
+ for (i=0; i<pDphHashTable->size; i++)
{
pDphHashTable->pDphNodeArray[i].valid = 0;
pDphHashTable->pDphNodeArray[i].added = 0;
@@ -173,11 +165,7 @@ tpDphHashNode dphLookupHashEntry(tpAniSirGlobal pMac, tANI_U8 staAddr[], tANI_U1
tpDphHashNode dphGetHashEntry(tpAniSirGlobal pMac, tANI_U16 peerIdx, dphHashTableClass* pDphHashTable)
{
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- if (peerIdx <= pDphHashTable->size)
-#else
if (peerIdx < pDphHashTable->size)
-#endif
{
if (pDphHashTable->pDphNodeArray[peerIdx].added)
return &pDphHashTable->pDphNodeArray[peerIdx];
@@ -219,11 +207,7 @@ tpDphHashNode dphLookupAssocId(tpAniSirGlobal pMac, tANI_U16 staIdx, tANI_U16*
{
tANI_U8 i;
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- for (i=0; i <= pDphHashTable->size; i++)
-#else
- for (i=0; i < pDphHashTable->size; i++)
-#endif
+ for(i=0; i<pDphHashTable->size; i++)
{
if( (pDphHashTable->pDphNodeArray[i].added) &&
(pDphHashTable->pDphNodeArray[i].staIndex == staIdx))
@@ -233,11 +217,7 @@ tpDphHashNode dphLookupAssocId(tpAniSirGlobal pMac, tANI_U16 staIdx, tANI_U16*
}
}
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- if (i == pDphHashTable->size+1)
-#else
- if (i == pDphHashTable->size)
-#endif
+ if(i==pDphHashTable->size)
return NULL;
return &pDphHashTable->pDphNodeArray[i];
@@ -266,11 +246,7 @@ tpDphHashNode dphInitStaState(tpAniSirGlobal pMac, tSirMacAddr staAddr,
tpDphHashNode pStaDs;
tANI_U16 staIdx = HAL_STA_INVALID_IDX;
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- if (assocId > pDphHashTable->size)
-#else
if (assocId >= pDphHashTable->size)
-#endif
{
PELOGE(limLog(pMac, LOGE, FL("Invalid Assoc Id %d"), assocId);)
return NULL;
@@ -340,17 +316,7 @@ tpDphHashNode dphAddHashEntry(tpAniSirGlobal pMac, tSirMacAddr staAddr, tANI_U16
assocId, index);
dphPrintMacAddr(pMac, staAddr, LOG1);)
- /* In station role, DPH_STA_HASH_INDEX_PEER (index 1) is reserved for peer
- * station index corresponding to AP.Avoid choosing that index and get
- * index starting from (DPH_STA_HASH_INDEX_PEER + 1) (index 2) for TDLS
- * stations; as a result the peer index or associd can be equal to
- * pDphHashTable->size so for TDLS+CLD modifying the condition
- */
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- if (assocId > pDphHashTable->size)
-#else
if (assocId >= pDphHashTable->size)
-#endif
{
PELOGE(limLog(pMac, LOGE, FL("invalid STA id %d"), assocId);)
return NULL;
@@ -427,11 +393,7 @@ tSirRetStatus dphDeleteHashEntry(tpAniSirGlobal pMac, tSirMacAddr staAddr, tANI_
assocId, index);
dphPrintMacAddr(pMac, staAddr, LOG1);)
-#if defined(FEATURE_WLAN_TDLS) && defined(QCA_WIFI_2_0)
- if (assocId > pDphHashTable->size)
-#else
if (assocId >= pDphHashTable->size)
-#endif
{
PELOGE(limLog(pMac, LOGE, FL("invalid STA id %d"), assocId);)
return eSIR_FAILURE;