From 31e789e40f8aa6fba86a44fa1dd0460c1f354981 Mon Sep 17 00:00:00 2001 From: Varun Reddy Yeturu Date: Fri, 14 Sep 2018 15:11:46 -0700 Subject: [PATCH] qcacmn: Make policy_mgr_pdev_set_pcl as public API Make policy_mgr_pdev_set_pcl as public API Remove SET PCL for STA vdev from policy manager as it is being done now from the roaming start cmd core function which is csr_roam_offload_scan() Change-Id: I3fc0eb4d37278a67a1f18579cec7d65e491bd967 CRs-Fixed: 2320734 --- inc/wlan_policy_mgr_api.h | 10 ++++++++++ src/wlan_policy_mgr_get_set_utils.c | 12 ------------ src/wlan_policy_mgr_i.h | 2 -- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/inc/wlan_policy_mgr_api.h b/inc/wlan_policy_mgr_api.h index 0fdf5110b199..6cc9fad844a9 100644 --- a/inc/wlan_policy_mgr_api.h +++ b/inc/wlan_policy_mgr_api.h @@ -229,6 +229,16 @@ static inline void policy_mgr_change_sap_channel_with_csa( } #endif +/** + * policy_mgr_pdev_set_pcl() - SET PCL channel list and send to firmware + * @psoc: PSOC object information + * @mode: Adapter mode + * + * Return: None + */ +void policy_mgr_pdev_set_pcl(struct wlan_objmgr_psoc *psoc, + enum QDF_OPMODE mode); + /** * policy_mgr_incr_active_session() - increments the number of active sessions * @psoc: PSOC object information diff --git a/src/wlan_policy_mgr_get_set_utils.c b/src/wlan_policy_mgr_get_set_utils.c index 64ad5c2cdd12..3fdc26773b7b 100644 --- a/src/wlan_policy_mgr_get_set_utils.c +++ b/src/wlan_policy_mgr_get_set_utils.c @@ -1219,18 +1219,6 @@ void policy_mgr_incr_active_session(struct wlan_objmgr_psoc *psoc, policy_mgr_debug("No.# of active sessions for mode %d = %d", mode, pm_ctx->no_of_active_sessions[mode]); - /* - * Get PCL logic makes use of the connection info structure. - * Let us set the PCL to the FW before updating the connection - * info structure about the new connection. - */ - if (mode == QDF_STA_MODE) { - qdf_mutex_release(&pm_ctx->qdf_conc_list_lock); - /* Set PCL of STA to the FW */ - policy_mgr_pdev_set_pcl(psoc, mode); - qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock); - policy_mgr_debug("Set PCL of STA to FW"); - } policy_mgr_incr_connection_count(psoc, session_id); if ((policy_mgr_mode_specific_connection_count( psoc, PM_STA_MODE, NULL) > 0) && (mode != QDF_STA_MODE)) { diff --git a/src/wlan_policy_mgr_i.h b/src/wlan_policy_mgr_i.h index f079276d81fc..31e90e3a6490 100644 --- a/src/wlan_policy_mgr_i.h +++ b/src/wlan_policy_mgr_i.h @@ -423,8 +423,6 @@ void policy_mgr_pdev_set_hw_mode_cb(uint32_t status, enum policy_mgr_conn_update_reason reason, uint32_t session_id, void *context); void policy_mgr_dump_current_concurrency(struct wlan_objmgr_psoc *psoc); -void policy_mgr_pdev_set_pcl(struct wlan_objmgr_psoc *psoc, - enum QDF_OPMODE mode); void policy_mgr_set_pcl_for_existing_combo( struct wlan_objmgr_psoc *psoc, enum policy_mgr_con_mode mode); void pm_dbs_opportunistic_timer_handler(void *data);