mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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
This commit is contained in:
parent
067cd3e3eb
commit
17623642ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue