From 412686bc01cb1d366030bd0c12108eb89e210055 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Mon, 29 Apr 2019 19:04:25 -0700 Subject: [PATCH] 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 --- core/mac/src/pe/lim/lim_utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 75d2b853a1b3..d8c1a8d9628c 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -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;