qcacld-3.0: Update rx ldpc capability based on ini configuration

Update rx ldpc capability based on ini
configuration(gEnableRXLDPC).

Change-Id: Ic160850f4fbba19a8faebc7f0c0545f21834de93
CRs-Fixed: 2677946
This commit is contained in:
Nirav Shah 2020-05-04 12:31:20 +05:30 • committed by nshrivas
commit 5537b67b89
2 changed files with 3 additions and 2 deletions

View file

@ -3147,7 +3147,7 @@ mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg)
/* Set HW RX LDPC capability */
hw_rx_ldpc_enabled = !!cfg->vht_rx_ldpc;
if (hw_rx_ldpc_enabled != vht_cap_info->ldpc_coding_cap)
if (vht_cap_info->ldpc_coding_cap && !hw_rx_ldpc_enabled)
vht_cap_info->ldpc_coding_cap = hw_rx_ldpc_enabled;
/* set the Guard interval 80MHz */

View file

@ -1753,7 +1753,8 @@ static void hdd_update_tgt_ht_cap(struct hdd_context *hdd_ctx,
ht_cap_info.rx_stbc = cfg->ht_rx_stbc;
/* Set the LDPC capability */
ht_cap_info.adv_coding_cap = cfg->ht_rx_ldpc;
if (ht_cap_info.adv_coding_cap && !cfg->ht_rx_ldpc)
ht_cap_info.adv_coding_cap = cfg->ht_rx_ldpc;
if (ht_cap_info.short_gi_20_mhz && !cfg->ht_sgi_20)
ht_cap_info.short_gi_20_mhz = cfg->ht_sgi_20;