From 7ecae32ad3deb5f9babbe68a26c4fd1e637dfd58 Mon Sep 17 00:00:00 2001 From: spuligil Date: Wed, 18 Apr 2018 09:00:52 -0700 Subject: [PATCH] fw-api: CL 4476797 - update fw common interface files Add WMI_PDEV_PARAM_SECONDARY_RETRY_ENABLE defs Change-Id: I6cafc6efab8a69336a1fccf942aba236f857ed32 CRs-Fixed: 1107600 --- fw/wmi_unified.h | 30 ++++++++++++++++++++++++++++++ fw/wmi_version.h | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index bc520f5c4de0..2e41a2361094 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -4533,6 +4533,27 @@ typedef enum { PKT_PWR_SAVE_FSM_ENABLE = 0x80000000, } WMI_PDEV_PKT_PWR_SAVE_LEVEL; +/** MACROs to get user setting for enabling/disabling Secondary Rate Feature set + * Bit-0 : Enable/Disable Control for "PPDU Secondary Retry Support" + * Bit-1 : Enable/Disable Control for "RTS Black/White-listing Support" + * Bit-2 : Enable/Disable Control for "Higher MCS retry restriction on XRETRY failures" + * Bit 3-5 : "Xretry threshold" to use + * Bit 6~31 : reserved for future use. + */ +#define WMI_PDEV_PARAM_SECONDARY_RATE_ENABLE_BIT_S 0 +#define WMI_PDEV_PARAM_SECONDARY_RATE_ENABLE_BIT 0x00000001 +#define WMI_PDEV_PARAM_RTS_BL_WL_ENABLE_BIT_S 1 +#define WMI_PDEV_PARAM_RTS_BL_WL_ENABLE_BIT 0x00000002 +#define WMI_PDEV_PARAM_HIGHER_MCS_XRETRY_RESTRICTION_S 2 +#define WMI_PDEV_PARAM_HIGHER_MCS_XRETRY_RESTRICTION 0x00000004 +#define WMI_PDEV_PARAM_XRETRY_THRESHOLD_S 3 +#define WMI_PDEV_PARAM_XRETRY_THRESHOLD 0x00000038 + +#define WMI_PDEV_PARAM_IS_SECONDARY_RATE_ENABLED(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_SECONDARY_RATE_ENABLE_BIT) +#define WMI_PDEV_PARAM_IS_RTS_BL_WL_ENABLED(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_RTS_BL_WL_ENABLE_BIT) +#define WMI_PDEV_PARAM_IS_HIGHER_MCS_XRETRY_RESTRICTION_SET(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_HIGHER_MCS_XRETRY_RESTRICTION) +#define WMI_PDEV_PARAM_GET_XRETRY_THRESHOLD(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_XRETRY_THRESHOLD) + typedef enum { /** TX chain mask */ WMI_PDEV_PARAM_TX_CHAIN_MASK = 0x1, @@ -4983,6 +5004,15 @@ typedef enum { * value accompanying the PDEV_PARAM_ANTENNA_GAIN_HALF_DB parameter type. */ WMI_PDEV_PARAM_ANTENNA_GAIN_HALF_DB, /* 0x9f */ + /* + * Global Enable/Disable control for Secondary Retry Feature Set + * + * Bit-0 : Enable/Disable Control for "PPDU Secondary Retry Support" + * Bit-1 : Enable/Disable Control for "RTS Black/White-listing Support" + * Bit-2 : Enable/Disable Control for "Higher MCS retry restriction on XRETRY failures" + * Bit 3-5: "Xretry threshold" to use + */ + WMI_PDEV_PARAM_SECONDARY_RETRY_ENABLE, /* 0xA0 */ } WMI_PDEV_PARAM; typedef struct { diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 637c70bb446e..86f3365e8290 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_ 531 +#define __WMI_REVISION_ 532 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work