diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index d044154ca3b6..35b30298e255 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -5465,6 +5465,7 @@ struct wmi_host_fw_abi_ver { * @max_frag_entries: Max frag entries * @agile_capability: Target Agile Capability * End common + * @enable_pci_gen: To enable pci gen switch * @max_peer_ext_stats: Max peer EXT stats * @smart_ant_cap: Smart antenna capabilities * @BK_Minfree: BIN configuration for BK traffic @@ -5559,6 +5560,7 @@ typedef struct { uint32_t max_frag_entries; uint32_t scheduler_params; uint32_t agile_capability; + uint32_t enable_pci_gen; /* End common */ /* Added for Beeliner */ diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index bc2a0f147baf..e0fbdad8f12c 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -7289,6 +7289,9 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg, resource_cfg->flag1, 1); if (tgt_res_cfg->cce_disable) WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_SET(resource_cfg->flag1, 1); + if (tgt_res_cfg->enable_pci_gen) + WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_SET( + resource_cfg->flag1, 1); if (tgt_res_cfg->eapol_minrate_set) { WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_SET( resource_cfg->flag1, 1);