qcacld-3.0: Add ini support to configure max ndp sessions in fw

Introduce INI "ndp_max_sessions" to configure max number of ndp
sessions host supports. Firmware advertises max number of ndp
sessions supported in wmi_service_ready_ext2 event. If the firmware
advertises non-zero value of max ndp sessions then host configures
max ndp sessions support in firmware using WMI_INIT_CMD.

Host uses a minimum of "ndp_max_sessions" value and firmware
advertised max ndp session value to configure max number of ndp
sessions in firmware.

Change-Id: I613815f384f9b0a61711324c85ecfa095d133360
CRs-Fixed: 2673120
This commit is contained in:
Abhishek Ambure
2020-05-15 19:14:24 +05:30
committed by nshrivas
szülő 17f0046990
commit a6afc073d0
6 fájl változott, egészen pontosan 69 új sor hozzáadva és 1 régi sor törölve

Fájl megtekintése

@@ -74,6 +74,16 @@ QDF_STATUS cfg_nan_get_ndp_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
QDF_STATUS cfg_nan_get_ndp_keepalive_period(struct wlan_objmgr_psoc *psoc,
uint16_t *val);
/**
* cfg_nan_get_ndp_max_sessions() - get NDP max sessions host supports
* @psoc: pointer to psoc object
* @val: pointer to hold max ndp sessions
*
* Return: QDF_STATUS
*/
QDF_STATUS cfg_nan_get_ndp_max_sessions(struct wlan_objmgr_psoc *psoc,
uint32_t *val);
/**
* cfg_nan_get_support_mp0_discovery() - get value of config support mp0
* discovery
@@ -127,6 +137,13 @@ QDF_STATUS cfg_nan_get_ndp_keepalive_period(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_SUCCESS;
}
static inline
QDF_STATUS cfg_nan_get_ndp_max_sessions(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)
{