From 21209cb00a9efb61f6533c3266a2988f57a0600c Mon Sep 17 00:00:00 2001 From: spuligil Date: Tue, 26 Nov 2019 06:01:56 -0800 Subject: [PATCH] fw-api: CL 8890559 - update fw common interface files Change-Id: I80f6e850bbafac0091217afeb25c11dd101b2643 WMI: add ranging initiator/responder flags in NAN_HOST_CONFIG msg CRs-Fixed: 2262693 --- fw/wmi_unified.h | 11 +++++++++++ fw/wmi_version.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 686e7968bec4..33788a610e74 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -18108,11 +18108,22 @@ typedef struct { */ } wmi_nan_cmd_param; +#define WMI_NAN_GET_RANGING_INITIATOR_ROLE(flag) WMI_GET_BITS(flag, 0, 1) +#define WMI_NAN_SET_RANGING_INITIATOR_ROLE(flag, val) WMI_SET_BITS(flag, 0, 1, val) +#define WMI_NAN_GET_RANGING_RESPONDER_ROLE(flag) WMI_GET_BITS(flag, 1, 1) +#define WMI_NAN_SET_RANGING_RESPONDER_ROLE(flag, val) WMI_SET_BITS(flag, 1, 1, val) + typedef struct { A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_host_config_param */ A_UINT32 nan_2g_disc_disable:1; /** This bit when set to 1 indicate NAN 2G discovery should be disabled */ A_UINT32 nan_5g_disc_disable:1; /** This bit when set to 1 indicate NAN 5G discovery should be disabled */ A_UINT32 reserved:30; + /** Flags: refer to WMI_NAN_GET/SET macros + * Bit 0 -> Nan ranging initiator role (0 - Disable, 1 - Enable) + * Bit 1 -> Nan ranging responder role (0 - Disable, 1 - Enable) + * Bits 2-31 -> Reserved + */ + A_UINT32 flags; } wmi_nan_host_config_param_PROTOTYPE; #define wmi_nan_host_config_param wmi_nan_host_config_param_PROTOTYPE diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 3e09f9ccf4cb..1b3c1f1b9367 100644 --- a/fw/wmi_version.h +++ b/fw/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_ 747 +#define __WMI_REVISION_ 748 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work