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
Šī revīzija ir iekļauta:
Abhishek Ambure
2020-05-15 20:22:12 +05:30
revīziju iesūtīja nshrivas
vecāks 04f7a32d29
revīzija 23dab4b3a5
4 mainīti faili ar 20 papildinājumiem un 0 dzēšanām

Parādīt failu

@@ -369,6 +369,7 @@ struct wlan_psoc_host_service_ext_param {
* bdf_reg_db_version_minor: BDF REG DB version minor number
* @num_dbr_ring_caps: Number of direct buf rx ring capabilities
* @chwidth_num_peer_caps: Peer limit for peer_chan_width_switch WMI cmd
* @max_ndp_sessions: Max number of ndp session fw supports
*/
struct wlan_psoc_host_service_ext2_param {
uint8_t reg_db_version_major;
@@ -377,6 +378,7 @@ struct wlan_psoc_host_service_ext2_param {
uint8_t bdf_reg_db_version_minor;
uint32_t num_dbr_ring_caps;
uint32_t chwidth_num_peer_caps;
uint32_t max_ndp_sessions;
};
#endif /* _SERVICE_READY_PARAM_H_*/

Parādīt failu

@@ -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",