Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad79a12e authored by Madhvapathi Sriram's avatar Madhvapathi Sriram Committed by Madan Koyyalamudi
Browse files

qcacmn: Initialize wlan config structure

When RRI over DDR feature is not enabled,
the variable rri_over_ddr_cfg_valid goes uninitialzed.
This can lead to unpredictable behaviour.

Fix this by initializing pld_wlan_enable_cfg to zero
before use.

Change-Id: I485dc552201111834375411b9a493ddbf9a7505c
CRs-Fixed: 3176497
parent 2c7cff87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3163,7 +3163,7 @@ static void hif_update_rri_over_ddr_config(struct hif_softc *scn,
 */
int hif_wlan_enable(struct hif_softc *scn)
{
	struct pld_wlan_enable_cfg cfg;
	struct pld_wlan_enable_cfg cfg = { 0 };
	enum pld_driver_mode mode;
	uint32_t con_mode = hif_get_conparam(scn);