diff options
| author | Bala Venkatesh <bjavvaji@codeaurora.org> | 2017-12-27 17:42:13 +0530 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-12-27 14:16:03 -0800 |
| commit | fa573f3dd89fde064cd0375233ed42bedcac3973 (patch) | |
| tree | 336f75423d0185b3c96261250021d502747e922e | |
| parent | f55f1748273785c79b80504e49f63f764f49c0b1 (diff) | |
qcacld-3.0: 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: 2164235
| -rw-r--r-- | core/cds/src/cds_concurrency.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cds/src/cds_concurrency.c b/core/cds/src/cds_concurrency.c index 77061eefaea2..e1133e17e54c 100644 --- a/core/cds/src/cds_concurrency.c +++ b/core/cds/src/cds_concurrency.c @@ -9913,7 +9913,7 @@ uint8_t cds_get_alternate_channel_for_sap(void) 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 == cds_get_pcl(CDS_SAP_MODE, &pcl_channels[0], &pcl_len, |
