From 17623642ea50ef76c55af78424c4a20f85ed561f Mon Sep 17 00:00:00 2001 From: Bala Venkatesh Date: Thu, 28 Dec 2017 11:31:57 +0530 Subject: [PATCH] qcacmn: Initialize pcl length to 0 in cds_get_alternate_channel_for_sap When number of connections is more than 2 then the pcl length will be garbage value. Initialize the pcl length with 0 to avoid wrong channel list initialization. Change-Id: If08dc2670ff5ff296220d6ad68766becb252fab7 CRs-Fixed: 2164773 --- src/wlan_policy_mgr_pcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wlan_policy_mgr_pcl.c b/src/wlan_policy_mgr_pcl.c index 11a4b32598e5..a8118a10a151 100644 --- a/src/wlan_policy_mgr_pcl.c +++ b/src/wlan_policy_mgr_pcl.c @@ -1706,7 +1706,7 @@ uint8_t policy_mgr_get_alternate_channel_for_sap( uint8_t pcl_channels[QDF_MAX_NUM_CHAN]; uint8_t pcl_weight[QDF_MAX_NUM_CHAN]; uint8_t channel = 0; - uint32_t pcl_len; + uint32_t pcl_len = 0; if (QDF_STATUS_SUCCESS == policy_mgr_get_pcl(psoc, PM_SAP_MODE, &pcl_channels[0], &pcl_len,