From 5c4fa5e6a54cda340ebd8ae46f9e9354dbd735c0 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 14 Dec 2018 22:47:11 -0800 Subject: [PATCH] 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 --- core/mac/inc/ani_global.h | 12 ++++-------- core/mac/src/pe/lim/lim_process_tdls.c | 3 --- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/core/mac/inc/ani_global.h b/core/mac/inc/ani_global.h index 7658d7d0080a4..adada452f78a5 100644 --- a/core/mac/inc/ani_global.h +++ b/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; diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index 93a723f70ac70..521e75c06bd12 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/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;