Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acadd5b2 authored by abhinav kumar's avatar abhinav kumar Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Properly set htCapable and vhtCapable

In an IOT scenario, client is VHT capable and is carrying
VHT IE in assoc-req frame while our SAP is configured as
HT only.

Key points here are the phymode and vht_flag populated in
WMI_PEER_ASSOC_CMDID.

phymode is set with SAP's own capability taken into considertion
while vht_flag is not. This leads to FW TX data using VHT data
rates.

Fix is to properly set htCapable and vhtCapable with SAP's own
capability taken into considertion.

Change-Id: I7493e90aa744665569093d3a67714c1224d010a0
CRs-Fixed: 2740102
parent 12bcad96
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2170,9 +2170,12 @@ lim_add_sta(struct mac_context *mac_ctx,
	/* Update VHT/HT Capability */
	if (LIM_IS_AP_ROLE(session_entry) ||
	    LIM_IS_IBSS_ROLE(session_entry)) {
		add_sta_params->htCapable = sta_ds->mlmStaContext.htCapability;
		add_sta_params->htCapable =
				sta_ds->mlmStaContext.htCapability &&
				session_entry->htCapability;;
		add_sta_params->vhtCapable =
			 sta_ds->mlmStaContext.vhtCapability;
				sta_ds->mlmStaContext.vhtCapability &&
				session_entry->vhtCapability;
	}
#ifdef FEATURE_WLAN_TDLS
	/* SystemRole shouldn't be matter if staType is TDLS peer */