qcacmn: Add the support for SAE EAPOL handshake offload

Set the SAE EAPOL offload support in resource config based on
WMI_SERVICE_SAE_EAPOL_OFFLOAD_SUPPORT bit received in service
bitmap from Firmware.

Change-Id: I878736105c070df514dfe8d989541227b3baad11
CRs-Fixed: 2957082
This commit is contained in:
Srikanth Marepalli
2021-05-27 21:17:48 +05:30
committed by Madan Koyyalamudi
parent 25acb759bf
commit 6a7cbdde53
2 changed files with 8 additions and 0 deletions

View File

@@ -5201,6 +5201,7 @@ typedef enum {
#ifdef WLAN_FEATURE_BIG_DATA_STATS
wmi_service_big_data_support,
#endif
wmi_service_sae_eapol_offload_support,
wmi_services_max,
} wmi_conv_service_ids;
#define WMI_SERVICE_UNAVAILABLE 0xFFFF
@@ -5457,6 +5458,7 @@ typedef struct {
bool carrier_vow_optimization;
uint32_t is_sap_connected_d3wow_enabled;
uint32_t is_go_connected_d3wow_enabled;
bool sae_eapol_offload;
} target_resource_config;
/**

View File

@@ -7546,6 +7546,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
WMI_RSRC_CFG_FLAGS2_IS_GO_CONNECTED_D3WOW_ENABLED_SET(
resource_cfg->flags2, 1);
if (tgt_res_cfg->sae_eapol_offload)
WMI_RSRC_CFG_HOST_SERVICE_FLAG_SAE_EAPOL_OFFLOAD_SUPPORT_SET(
resource_cfg->host_service_flags, 1);
WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_CC_EXT_SUPPORT_SET(
resource_cfg->host_service_flags,
tgt_res_cfg->is_reg_cc_ext_event_supported);
@@ -16171,6 +16175,8 @@ static void populate_tlv_service(uint32_t *wmi_service)
#endif
wmi_service[wmi_service_spectral_scan_disabled] =
WMI_SERVICE_SPECTRAL_SCAN_DISABLED;
wmi_service[wmi_service_sae_eapol_offload_support] =
WMI_SERVICE_SAE_EAPOL_OFFLOAD_SUPPORT;
wmi_populate_service_get_sta_in_ll_stats_req(wmi_service);
wmi_service[wmi_service_wapi_concurrency_supported] =