qcacmn: Add Genoa IPA disable info to WMI_INIT_CMDID

For Genoa, the WLAN FW enables IPA by default, if the
IPA is disabled by kernel config, the IPA status is
not same between wlanhost driver and WLAN FW. So add
such info in the first WMI command to let WLAN FW knows
the IPA state from host, and do the according copy engine
initialization, otherwise, the mismatch IPA copy engine
configuration will casue the Genoa FW assert.

Change-Id: Iec2f86ffb40b296c51bee41adc0d895beb200e5c
This commit is contained in:
Chaoli Zhou
2020-01-15 14:26:02 +08:00
gecommit door nshrivas
bovenliggende 984343c2ea
commit 1f6c0cdad8
2 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen

Bestand weergeven

@@ -5165,6 +5165,7 @@ struct wmi_host_fw_abi_ver {
* @three_way_coex_config_legacy_en: enable three way coex legacy feature
* @max_num_group_keys: max number of group keys supported for VLAN
* @re_ul_resp: enable 11ax UL response feature (UL-OFDMA) for repeater
* @ipa_disable: disable IPA feature
*/
typedef struct {
uint32_t num_vdevs;
@@ -5251,6 +5252,7 @@ typedef struct {
bool three_way_coex_config_legacy_en;
uint32_t max_num_group_keys;
uint32_t re_ul_resp;
bool ipa_disable;
} target_resource_config;
/**

Bestand weergeven

@@ -6799,6 +6799,9 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
WMI_RSRC_CFG_FLAG_IPHR_PAD_CONFIG_ENABLE_SET(
resource_cfg->flag1, 1);
WMI_RSRC_CFG_FLAG_IPA_DISABLE_SET(resource_cfg->flag1,
tgt_res_cfg->ipa_disable);
wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg);
resource_cfg->peer_map_unmap_v2_support =
tgt_res_cfg->peer_map_unmap_v2;