From a280b5cb0b7b96100e0e91731d866e512145c40d Mon Sep 17 00:00:00 2001 From: Pradeep Reddy POTTETI Date: Mon, 20 Jun 2016 14:16:23 +0530 Subject: [PATCH] qcacld-3.0: CL 1528698 - update fw common interface files Propagation from qcacld-2.0 to qcacld-3.0 Add support for setting hardware mode within WMI_INIT_CMD Change-Id: If5855fb1f1bc2a85fd27a34575a009b9f6b1e008 CRs-fixed: 865207 --- target/inc/wmi_tlv_defs.h | 3 ++- target/inc/wmi_unified.h | 9 ++++++++- target/inc/wmi_version.h | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/target/inc/wmi_tlv_defs.h b/target/inc/wmi_tlv_defs.h index 6342d9d40c..681bab80e0 100644 --- a/target/inc/wmi_tlv_defs.h +++ b/target/inc/wmi_tlv_defs.h @@ -1170,7 +1170,8 @@ typedef enum { #define WMITLV_TABLE_WMI_INIT_CMDID(id,op,buf,len) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_init_cmd_fixed_param, wmi_init_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_resource_config, wmi_resource_config, resource_config, WMITLV_SIZE_FIX) \ - WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wlan_host_memory_chunk, host_mem_chunks, WMITLV_SIZE_VAR) + WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_ARRAY_STRUC, wlan_host_memory_chunk, host_mem_chunks, WMITLV_SIZE_VAR) \ + WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_pdev_set_hw_mode_cmd_fixed_param, wmi_pdev_set_hw_mode_cmd_fixed_param, hw_mode, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_INIT_CMDID); diff --git a/target/inc/wmi_unified.h b/target/inc/wmi_unified.h index a6f010e996..aee7cca2db 100644 --- a/target/inc/wmi_unified.h +++ b/target/inc/wmi_unified.h @@ -2428,9 +2428,16 @@ typedef struct { A_UINT32 num_host_mem_chunks; /** size of array host_mem_chunks[] */ - /* The TLVs for resource_config and host_mem_chunks[] will follow. + /* The TLVs for resource_config, host_mem_chunks[], and + * hw_mode_config will follow. * wmi_resource_config resource_config; * wlan_host_memory_chunk host_mem_chunks[]; + * wmi_pdev_set_hw_mode_cmd_fixed_param hw_mode_config; + * Note that the hw_mode_config, in spite of its "pdev" name, + * applies to the entire target rather than for a single pdev + * within the target. + * To avoid specifying a HW mode for the target, the host should + * fill hw_mode_config's fields with 0x0. */ } wmi_init_cmd_fixed_param; diff --git a/target/inc/wmi_version.h b/target/inc/wmi_version.h index 58ab61a254..236cbce8c4 100644 --- a/target/inc/wmi_version.h +++ b/target/inc/wmi_version.h @@ -36,7 +36,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility */ -#define __WMI_REVISION_ 263 +#define __WMI_REVISION_ 264 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work