浏览代码

qcacld-3.0: Fix get channel list with existing connections

Reinitialize pcl_weight index in policy_mgr_get_channel_list
for correct connection count.

Change-Id: I96d38f1cb29014517f2c22e360db5d942eb66519
CRs-Fixed: 2589478
Manikandan Mohan 5 年之前
父节点
当前提交
14d2bf80b3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

+ 1 - 0
components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

@@ -2093,6 +2093,7 @@ QDF_STATUS policy_mgr_get_channel_list(struct wlan_objmgr_psoc *psoc,
 
 
 	num_channels = 0;
 	num_channels = 0;
 	sbs_num_channels = 0;
 	sbs_num_channels = 0;
+	i = 0;
 	/* In the below switch case, the channel list is populated based on the
 	/* In the below switch case, the channel list is populated based on the
 	 * pcl. e.g., if the pcl is PM_SCC_CH_24G, the SCC channel group is
 	 * pcl. e.g., if the pcl is PM_SCC_CH_24G, the SCC channel group is
 	 * populated first followed by the 2.4GHz channel group. Along with
 	 * populated first followed by the 2.4GHz channel group. Along with