Bladeren bron

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
Nirav Shah 4 jaren geleden
bovenliggende
commit
5537b67b89
2 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 1 1
      components/mlme/dispatcher/src/wlan_mlme_api.c
  2. 2 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
components/mlme/dispatcher/src/wlan_mlme_api.c

@@ -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 */

+ 2 - 1
core/hdd/src/wlan_hdd_main.c

@@ -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;