Browse Source

qcacld-3.0: Set TDLS max AMPDU size to 7 if vht capable

Set TDLS max AMPDU size to 7 (1048575) if vht capable, in previous
design, it's set to 3 (65535) even with vht capable. Fix TDLS
throughput issue on 5G VHT80.

Change-Id: Ieaf465e87d239aa853dd16c458c11721d11e3550
CRs-Fixed: 2380621
hangtian 6 years ago
parent
commit
d152e8da67
1 changed files with 5 additions and 1 deletions
  1. 5 1
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 5 - 1
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -2424,7 +2424,11 @@ lim_add_sta(struct mac_context *mac_ctx,
 	if (STA_ENTRY_TDLS_PEER == sta_ds->staType) {
 		add_sta_params->ht_caps = sta_ds->ht_caps;
 		add_sta_params->vht_caps = sta_ds->vht_caps;
-
+		if (add_sta_params->vhtCapable) {
+			add_sta_params->maxAmpduSize =
+				SIR_MAC_GET_VHT_MAX_AMPDU_EXPO(
+						sta_ds->vht_caps);
+		}
 		pe_debug("Sta type is TDLS_PEER, ht_caps: 0x%x, vht_caps: 0x%x",
 			  add_sta_params->ht_caps,
 			  add_sta_params->vht_caps);