qcacmn: Green AP UMAC componentization

Add APIs, structures for Green AP component.

Change-Id: I4a39470104c89c20eec5440b7ae251a764151fd5
CRs-Fixed: 2166428
This commit is contained in:
Himanshu Agarwal 2018-01-10 14:21:53 +05:30 • committed by snandini
commit 0c738b7b02
2 changed files with 30 additions and 1 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@ -970,6 +970,19 @@ QDF_STATUS policy_mgr_get_channel_from_scan_result(
struct wlan_objmgr_psoc *psoc,
void *roam_profile, uint8_t *channel);
/**
* policy_mgr_mode_specific_num_open_sessions() - to get number of open sessions
* for a specific mode
* @psoc: PSOC object information
* @mode: device mode
* @num_sessions: to store num open sessions
*
* Return: QDF_STATUS
*/
QDF_STATUS policy_mgr_mode_specific_num_open_sessions(
struct wlan_objmgr_psoc *psoc, enum QDF_OPMODE mode,
uint8_t *num_sessions);
/**
* policy_mgr_concurrent_open_sessions_running() - Checks for
* concurrent open session

View file

@ -2053,6 +2053,22 @@ enum policy_mgr_con_mode policy_mgr_convert_device_mode_to_qdf_type(
return mode;
}
QDF_STATUS policy_mgr_mode_specific_num_open_sessions(
struct wlan_objmgr_psoc *psoc, enum QDF_OPMODE mode,
uint8_t *num_sessions)
{
struct policy_mgr_psoc_priv_obj *pm_ctx;
pm_ctx = policy_mgr_get_context(psoc);
if (!pm_ctx) {
policy_mgr_err("Invalid context");
return QDF_STATUS_E_FAILURE;
}
*num_sessions = pm_ctx->no_of_open_sessions[mode];
return QDF_STATUS_SUCCESS;
}
/**
* policy_mgr_concurrent_open_sessions_running() - Checks for
* concurrent open session