From 37bd58f57ade5b98e784a722adfcba34b34b2184 Mon Sep 17 00:00:00 2001 From: bings Date: Thu, 20 Jul 2017 16:49:26 +0800 Subject: [PATCH] qcacld-3.0: Fix connection information deleting and restoring Currently only one connection information corresponding to the provided mode is deleted and restored, which causes channel selecting failure in DFS testing with AP+AP concurrency mode. When radar is found in AP+AP concurrency mode, a new valid channel should be selected. Before selecting the channel, all existing connection information of SAP mode should be deleted, otherwise no valid channel can be selected. All the connection information corresponding to the provided mode should be deleted and restored. Change-Id: Id363dbb2c31485fefcd6915696060923063079bb CRs-Fixed: 2078021 --- core/hdd/src/wlan_hdd_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 3860f6e3be98..dbb01b999128 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6923,7 +6923,8 @@ static uint8_t hdd_get_safe_channel_from_pcl_and_acs_range( status = policy_mgr_get_pcl_for_existing_conn(hdd_ctx->hdd_psoc, PM_SAP_MODE, pcl.pcl_list, &pcl.pcl_len, - pcl.weight_list, QDF_ARRAY_SIZE(pcl.weight_list)); + pcl.weight_list, QDF_ARRAY_SIZE(pcl.weight_list), + false); if (QDF_IS_STATUS_ERROR(status)) { hdd_err("Get PCL failed"); return INVALID_CHANNEL_ID;