From b1e6cd3a6624085552a517ec8bacd936db82f704 Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Mon, 16 Jul 2018 17:02:22 -0700 Subject: [PATCH] qcacld-3.0: Fix using uninitialized values in hdd_send_twt_enable_cmd Fix using uninitialized values for req_val, bcast_val and resp_val in the function hdd_send_twt_enable_cmd. Change-Id: Ie671660b62f0624fbf86707f15fe122b81552a53 CRs-Fixed: 2277826 --- core/hdd/src/wlan_hdd_twt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_twt.c b/core/hdd/src/wlan_hdd_twt.c index 7d1250826ac2..b2ba2114d6cc 100644 --- a/core/hdd/src/wlan_hdd_twt.c +++ b/core/hdd/src/wlan_hdd_twt.c @@ -65,7 +65,7 @@ void hdd_update_tgt_twt_cap(struct hdd_context *hdd_ctx, void hdd_send_twt_enable_cmd(struct hdd_context *hdd_ctx) { uint8_t pdev_id = hdd_ctx->hdd_pdev->pdev_objmgr.wlan_pdev_id; - uint32_t req_val, resp_val, bcast_val; + uint32_t req_val = 0, resp_val = 0, bcast_val = 0; uint32_t congestion_timeout = hdd_ctx->config->twt_congestion_timeout; sme_cfg_get_int(hdd_ctx->mac_handle, WNI_CFG_TWT_REQUESTOR, &req_val);