From a14e2e6bdd60009d7f6c188d2071d5bc19222a1c Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Sun, 31 Jan 2021 18:45:52 -0800 Subject: [PATCH] qcacmn: Set SAP and P2P GO D3 wow host WMI resource config Set SAP and P2P GO D3 wow host WMI resource config such that FW is aware of host capability and can allocate memory for sufficient remote peers. Change-Id: I05499f98bd6bc080a9aefb302be12873bf19ac35 CRs-Fixed: 2869055 --- wmi/src/wmi_unified_tlv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 99c51bc27914..ee64ce20229e 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -7409,6 +7409,12 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg, WMI_RSRC_CFG_HOST_SERVICE_FLAG_HOST_SUPPORT_MULTI_RADIO_EVTS_PER_RADIO_SET( resource_cfg->host_service_flags, 1); + if (tgt_res_cfg->is_sap_connected_d3wow_enabled) + WMI_RSRC_CFG_FLAGS2_IS_SAP_CONNECTED_D3WOW_ENABLED_SET( + resource_cfg->flags2, 1); + if (tgt_res_cfg->is_go_connected_d3wow_enabled) + WMI_RSRC_CFG_FLAGS2_IS_GO_CONNECTED_D3WOW_ENABLED_SET( + resource_cfg->flags2, 1); } /* copy_hw_mode_id_in_init_cmd() - Helper routine to copy hw_mode in init cmd