瀏覽代碼

qcacld-3.0: Remove gLimTdlsLinkMode from struct sAniSirLim

The LIM context contains a gLimTdlsLinkMode field that is written but
never read. Since that means the field is unused, remove it.

Change-Id: Id1bbcad683b0679184af86a6670fb52397206979
CRs-Fixed: 2369206
Jeff Johnson 6 年之前
父節點
當前提交
5c4fa5e6a5
共有 2 個文件被更改,包括 4 次插入11 次删除
  1. 4 8
      core/mac/inc/ani_global.h
  2. 0 3
      core/mac/src/pe/lim/lim_process_tdls.c

+ 4 - 8
core/mac/inc/ani_global.h

@@ -684,19 +684,15 @@ typedef struct sAniSirLim {
 
 	uint8_t gHTNonGFDevicesPresent;
 
-	/* //////////////////////////////  HT RELATED           ////////////////////////////////////////// */
-
-#ifdef FEATURE_WLAN_TDLS
-	uint8_t gLimTdlsLinkMode;
-	/* //////////////////////////////  TDLS RELATED         ////////////////////////////////////////// */
-#endif
+	/* HT RELATED END */
 
 	/* wsc info required to form the wsc IE */
 	tLimWscIeInfo wscIeInfo;
 	struct pe_session *gpSession;  /* Pointer to  session table */
 	/*
-	 * sessionID and transactionID from SME is stored here for those messages, for which
-	 * there is no session context in PE, e.g. Scan related messages.
+	 * sessionID and transactionID from SME is stored here for
+	 * those messages, for which there is no session context in
+	 * PE, e.g. Scan related messages.
 	 **/
 	uint8_t gSmeSessionId;
 

+ 0 - 3
core/mac/src/pe/lim/lim_process_tdls.c

@@ -2473,11 +2473,9 @@ static void lim_tdls_update_hash_node_info(struct mac_context *mac,
 						   rxHighestDataRate,
 						   htCaps->supportedMCSSet);
 		pStaDs->baPolicyFlag = 0xFF;
-		mac->lim.gLimTdlsLinkMode = TDLS_LINK_MODE_N;
 		pStaDs->ht_caps = pTdlsAddStaReq->htCap.hc_cap;
 	} else {
 		pStaDs->mlmStaContext.htCapability = 0;
-		mac->lim.gLimTdlsLinkMode = TDLS_LINK_MODE_BG;
 	}
 	lim_tdls_populate_dot11f_vht_caps(mac, pTdlsAddStaReq, &vhtCap);
 	pVhtCaps = &vhtCap;
@@ -2503,7 +2501,6 @@ static void lim_tdls_update_hash_node_info(struct mac_context *mac,
 
 		pStaDs->vhtLdpcCapable = pVhtCaps->ldpcCodingCap;
 		pStaDs->vhtBeamFormerCapable = 0;
-		mac->lim.gLimTdlsLinkMode = TDLS_LINK_MODE_AC;
 		pVhtCaps_txbf = (tDot11fIEVHTCaps *) (&pTdlsAddStaReq->vhtCap);
 		pVhtCaps_txbf->suBeamformeeCap = 0;
 		pVhtCaps_txbf->suBeamFormerCap = 0;