Browse Source

qcacld-3.0: Fix uninitialized variable used issue

Fix uninitialized variable used issue for sbs_mac0_modified_pcl

Change-Id: I8be306ab118291923b1c76eb6a84c1e14aacf5e0
CRs-Fixed: 3687569
Prasanna JS 1 năm trước cách đây
mục cha
commit
0bdee78916

+ 2 - 2
components/cmn_services/policy_mgr/src/wlan_policy_mgr_pcl.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -1571,7 +1571,7 @@ static QDF_STATUS policy_mgr_pcl_modification_for_ll_lt_sap(
 	uint32_t pcl_list[NUM_CHANNELS], orig_len = *len;
 	uint8_t weight_list[NUM_CHANNELS];
 	uint32_t i, pcl_len = 0;
-	bool sbs_mac0_modified_pcl;
+	bool sbs_mac0_modified_pcl = false;
 
 	pm_ctx = policy_mgr_get_context(psoc);
 	if (!pm_ctx) {