qcacld-3.0: Intersect he_capable from SAP and ref STA

When SAP doesn't support 11ax phymode, ref STA which support
11ax phymode connect to SAP, this will result in firmware crash
due to WMI_PEER_ASSOC_CMDID set peer_flags with WMI_PEER_HE and
peer_phymode set with SAP session phymode which doesn't support
HE capability.

Fix is to intersect he_capable from SAP and ref STA.

Change-Id: I9f63f5474db03e96a404ac86ff7929e8ebabc9f3
CRs-Fixed: 2599957
This commit is contained in:
hqu 2020-01-09 20:02:53 +08:00 committed by nshrivas
parent f6aeae92e0
commit e32e52a575

View File

@ -7160,7 +7160,8 @@ void lim_update_sta_he_capable(struct mac_context *mac,
struct pe_session *session_entry)
{
if (LIM_IS_AP_ROLE(session_entry) || LIM_IS_IBSS_ROLE(session_entry))
add_sta_params->he_capable = sta_ds->mlmStaContext.he_capable;
add_sta_params->he_capable = sta_ds->mlmStaContext.he_capable &&
session_entry->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;