From 4cef4fea0a5c860b986e0ceeaeb403858c8f0eeb Mon Sep 17 00:00:00 2001 From: spuligil Date: Sat, 10 Jul 2021 06:00:38 -0700 Subject: [PATCH] fw-api: CL 14704928 - update fw common interface files Change-Id: I7d98b79a83f62984f5c710b3bf5eccc30faf80a3 WMI: add [VDEV,PEER]_ENABLE_DISABLE_INTRA_BSS_CMD msg defs CRs-Fixed: 2262693 --- fw/wmi_tlv_defs.h | 14 ++++++++++++++ fw/wmi_unified.h | 36 ++++++++++++++++++++++++++++++++++++ fw/wmi_version.h | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index 453eb53c5b56..49f2280d053f 100644 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -1186,6 +1186,8 @@ typedef enum { WMITLV_TAG_STRUC_wmi_ctrl_path_dfs_channel_stats_struct, WMITLV_TAG_STRUC_wmi_twt_ack_event_fixed_param, WMITLV_TAG_STRUC_wmi_twt_caps_param, + WMITLV_TAG_STRUC_wmi_vdev_enable_disable_intra_bss_cmd_fixed_param, + WMITLV_TAG_STRUC_wmi_peer_enable_disable_intra_bss_cmd_fixed_param, } WMITLV_TAG_ID; /* @@ -1657,6 +1659,8 @@ typedef enum { OP(WMI_PDEV_MULTIPLE_VDEV_SET_PARAM_CMDID) \ OP(WMI_PDEV_MEC_AGING_TIMER_CONFIG_CMDID) \ OP(WMI_PEER_CONFIG_PPE_DS_CMDID) \ + OP(WMI_VDEV_ENABLE_DISABLE_INTRA_BSS_CMDID) \ + OP(WMI_PEER_ENABLE_DISABLE_INTRA_BSS_CMDID) \ /* add new CMD_LIST elements above this line */ @@ -4756,6 +4760,16 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_MEC_AGING_TIMER_CONFIG_CMDID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_peer_config_ppe_ds_cmd_fixed_param, wmi_peer_config_ppe_ds_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_PEER_CONFIG_PPE_DS_CMDID); +/* Enable/Disable Intra Bss for the vdev */ +#define WMITLV_TABLE_WMI_VDEV_ENABLE_DISABLE_INTRA_BSS_CMDID(id,op,buf,len) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_vdev_enable_disable_intra_bss_cmd_fixed_param, wmi_vdev_enable_disable_intra_bss_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) +WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_ENABLE_DISABLE_INTRA_BSS_CMDID); + +/* Enable/Disable Intra Bss for the peer */ +#define WMITLV_TABLE_WMI_PEER_ENABLE_DISABLE_INTRA_BSS_CMDID(id,op,buf,len) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_peer_enable_disable_intra_bss_cmd_fixed_param, wmi_peer_enable_disable_intra_bss_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) +WMITLV_CREATE_PARAM_STRUC(WMI_PEER_ENABLE_DISABLE_INTRA_BSS_CMDID); + /************************** TLV definitions of WMI events *******************************/ diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index d5d73406f3d3..3018efd4c93f 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -549,6 +549,8 @@ typedef enum { WMI_VDEV_SET_TPC_POWER_CMDID, /** IGMP OFFLOAD */ WMI_VDEV_IGMP_OFFLOAD_CMDID, + /** Enable/Disable Intra Bss for each vdev */ + WMI_VDEV_ENABLE_DISABLE_INTRA_BSS_CMDID, /* peer specific commands */ @@ -657,6 +659,9 @@ typedef enum { /** WMI command for per-peer configuration of PPE DS */ WMI_PEER_CONFIG_PPE_DS_CMDID, + /** Enable/Disable Intra Bss for the peer */ + WMI_PEER_ENABLE_DISABLE_INTRA_BSS_CMDID, + /* beacon/management specific commands */ @@ -28946,6 +28951,8 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command) WMI_RETURN_STRING(WMI_PDEV_MULTIPLE_VDEV_SET_PARAM_CMDID); WMI_RETURN_STRING(WMI_PDEV_MEC_AGING_TIMER_CONFIG_CMDID); WMI_RETURN_STRING(WMI_PEER_CONFIG_PPE_DS_CMDID); + WMI_RETURN_STRING(WMI_VDEV_ENABLE_DISABLE_INTRA_BSS_CMDID); + WMI_RETURN_STRING(WMI_PEER_ENABLE_DISABLE_INTRA_BSS_CMDID); } return "Invalid WMI cmd"; @@ -29110,6 +29117,35 @@ typedef struct { */ } afc_spectrum_inquiry_resp_bin_type; +typedef struct { + /** TLV tag and len; tag equals + * WMITLV_TAG_STRUC_wmi_vdev_enable_disable_intra_bss_cmd_fixed_param + */ + A_UINT32 tlv_header; + /** The corresponding vdev_id. + */ + A_UINT32 vdev_id; + /* Enable/Disable intra_bss. + */ + A_UINT32 enable; +} wmi_vdev_enable_disable_intra_bss_cmd_fixed_param; + +typedef struct { + /** TLV tag and len; tag equals + * WMITLV_TAG_STRUC_wmi_peer_enable_disable_intra_bss_cmd_fixed_param + */ + A_UINT32 tlv_header; + /** Mac Address of the peer. + */ + wmi_mac_addr mac_addr; + /** The corresponding vdev_id. + */ + A_UINT32 vdev_id; + /* Enable/Disable intra_bss. + */ + A_UINT32 enable; +} wmi_peer_enable_disable_intra_bss_cmd_fixed_param; + /* Freq units in MHz */ #define WMI_REG_RULE_START_FREQ_GET(freq_info) WMI_GET_BITS(freq_info, 0, 16) #define WMI_REG_RULE_START_FREQ_SET(freq_info, value) WMI_SET_BITS(freq_info, 0, 16, value) diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 9c84c1c521ef..06ae1659fffd 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_ 1024 +#define __WMI_REVISION_ 1025 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work