qcacld-3.0: Add support to configure max ndi host supports

Introduce INI "ndi_max_support" to configure max number of ndi
interfaces host supports. Host configures max number of ndi
interfaces support in firmware using WMI_INIT_CMD.

Change-Id: I287b9f96b98103e67cf35d0c02488a28af731044
CRs-Fixed: 2701557
This commit is contained in:
Abhishek Ambure
2020-06-09 21:17:39 +05:30
committed by nshrivas
parent 9b85558666
commit 9e3400ac77
6 changed files with 60 additions and 1 deletions

View File

@@ -84,6 +84,15 @@ QDF_STATUS cfg_nan_get_ndp_keepalive_period(struct wlan_objmgr_psoc *psoc,
QDF_STATUS cfg_nan_get_ndp_max_sessions(struct wlan_objmgr_psoc *psoc,
uint32_t *val);
/**
* cfg_nan_get_max_ndi() - get max number of ndi host supports
* @psoc: pointer to psoc object
* @val: pointer to hold max number of ndi
*
* Return: QDF_STATUS
*/
QDF_STATUS cfg_nan_get_max_ndi(struct wlan_objmgr_psoc *psoc, uint32_t *val);
/**
* cfg_nan_get_support_mp0_discovery() - get value of config support mp0
* discovery
@@ -144,6 +153,12 @@ QDF_STATUS cfg_nan_get_ndp_max_sessions(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS;
}
static inline
QDF_STATUS cfg_nan_get_max_ndi(struct wlan_objmgr_psoc *psoc, uint32_t *val)
{
return QDF_STATUS_SUCCESS;
}
static inline bool cfg_nan_get_support_mp0_discovery(
struct wlan_objmgr_psoc *psoc)
{