From f235aec96845593c4de83407e5e42632b20f398c Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Wed, 8 Jul 2020 20:23:57 +0530 Subject: [PATCH] qcacld-3.0: Initialize config in sme_update_score_config Initialize the config variable in sme_update_score_config to prevent used of un-initialized variable in the same API. Change-Id: I9a0ca814ffed986f318757a428043d0016d3a6b3 CRs-Fixed: 2726396 --- core/sme/src/common/sme_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 3dd3cbb3c829..4b4e4f1c611b 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -15313,7 +15313,7 @@ void sme_update_score_config(mac_handle_t mac_handle, eCsrPhyMode phy_mode, bool bval = false; uint32_t channel_bonding_mode; QDF_STATUS status; - struct psoc_phy_config config; + struct psoc_phy_config config = {0}; qdf_mem_zero(&vdev_ini_cfg, sizeof(struct wlan_mlme_nss_chains)); /* Populate the nss chain params from ini for this vdev type */