From 47a42ab968b8d7c5535a2a622bea756bb1eabe46 Mon Sep 17 00:00:00 2001 From: spuligil Date: Thu, 13 Aug 2020 12:00:45 -0700 Subject: [PATCH] fw-api: CL 11319448 - update fw common interface files Change-Id: I3c531ce223bd83a39491819802ef3e61d91e1e32 WMI: macros to access SCAN_MODE_VAP vdev flag CRs-Fixed: 2262693 --- fw/wmi_unified.h | 14 ++++++++++++-- fw/wmi_version.h | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 67e68e01fa1c..e7c546e21d01 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -9599,6 +9599,11 @@ typedef struct { * and WMI_VDEV_START_REQUEST_CMD. Based on this parameter need to make decision like * vdev Pause/Unpause at WMI_VDEV_START_REQUEST_CMD. */ +/* get/set/check macros for VDEV_FLAGS_SCAN_MODE_VAP flag */ +#define WMI_SCAN_MODE_VDEV_FLAG_GET(flag) WMI_GET_BITS(flag, 4, 1) +#define WMI_SCAN_MODE_VDEV_FLAG_SET(flag, val) WMI_SET_BITS(flag, 4, 1, val) + +#define WMI_SCAN_MODE_VDEV_FLAG_ENABLED(flag) ((flag & VDEV_FLAGS_SCAN_MODE_VAP) ? 1 : 0) typedef struct { A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_create_cmd_fixed_param */ @@ -10397,6 +10402,7 @@ typedef struct { * VDEV_FLAGS_TRANSMIT_AP * VDEV_FLAGS_NON_TRANSMIT_AP * VDEV_FLAGS_EMA_MODE + * VDEV_FLAGS_SCAN_MODE_VAP - if the vdev is used for scan radio */ A_UINT32 mbss_capability_flags; @@ -26020,8 +26026,12 @@ typedef struct { A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SCAN_RADIO_CAPABILITIES_EXT2 */ A_UINT32 phy_id; /* - * [0] 1 - SCAN_RADIO supported 0 - SCAN_RADIO not supported - * [1] 1 - DFS enabled 0 - DFS disabled + * Bit 0: + * 1 - SCAN_RADIO supported 0 - SCAN_RADIO not supported + * Refer to WMI_SCAN_RADIO_CAP_SCAN_RADIO_FLAG_SET, GET macros + * Bit 1: + * 1 - DFS enabled 0 - DFS disabled + * Refer to WMI_SCAN_RADIO_CAP_DFS_FLAG_SET, GET macros * [2:31] reserved */ A_UINT32 flags; diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 58516ac33cc6..4bedb37c3728 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_ 880 +#define __WMI_REVISION_ 881 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work