qcacld-3.0: Update ht cap max amsdu size

When vht cap indicates the vht max MPDU size >= 7991 supported,
ht cap A-MSDU length field should indicate 7935 octets
supported according to 80211 specification.
At present no WMI HT cap defined for ht cap A-MSDU length field
from target.
Fix the issue by override ht amsdu len to 1 if vht max mpdu
len >= 7991 supported by target.

Change-Id: I9d2b8c11e7a27e016f618c1a2c8a380d081a6ba7
CRs-Fixed: 2929148
This commit is contained in:
Liangwei Dong
2021-05-13 12:03:21 +08:00
committed by Madan Koyyalamudi
parent 71b028ca7c
commit edd0baca7d

View File

@@ -3457,7 +3457,8 @@ mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg)
*/
if (vht_cap_info->ampdu_len > cfg->vht_max_mpdu)
vht_cap_info->ampdu_len = cfg->vht_max_mpdu;
if (vht_cap_info->ampdu_len >= 1)
mlme_obj->cfg.ht_caps.ht_cap_info.maximal_amsdu_size = 1;
value = (CFG_VHT_BASIC_MCS_SET_STADEF & VHT_MCS_1x1) |
vht_cap_info->basic_mcs_set;
if (vht_cap_info->enable2x2)