mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Fix uninitialize variables in few policy manager APIs
Few variables are left uninitialized and they are being used
with some random value.
Fix by initializing to default value.
CRs-Fixed: 2232791
Change-Id: I3351cae52c58e963601d53376f42ca8ebf0d3b9a
This commit is contained in:
parent
2923e70b09
commit
af29fe9735
1 changed files with 1 additions and 1 deletions
|
|
@ -1357,7 +1357,7 @@ policy_mgr_get_nondfs_preferred_channel(struct wlan_objmgr_psoc *psoc,
|
|||
* under 5G MCC scenario
|
||||
*/
|
||||
uint8_t channel = PM_24_GHZ_CHANNEL_6;
|
||||
uint32_t i, pcl_len;
|
||||
uint32_t i, pcl_len = 0;
|
||||
|
||||
pm_ctx = policy_mgr_get_context(psoc);
|
||||
if (!pm_ctx) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue