mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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
This commit is contained in:
parent
0237690ac4
commit
bfbec06c8a
1 changed files with 5 additions and 2 deletions
|
|
@ -2202,9 +2202,12 @@ lim_add_sta(struct mac_context *mac_ctx,
|
|||
|
||||
/* Update VHT/HT Capability */
|
||||
if (LIM_IS_AP_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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue