qcacld-3.0: Fix HE capable setting in TDLS setup

Currently HE capable for TDLS peer is set from STA connection
session which sets the TDLS peer HE capability incorrectly.
Set the HE capable setting for TDLS peer from the peer STA
context that has correct value.

Change-Id: I232d32fb45ea5bbe7c2925922de3804e28f888cc
CRs-Fixed: 2441422
This commit is contained in:
Kiran Kumar Lokere 2019-04-29 19:04:25 -07:00 • committed by nshrivas
commit 412686bc01

View file

@ -7144,6 +7144,10 @@ void lim_update_sta_he_capable(struct mac_context *mac,
{
if (LIM_IS_AP_ROLE(session_entry) || LIM_IS_IBSS_ROLE(session_entry))
add_sta_params->he_capable = sta_ds->mlmStaContext.he_capable;
#ifdef FEATURE_WLAN_TDLS
else if (STA_ENTRY_TDLS_PEER == sta_ds->staType)
add_sta_params->he_capable = sta_ds->mlmStaContext.he_capable;
#endif
else
add_sta_params->he_capable = session_entry->he_capable;