From 591f8bb3a112b95b3b74bd9c45843ece3db21cc4 Mon Sep 17 00:00:00 2001 From: Pavankumar Nandeshwar Date: Tue, 7 Sep 2021 23:50:49 -0700 Subject: [PATCH] qcacmn: Add wmi to enable wds in Beryllium Add new wmi to enable/disable wds in Beryllium firmware Change-Id: I4439973017d5fda734f5ca351334dc9f03988717 --- wmi/inc/wmi_unified_param.h | 7 +++++-- wmi/src/wmi_unified_tlv.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index d0163d5246..56988f4436 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -5329,7 +5329,7 @@ struct wmi_host_fw_abi_ver { * @use_pdev_id: * @max_num_dbs_scan_duty_cycle: max dbs can duty cycle value * @cce_disable: disable cce component - * @peer_map_unmap_v2: enable peer map/unmap version 2 messaging + * @peer_map_unmap_v2/peer_map_unmap_version: configure peer map/unmap version * @twt_ap_pdev_count: Number of MAC on which AP TWT feature is supported * @twt_ap_sta_count: Max no of STA with which TWT sessions can be formed * by the AP @@ -5440,7 +5440,10 @@ typedef struct { uint32_t use_pdev_id; uint32_t max_num_dbs_scan_duty_cycle; bool cce_disable; - bool peer_map_unmap_v2; + union { + bool peer_map_unmap_v2; + uint8_t peer_map_unmap_version; + }; uint32_t twt_ap_pdev_count; uint32_t twt_ap_sta_count; uint32_t max_bssid_indicator; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 05259d232d..f2ed5fa006 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -7499,8 +7499,8 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg, 1); wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg); - resource_cfg->peer_map_unmap_v2_support = - tgt_res_cfg->peer_map_unmap_v2; + resource_cfg->peer_map_unmap_versions = + tgt_res_cfg->peer_map_unmap_version; resource_cfg->smart_ant_cap = tgt_res_cfg->smart_ant_cap; if (tgt_res_cfg->re_ul_resp) WMI_SET_BITS(resource_cfg->flags2, 0, 4,