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
parent 17f0046990
commit a6afc073d0
6 changed files with 69 additions and 1 deletions

View File

@@ -54,6 +54,8 @@ static void nan_cfg_init(struct wlan_objmgr_psoc *psoc,
nan_obj->cfg_param.ndp_keep_alive_period =
cfg_get(psoc,
CFG_NDP_KEEP_ALIVE_PERIOD);
nan_obj->cfg_param.max_ndp_sessions = cfg_get(psoc,
CFG_NDP_MAX_SESSIONS);
}
/**