qcacmn: Add support for AFC Host service flags
Add support for AFC specific Host service flags to switch between LPI only and SP+LPI, disable AFC timer and request ID checks in target. Change-Id: I34d6adcad6e4a2cd6383c941ed07b98059daeed0
This commit is contained in:

committed by
Madan Koyyalamudi

parent
64da7093a2
commit
7a9dc17c65
@@ -5444,6 +5444,10 @@ struct wmi_host_fw_abi_ver {
|
|||||||
* @is_sap_connected_d3wow_enabled: is sap d3wow with connected client supported
|
* @is_sap_connected_d3wow_enabled: is sap d3wow with connected client supported
|
||||||
* @is_go_connected_d3wow_enabled: is go d3wow with connected client supported
|
* @is_go_connected_d3wow_enabled: is go d3wow with connected client supported
|
||||||
* @dynamic_pcie_gen_speed_change: is dynamic pcie gen speed change enabled
|
* @dynamic_pcie_gen_speed_change: is dynamic pcie gen speed change enabled
|
||||||
|
* @lpi_only_mode: Indicates whether AP is capable of operating in LPI only
|
||||||
|
* mode or both LPI/SP mode
|
||||||
|
* @afc_timer_check_disable: Disables AFC Timer related checks in FW
|
||||||
|
* @afc_req_id_check_disable: Disables AFC Request ID check in FW
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t num_vdevs;
|
uint32_t num_vdevs;
|
||||||
@@ -5557,6 +5561,9 @@ typedef struct {
|
|||||||
bool twt_ack_support_cap;
|
bool twt_ack_support_cap;
|
||||||
uint32_t ema_init_config;
|
uint32_t ema_init_config;
|
||||||
uint32_t target_cap_flags;
|
uint32_t target_cap_flags;
|
||||||
|
bool lpi_only_mode;
|
||||||
|
bool afc_timer_check_disable;
|
||||||
|
bool afc_req_id_check_disable;
|
||||||
} target_resource_config;
|
} target_resource_config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -7586,6 +7586,18 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
|
|||||||
resource_cfg->host_service_flags,
|
resource_cfg->host_service_flags,
|
||||||
tgt_res_cfg->is_reg_cc_ext_event_supported);
|
tgt_res_cfg->is_reg_cc_ext_event_supported);
|
||||||
|
|
||||||
|
WMI_RSRC_CFG_HOST_SERVICE_FLAG_LPI_SP_MODE_SUPPORT_SET(
|
||||||
|
resource_cfg->host_service_flags,
|
||||||
|
tgt_res_cfg->lpi_only_mode);
|
||||||
|
|
||||||
|
WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_AFC_TIMER_CHECK_SET(
|
||||||
|
resource_cfg->host_service_flags,
|
||||||
|
tgt_res_cfg->afc_timer_check_disable);
|
||||||
|
|
||||||
|
WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_AFC_REQ_ID_CHECK_SET(
|
||||||
|
resource_cfg->host_service_flags,
|
||||||
|
tgt_res_cfg->afc_req_id_check_disable);
|
||||||
|
|
||||||
wmi_set_nan_channel_support(resource_cfg);
|
wmi_set_nan_channel_support(resource_cfg);
|
||||||
|
|
||||||
wmi_info("Enable dynamic PCIe gen speed: %d",
|
wmi_info("Enable dynamic PCIe gen speed: %d",
|
||||||
|
Reference in New Issue
Block a user