wlan: Remove unused gLimSendDisassocFrameThresholdTimer timer
Remove the unwanted timer and its related code.
Change-Id: I2484daa08c66fd6df5440513cae5eab04df26f25
CRs-Fixed: 658580
diff --git a/CORE/MAC/inc/aniGlobal.h b/CORE/MAC/inc/aniGlobal.h
index d810a7e..6526cdc 100644
--- a/CORE/MAC/inc/aniGlobal.h
+++ b/CORE/MAC/inc/aniGlobal.h
@@ -208,9 +208,6 @@
// CNF_WAIT timer
TX_TIMER *gpLimCnfWaitTimer;
- // Send Disassociate frame threshold parameters
- TX_TIMER gLimSendDisassocFrameThresholdTimer;
-
TX_TIMER gLimAddtsRspTimer; // max wait for a response
// Update OLBC Cache Timer
@@ -702,10 +699,6 @@
// Place holder for Pre-authentication node list
struct tLimPreAuthNode * pLimPreAuthList;
- // Send Disassociate frame threshold parameters
- tANI_U16 gLimDisassocFrameThreshold;
- tANI_U16 gLimDisassocFrameCredit;
-
// Assoc or ReAssoc Response Data/Frame
void *gLimAssocResponseData;
diff --git a/CORE/MAC/src/include/sirParams.h b/CORE/MAC/src/include/sirParams.h
index 0168058..f7090d3 100644
--- a/CORE/MAC/src/include/sirParams.h
+++ b/CORE/MAC/src/include/sirParams.h
@@ -695,7 +695,6 @@
#define SIR_LIM_PROBE_HB_FAILURE_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0xB)
#define SIR_LIM_ADDTS_RSP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0xC)
#define SIR_LIM_LINK_TEST_DURATION_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x13)
-#define SIR_LIM_HASH_MISS_THRES_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x16)
#define SIR_LIM_CNF_WAIT_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x17)
#define SIR_LIM_KEEPALIVE_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x18)
#define SIR_LIM_UPDATE_OLBC_CACHEL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x19)
diff --git a/CORE/MAC/src/pe/include/limGlobal.h b/CORE/MAC/src/pe/include/limGlobal.h
index a31351d..8be34bb 100644
--- a/CORE/MAC/src/pe/include/limGlobal.h
+++ b/CORE/MAC/src/pe/include/limGlobal.h
@@ -67,10 +67,6 @@
#define LIM_TX_WQ_EMPTY_SLEEP_NS 100000
-// Sending Disassociate frames threshold
-#define LIM_SEND_DISASSOC_FRAME_THRESHOLD 2
-#define LIM_HASH_MISS_TIMER_MS 10000
-
// Deferred Message Queue Length
#define MAX_DEFERRED_QUEUE_LEN 20
diff --git a/CORE/MAC/src/pe/lim/limApi.c b/CORE/MAC/src/pe/lim/limApi.c
index e0fd4ac..2036399 100644
--- a/CORE/MAC/src/pe/lim/limApi.c
+++ b/CORE/MAC/src/pe/lim/limApi.c
@@ -380,10 +380,6 @@
// Place holder for Pre-authentication node list
pMac->lim.pLimPreAuthList = NULL;
- // Send Disassociate frame threshold parameters
- pMac->lim.gLimDisassocFrameThreshold = LIM_SEND_DISASSOC_FRAME_THRESHOLD;
- pMac->lim.gLimDisassocFrameCredit = 0;
-
//One cache for each overlap and associated case.
vos_mem_set(pMac->lim.protStaOverlapCache,
sizeof(tCacheParams) * LIM_PROT_STA_OVERLAP_CACHE_SIZE, 0);
@@ -1191,7 +1187,6 @@
retStatus = FALSE;
break;
/* May allow following timer messages in sleep mode */
- case SIR_LIM_HASH_MISS_THRES_TIMEOUT:
/* Safe to allow as of today, this triggers background scan
* which will not be started if the device is in power-save mode
diff --git a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c
index 8f072f1..c212b8d 100644
--- a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c
+++ b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c
@@ -1727,16 +1727,6 @@
limTriggerBackgroundScan(pMac);
break;
-
- case SIR_LIM_HASH_MISS_THRES_TIMEOUT:
-
- /*
- ** clear the credit to the send disassociate frame bucket
- **/
-
- pMac->lim.gLimDisassocFrameCredit = 0;
- break;
-
case SIR_LIM_CNF_WAIT_TIMEOUT:
/*
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c
index 1fbbea8..b27ee1e 100644
--- a/CORE/MAC/src/pe/lim/limTimerUtils.c
+++ b/CORE/MAC/src/pe/lim/limTimerUtils.c
@@ -490,27 +490,6 @@
#endif
}
-
- cfgValue = SYS_MS_TO_TICKS(LIM_HASH_MISS_TIMER_MS);
-
- if (tx_timer_create(
- &pMac->lim.limTimers.gLimSendDisassocFrameThresholdTimer,
- "Disassoc throttle TIMEOUT",
- limSendDisassocFrameThresholdHandler,
- SIR_LIM_HASH_MISS_THRES_TIMEOUT,
- cfgValue,
- cfgValue,
- TX_AUTO_ACTIVATE) != TX_SUCCESS)
- {
- /// Could not start Send Disassociate Frame Threshold timer.
- // Log error
- limLog(pMac, LOGP,
- FL("create Disassociate throttle timer failed"));
- goto err_timer;
- }
- PELOG1(limLog(pMac, LOG1,
- FL("Created Disassociate throttle timer "));)
-
/**
* Create keepalive timer and activate it right away for AP role
*/
@@ -745,7 +724,6 @@
tx_timer_delete(&pMac->lim.limTimers.gpLimCnfWaitTimer[i]);
}
tx_timer_delete(&pMac->lim.limTimers.gLimKeepaliveTimer);
- tx_timer_delete(&pMac->lim.limTimers.gLimSendDisassocFrameThresholdTimer);
tx_timer_delete(&pMac->lim.limTimers.gLimBackgroundScanTimer);
tx_timer_delete(&pMac->lim.limTimers.gLimProbeAfterHBTimer);
tx_timer_delete(&pMac->lim.limTimers.gLimHeartBeatTimer);
@@ -2144,41 +2122,6 @@
/**
- * limSendDisassocFrameThresholdHandler()
- *
- *FUNCTION:
- * This function reloads the credit to the send disassociate frame bucket
- *
- *LOGIC:
- *
- *ASSUMPTIONS:
- *
- *NOTE:
- * NA
- *
- * @param
- *
- * @return None
- */
-
-void
-limSendDisassocFrameThresholdHandler(void *pMacGlobal, tANI_U32 param)
-{
- tSirMsgQ msg;
- tANI_U32 statusCode;
- tpAniSirGlobal pMac = (tpAniSirGlobal)pMacGlobal;
-
- msg.type = SIR_LIM_HASH_MISS_THRES_TIMEOUT;
- msg.bodyval = 0;
- msg.bodyptr = NULL;
-
- if ((statusCode = limPostMsgApi(pMac, &msg)) != eSIR_SUCCESS)
- limLog(pMac, LOGE,
- FL("posting to LIM failed, reason=%d"), statusCode);
-
-}
-
-/**
* limAssocCnfWaitTmerHandler()
*
*FUNCTION:
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.h b/CORE/MAC/src/pe/lim/limTimerUtils.h
index 9dc1c41..e623bff 100644
--- a/CORE/MAC/src/pe/lim/limTimerUtils.h
+++ b/CORE/MAC/src/pe/lim/limTimerUtils.h
@@ -100,7 +100,6 @@
void limHeartBeatDeactivateAndChangeTimer(tpAniSirGlobal, tpPESession);
void limReactivateHeartBeatTimer(tpAniSirGlobal, tpPESession);
void limDummyPktExpTimerHandler(void *, tANI_U32);
-void limSendDisassocFrameThresholdHandler(void *, tANI_U32);
void limCnfWaitTmerHandler(void *, tANI_U32);
void limKeepaliveTmerHandler(void *, tANI_U32);
void limDeactivateAndChangePerStaIdTimer(tpAniSirGlobal, tANI_U32, tANI_U16);
diff --git a/CORE/MAC/src/pe/lim/limUtils.c b/CORE/MAC/src/pe/lim/limUtils.c
index cd324fd..26f7120 100644
--- a/CORE/MAC/src/pe/lim/limUtils.c
+++ b/CORE/MAC/src/pe/lim/limUtils.c
@@ -613,8 +613,6 @@
return "SIR_LIM_CHANNEL_SCAN_TIMEOUT";
case SIR_LIM_LINK_TEST_DURATION_TIMEOUT:
return "SIR_LIM_LINK_TEST_DURATION_TIMEOUT";
- case SIR_LIM_HASH_MISS_THRES_TIMEOUT:
- return "SIR_LIM_HASH_MISS_THRES_TIMEOUT";
case SIR_LIM_KEEPALIVE_TIMEOUT:
return "SIR_LIM_KEEPALIVE_TIMEOUT";
case SIR_LIM_UPDATE_OLBC_CACHEL_TIMEOUT:
@@ -1061,12 +1059,6 @@
tx_timer_delete(&pAuthNode->timer);
}
-
-
- // Deactivate and delete Hash Miss throttle timer
- tx_timer_deactivate(&pMac->lim.limTimers.gLimSendDisassocFrameThresholdTimer);
- tx_timer_delete(&pMac->lim.limTimers.gLimSendDisassocFrameThresholdTimer);
-
tx_timer_deactivate(&pMac->lim.limTimers.gLimUpdateOlbcCacheTimer);
tx_timer_delete(&pMac->lim.limTimers.gLimUpdateOlbcCacheTimer);
tx_timer_deactivate(&pMac->lim.limTimers.gLimPreAuthClnupTimer);
diff --git a/CORE/SYS/legacy/src/utils/src/macTrace.c b/CORE/SYS/legacy/src/utils/src/macTrace.c
index 8894f81..ea90f44 100644
--- a/CORE/SYS/legacy/src/utils/src/macTrace.c
+++ b/CORE/SYS/legacy/src/utils/src/macTrace.c
@@ -821,7 +821,6 @@
CASE_RETURN_STRING(SIR_LIM_PROBE_HB_FAILURE_TIMEOUT);
CASE_RETURN_STRING(SIR_LIM_ADDTS_RSP_TIMEOUT );
CASE_RETURN_STRING(SIR_LIM_LINK_TEST_DURATION_TIMEOUT );
- CASE_RETURN_STRING(SIR_LIM_HASH_MISS_THRES_TIMEOUT );
CASE_RETURN_STRING(SIR_LIM_CNF_WAIT_TIMEOUT );
CASE_RETURN_STRING(SIR_LIM_KEEPALIVE_TIMEOUT );
CASE_RETURN_STRING(SIR_LIM_UPDATE_OLBC_CACHEL_TIMEOUT );