Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f880c30b authored by Varun Reddy Yeturu's avatar Varun Reddy Yeturu
Browse files

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
parent 1c32d113
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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
+0 −12
Original line number Diff line number Diff line
@@ -1131,18 +1131,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)) {
+0 −2
Original line number Diff line number Diff line
@@ -393,8 +393,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);