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
This commit is contained in:
Varun Reddy Yeturu 2018-09-14 15:11:46 -07:00 • committed by nshrivas
commit 31e789e40f
3 changed files with 10 additions and 14 deletions

View file

@ -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

View file

@ -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)) {

View file

@ -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);