diff --git a/target/inc/wmi_tlv_defs.h b/target/inc/wmi_tlv_defs.h index 0c24a659840c..007beaed45eb 100644 --- a/target/inc/wmi_tlv_defs.h +++ b/target/inc/wmi_tlv_defs.h @@ -687,6 +687,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_pdev_hw_mode_transition_event_fixed_param, WMITLV_TAG_STRUC_wmi_pdev_set_hw_mode_response_vdev_mac_entry, WMITLV_TAG_STRUC_wmi_pdev_set_mac_config_response_event_fixed_param, + WMITLV_TAG_STRUC_WMI_COEX_CONFIG_CMD_fixed_param, } WMITLV_TAG_ID; /* @@ -962,7 +963,8 @@ typedef enum { OP(WMI_PDEV_SET_HW_MODE_CMDID) \ OP(WMI_PDEV_SET_MAC_CONFIG_CMDID) \ OP(WMI_PDEV_SET_ANTENNA_MODE_CMDID) \ - OP(WMI_VDEV_SET_QUIET_MODE_CMDID) + OP(WMI_VDEV_SET_QUIET_MODE_CMDID) \ + OP(WMI_COEX_CONFIG_CMDID) /* * IMPORTANT: Please add _ALL_ WMI Events Here. @@ -2443,6 +2445,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_NLO_CONFIGURE_MAWC_CMDID); WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_extscan_configure_mawc_cmd_fixed_param, wmi_extscan_configure_mawc_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_EXTSCAN_CONFIGURE_MAWC_CMDID); +/* COEX config cmd */ +#define WMITLV_TABLE_WMI_COEX_CONFIG_CMDID(id, op, buf, len) \ + WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_WMI_COEX_CONFIG_CMD_fixed_param, WMI_COEX_CONFIG_CMD_fixed_param, fixed_param, WMITLV_SIZE_FIX) +WMITLV_CREATE_PARAM_STRUC(WMI_COEX_CONFIG_CMDID); + /* bpf offload capability get cmd */ #define WMITLV_TABLE_WMI_BPF_GET_CAPABILITY_CMDID(id, op, buf, len) \ WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_bpf_get_capability_cmd_fixed_param, wmi_bpf_get_capability_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) diff --git a/target/inc/wmi_unified.h b/target/inc/wmi_unified.h index 9c31e1c9e903..515d6c897544 100644 --- a/target/inc/wmi_unified.h +++ b/target/inc/wmi_unified.h @@ -858,6 +858,7 @@ typedef enum { WMI_MODEM_POWER_STATE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_COEX), WMI_CHAN_AVOID_UPDATE_CMDID, + WMI_COEX_CONFIG_CMDID, /** * OBSS scan offload enable/disable commands @@ -14969,6 +14970,24 @@ typedef struct { A_UINT32 ofdm_level; } wmi_ani_ofdm_event_fixed_param; +typedef enum wmi_coex_config_type { + /* config interval (arg1 BT, arg2 WLAN) for P2P + PAGE */ + WMI_COEX_CONFIG_PAGE_P2P_TDM = 1, + /* config interval (arg1 BT, arg2 WLAN) for STA + PAGE */ + WMI_COEX_CONFIG_PAGE_STA_TDM = 2, + /* config interval (arg1 BT, arg2 WLAN) for SAP + PAGE */ + WMI_COEX_CONFIG_PAGE_SAP_TDM = 3, +} WMI_COEX_CONFIG_TYPE; + +typedef struct { + A_UINT32 tlv_header; + A_UINT32 vdev_id; + /* wmi_coex_config_type enum */ + A_UINT32 config_type; + A_UINT32 config_arg1; + A_UINT32 config_arg2; +} WMI_COEX_CONFIG_CMD_fixed_param; + /* ADD NEW DEFS HERE */ /***************************************************************************** diff --git a/target/inc/wmi_version.h b/target/inc/wmi_version.h index 3e79cf5d8762..2bfa29567a4c 100644 --- a/target/inc/wmi_version.h +++ b/target/inc/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_ 210 +#define __WMI_REVISION_ 211 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work