Browse Source

qcacld-3.0: Remove unused gLimSendDisassocFrameThresholdTimer timer

qcacld-2.0 to qcacld-3.0 propagation

Remove the unwanted timer and its related code.

Change-Id: I469bf11a506a2901eae2865a69b75a058e276e75
CRs-Fixed: 658580
Mahesh A Saptasagar 8 years ago
parent
commit
69129a9307

+ 0 - 7
core/mac/inc/ani_global.h

@@ -290,9 +290,6 @@ typedef struct sLimTimers {
 	/* 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 */
@@ -674,10 +671,6 @@ typedef struct sAniSirLim {
 	/* Place holder for Pre-authentication node list */
 	struct tLimPreAuthNode *pLimPreAuthList;
 
-	/* Send Disassociate frame threshold parameters */
-	uint16_t gLimDisassocFrameThreshold;
-	uint16_t gLimDisassocFrameCredit;
-
 	/* Assoc or ReAssoc Response Data/Frame */
 	void *gLimAssocResponseData;
 

+ 0 - 1
core/mac/src/include/sir_params.h

@@ -695,7 +695,6 @@ typedef struct sSirMbMsgP2p {
 #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)
 /* currently unused			(SIR_LIM_TIMEOUT_MSG_START + 0x18) */
 #define SIR_LIM_UPDATE_OLBC_CACHEL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x19)

+ 0 - 4
core/mac/src/pe/include/lim_global.h

@@ -51,10 +51,6 @@
 #include "dot11f.h"
 #include "wma_if.h"
 
-/* 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                  80
 

+ 0 - 5
core/mac/src/pe/lim/lim_api.c

@@ -285,11 +285,6 @@ static void __lim_init_assoc_vars(tpAniSirGlobal pMac)
 	/* 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. */
 	qdf_mem_set(pMac->lim.protStaOverlapCache,
 		    sizeof(tCacheParams) * LIM_PROT_STA_OVERLAP_CACHE_SIZE, 0);

+ 0 - 2
core/mac/src/pe/lim/lim_process_message_queue.c

@@ -1656,8 +1656,6 @@ static void lim_process_messages(tpAniSirGlobal mac_ctx, tpSirMsgQ msg)
 	case SIR_LIM_PROBE_HB_FAILURE_TIMEOUT:
 		lim_handle_heart_beat_failure_timeout(mac_ctx);
 		break;
-	case SIR_LIM_HASH_MISS_THRES_TIMEOUT:
-		mac_ctx->lim.gLimDisassocFrameCredit = 0;
 		break;
 	case SIR_LIM_CNF_WAIT_TIMEOUT:
 		/* Does not receive CNF or dummy packet */

+ 0 - 51
core/mac/src/pe/lim/lim_timer_utils.c

@@ -265,20 +265,6 @@ uint32_t lim_create_timers(tpAniSirGlobal pMac)
 		if (false == lim_create_non_ap_timers(pMac))
 			goto err_timer;
 
-	cfgValue = SYS_MS_TO_TICKS(LIM_HASH_MISS_TIMER_MS);
-
-	if (tx_timer_create(pMac,
-		&pMac->lim.limTimers.gLimSendDisassocFrameThresholdTimer,
-		"Disassoc throttle TIMEOUT",
-		lim_send_disassoc_frame_threshold_handler,
-		SIR_LIM_HASH_MISS_THRES_TIMEOUT, cfgValue, cfgValue,
-		TX_AUTO_ACTIVATE) != TX_SUCCESS) {
-		lim_log(pMac, LOGP,
-			FL("create Disassociate throttle timer failed"));
-		goto err_timer;
-	}
-	PELOG1(lim_log(pMac, LOG1, FL("Created Disassociate throttle timer "));)
-
 	/* Create all CNF_WAIT Timers upfront */
 	if (wlan_cfg_get_int(pMac, WNI_CFG_WT_CNF_TIMEOUT, &cfgValue)
 		!= eSIR_SUCCESS) {
@@ -409,8 +395,6 @@ err_timer:
 	while (((int32_t)-- i) >= 0) {
 		tx_timer_delete(&pMac->lim.limTimers.gpLimCnfWaitTimer[i]);
 	}
-	tx_timer_delete(&pMac->lim.limTimers.
-			gLimSendDisassocFrameThresholdTimer);
 	tx_timer_delete(&pMac->lim.limTimers.gLimProbeAfterHBTimer);
 	tx_timer_delete(&pMac->lim.limTimers.gLimAuthFailureTimer);
 	tx_timer_delete(&pMac->lim.limTimers.gLimAddtsRspTimer);
@@ -1220,41 +1204,6 @@ void lim_activate_auth_rsp_timer(tpAniSirGlobal pMac, tLimPreAuthNode *pAuthNode
 	}
 }
 
-/**
- * lim_send_disassoc_frame_threshold_handler()
- *
- ***FUNCTION:
- *        This function reloads the credit to the send disassociate frame bucket
- *
- ***LOGIC:
- *
- ***ASSUMPTIONS:
- *
- ***NOTE:
- * NA
- *
- * @param
- *
- * @return None
- */
-
-void lim_send_disassoc_frame_threshold_handler(void *pMacGlobal, uint32_t param)
-{
-	tSirMsgQ msg;
-	uint32_t statusCode;
-	tpAniSirGlobal pMac = (tpAniSirGlobal) pMacGlobal;
-
-	msg.type = SIR_LIM_HASH_MISS_THRES_TIMEOUT;
-	msg.bodyval = 0;
-	msg.bodyptr = NULL;
-
-	statusCode = lim_post_msg_api(pMac, &msg);
-	if (statusCode != eSIR_SUCCESS)
-		lim_log(pMac, LOGE,
-			FL("posting to LIM failed, reason=%d"), statusCode);
-
-}
-
 /**
  * limAssocCnfWaitTmerHandler()
  *

+ 0 - 1
core/mac/src/pe/lim/lim_timer_utils.h

@@ -83,7 +83,6 @@ void limReassocFailureTimerHandler(void *, uint32_t);
 
 void lim_deactivate_and_change_timer(tpAniSirGlobal, uint32_t);
 void limDummyPktExpTimerHandler(void *, uint32_t);
-void lim_send_disassoc_frame_threshold_handler(void *, uint32_t);
 void lim_cnf_wait_tmer_handler(void *, uint32_t);
 void lim_deactivate_and_change_per_sta_id_timer(tpAniSirGlobal, uint32_t, uint16_t);
 void lim_activate_cnf_timer(tpAniSirGlobal, uint16_t, tpPESession);

+ 0 - 6
core/mac/src/pe/lim/lim_utils.c

@@ -663,12 +663,6 @@ void lim_cleanup_mlm(tpAniSirGlobal mac_ctx)
 				n++)
 			tx_timer_delete(&pAuthNode[n]->timer);
 
-		/* Deactivate and delete Hash Miss throttle timer */
-		tx_timer_deactivate(&lim_timer->
-				gLimSendDisassocFrameThresholdTimer);
-		tx_timer_delete(&lim_timer->
-				gLimSendDisassocFrameThresholdTimer);
-
 		tx_timer_deactivate(&lim_timer->gLimUpdateOlbcCacheTimer);
 		tx_timer_delete(&lim_timer->gLimUpdateOlbcCacheTimer);
 		tx_timer_deactivate(&lim_timer->gLimPreAuthClnupTimer);

+ 0 - 1
core/mac/src/sys/legacy/src/utils/src/mac_trace.c

@@ -681,7 +681,6 @@ uint8_t *mac_trace_get_lim_msg_string(uint16_t lim_msg)
 		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_UPDATE_OLBC_CACHEL_TIMEOUT);
 		CASE_RETURN_STRING(SIR_LIM_CHANNEL_SWITCH_TIMEOUT);