qcacmn: Add support to send max ndp sessions to fw

Firmware advertises max number of ndp sessions support in
wmi_service_ready_ext2 event. If the firmware advertised value of
max ndp sessions is non-zero, then host uses a minimum of max ndp
sessions of target_resource_config and firmware advertised max ndp
sessions to configure max ndp sessions in firmware using WMI_INIT_CMD.

Change-Id: Ied6891157ce589e5d36a4f8b9694a95b5c819ad6
CRs-Fixed: 2688393
This commit is contained in:
Abhishek Ambure
2020-05-15 20:22:12 +05:30
کامیت شده توسط nshrivas
والد 04f7a32d29
کامیت 23dab4b3a5
4فایلهای تغییر یافته به همراه20 افزوده شده و 0 حذف شده

مشاهده پرونده

@@ -412,6 +412,10 @@ void init_deinit_prepare_send_init_cmd(
if (ret_val != QDF_STATUS_SUCCESS)
return;
info->wlan_res_cfg.max_ndp_sessions =
QDF_MIN(info->wlan_res_cfg.max_ndp_sessions,
info->service_ext2_param.max_ndp_sessions);
target_if_debug("FW version 0x%x ", info->target_caps.fw_version);
if (init_deinit_is_service_ext_msg(psoc, tgt_hdl) == QDF_STATUS_SUCCESS)
target_if_debug("0x%x\n",