From 4f936fce8e55e3cbeba0eedc301f58c5751977ac Mon Sep 17 00:00:00 2001 From: spuligil Date: Sat, 14 Mar 2020 06:01:14 -0700 Subject: [PATCH] fw-api: CL 9855374 - update fw common interface files Change-Id: I4b770064a20d65fed22b4ae9fa0226942db8bf23 WMI: beacon protection flag CRs-Fixed: 2262693 --- fw/wmi_services.h | 1 + fw/wmi_unified.h | 17 +++++++++++++++++ fw/wmi_version.h | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/fw/wmi_services.h b/fw/wmi_services.h index c04ac634cb08..95fc6a65b10c 100644 --- a/fw/wmi_services.h +++ b/fw/wmi_services.h @@ -432,6 +432,7 @@ typedef enum { WMI_SERVICE_NDI_NDI_STA_SUPPORT = 241, /* Indicates FW support for STA+NDI+NDI */ WMI_SERVICE_BW_TRUE_160_SUPPORT = 242, /* Indicates FW supports true 160 BW */ WMI_SERVICE_HOST_SCAN_STOP_VDEV_ALL_SUPPORT = 243, /* Indicates FW supports scan stop mode WMI_SCN_STOP_HOST_VAP_ALL */ + WMI_SERVICE_BEACON_PROTECTION_SUPPORT = 243, /* Indicates FW supports WPA3 Beacon protection */ /******* ADD NEW SERVICES HERE *******/ diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 24d7d4e6e03a..2da181033d21 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -11028,6 +11028,15 @@ typedef struct { * Only non-zero values are considered. */ A_UINT32 mu_edca_ie_offset; + /** Specify features that need to be enabled/disabled for the beacon. + * + * Bit 0: + * Beacon Protection feature enable/disable indication. + * Refer to WMI_BEACON_PROTECTION_EN_SET/GET macros. + * + * More features can be added to this bitmap. + */ + A_UINT32 feature_enable_bitmap; /* * The TLVs follows: @@ -11046,6 +11055,14 @@ typedef struct { Same can also be achieved by setting bitmap to 0X80000001 */ #define WMI_CSC_EVENT_BMAP_ALL 0XFFFFFFFF /* Send CSC switch count event for every update to switch count */ +#define WMI_BEACON_PROTECTION_BIT_POS 0 /* Beacon Protection enable/disable indication */ + +#define WMI_BEACON_PROTECTION_EN_SET(param, value) \ + WMI_SET_BITS(param, WMI_BEACON_PROTECTION_BIT_POS, 1, value) + +#define WMI_BEACON_PROTECTION_EN_GET(param) \ + WMI_GET_BITS(param, WMI_BEACON_PROTECTION_EN_BIT_POS, 1) + typedef struct { A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_prb_tmpl_cmd_fixed_param */ /** unique id identifying the VDEV, generated by the caller */ diff --git a/fw/wmi_version.h b/fw/wmi_version.h index ef7659bf6357..66e808557364 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_ 792 +#define __WMI_REVISION_ 793 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work