Selaa lähdekoodia

qcacld-3.0: Remove timWaitCount from tAniSirDph

The timWaitCount field in tAniSirDph is initialized but never read.
Since it is ultimately unused, remove it.

Change-Id: I98795820caf8087f225b3835e531790d2d1f167e
CRs-Fixed: 2374279
Jeff Johnson 6 vuotta sitten
vanhempi
sitoutus
4377eba726

+ 1 - 3
core/mac/src/include/dph_global.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -124,8 +124,6 @@ typedef struct sDphHashNode {
 	uint8_t staAuthenticated:1;
 	uint8_t fAniCount:1;
 	uint8_t rmfEnabled:1;
-	/* Number of Tim to wait if the STA doesn't respond / fetch data */
-	uint8_t timWaitCount;
 	/* Fragmentation size */
 	uint16_t fragSize;
 	/* Taurus capabilities */

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

@@ -54,10 +54,6 @@
  */
 #define LIM_MIN_TIM_WAIT_COUNT          50
 
-#define GET_TIM_WAIT_COUNT(LIntrvl) \
-	((LIntrvl * LIM_TIM_WAIT_COUNT_FACTOR) > LIM_MIN_TIM_WAIT_COUNT ? \
-	(LIntrvl * LIM_TIM_WAIT_COUNT_FACTOR) : LIM_MIN_TIM_WAIT_COUNT)
-
 #ifdef CHANNEL_HOPPING_ALL_BANDS
 #define CHAN_HOP_ALL_BANDS_ENABLE        1
 #else

+ 1 - 5
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -1432,10 +1432,6 @@ static bool lim_update_sta_ds(struct mac_context *mac_ctx, tpSirMacMgmtHdr hdr,
 	 * and disassociates it
 	 */
 
-	/* timWaitCount used by PMM for monitoring the STA's in PS for LINK */
-	sta_ds->timWaitCount =
-		(uint8_t) GET_TIM_WAIT_COUNT(assoc_req->listenInterval);
-
 	/* Init the Current successful MPDU's tranfered to this STA count = 0 */
 	sta_ds->curTxMpduCnt = 0;