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
This commit is contained in:
Jeff Johnson 2018-12-14 22:47:11 -08:00 committed by nshrivas
parent 675e9e135d
commit 5c4fa5e6a5
2 changed files with 4 additions and 11 deletions

View File

@ -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;

View File

@ -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;