diff --git a/components/mlme/dispatcher/src/wlan_mlme_api.c b/components/mlme/dispatcher/src/wlan_mlme_api.c index b7cfc206cd1f..fba822e5613d 100644 --- a/components/mlme/dispatcher/src/wlan_mlme_api.c +++ b/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 */ diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index ffa124c48a25..c3fb25262742 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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;