From ff35d3c8be5fc35bc0d687a1b7b8b1a4c3196e10 Mon Sep 17 00:00:00 2001 From: Rachit Kankane Date: Thu, 14 Feb 2019 14:20:01 +0530 Subject: [PATCH] qcacld-3.0: decrement active sessions count Decrement active session count to be in sync with total no of active connection when existing AP is moving to STA's channel to achieve SCC. Change-Id: Id1b599bc53768ddf6b62efbd2dc2a3003c0ad0b8 CRs-Fixed: 2400564 --- components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c index 986ac3029593..bfd4f2af8299 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c @@ -696,6 +696,7 @@ void policy_mgr_store_and_del_conn_info(struct wlan_objmgr_psoc *psoc, info[found_index].vdev_id, info[found_index].mode, info[found_index].vdev_id, conn_index); + pm_ctx->no_of_active_sessions[info->mode]--; found_index++; if (all_matching_cxn_to_del) continue; @@ -755,6 +756,7 @@ void policy_mgr_store_and_del_conn_info_by_vdev_id( */ if (*num_cxn_del == 1) { *info = pm_conc_connection_list[conn_index]; + pm_ctx->no_of_active_sessions[info->mode]--; /* Deleting the connection entry */ policy_mgr_decr_connection_count( psoc, @@ -802,6 +804,7 @@ void policy_mgr_restore_deleted_conn_info(struct wlan_objmgr_psoc *psoc, qdf_mem_copy(&pm_conc_connection_list[conn_index], info, num_cxn_del * sizeof(*info)); + pm_ctx->no_of_active_sessions[info->mode] += num_cxn_del; qdf_mutex_release(&pm_ctx->qdf_conc_list_lock); policy_mgr_debug("Restored the deleleted conn info, vdev:%d, index:%d",