From aeef63fa234fca042e304fb0fd8249571d63bace Mon Sep 17 00:00:00 2001 From: spuligil Date: Sun, 4 Jul 2021 06:00:50 -0700 Subject: [PATCH] fw-api: CL 14603439 - update fw common interface files WMI stats: DFS_CHANNEL_STAT Change-Id: I9bc542908c8846b82b0e8e0ddd120faac5aeb319 CRs-Fixed: 2262693 --- fw/wmi_tlv_defs.h | 4 +++- fw/wmi_unified.h | 18 ++++++++++++++++++ fw/wmi_version.h | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index a79a54403a98..fdca7a1b6c96 100644 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -1183,6 +1183,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_pdev_multiple_vdev_set_param_cmd_fixed_param, WMITLV_TAG_STRUC_wmi_pdev_mec_aging_timer_config_cmd_fixed_param, WMITLV_TAG_STRUC_wmi_peer_config_ppe_ds_cmd_fixed_param, + WMITLV_TAG_STRUC_wmi_ctrl_path_dfs_channel_stats_struct, } WMITLV_TAG_ID; /* @@ -6106,7 +6107,8 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PEER_STATS_INFO_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_vdev_extd_stats, vdev_extd_stats, WMITLV_SIZE_VAR) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_ctrl_path_mem_stats_struct, ctrl_path_mem_stats, WMITLV_SIZE_VAR) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_ctrl_path_twt_stats_struct, ctrl_path_twt_stats, WMITLV_SIZE_VAR) \ - WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_ctrl_path_calibration_stats_struct, ctrl_path_calibration_stats, WMITLV_SIZE_VAR) + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_ctrl_path_calibration_stats_struct, ctrl_path_calibration_stats, WMITLV_SIZE_VAR) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_ctrl_path_dfs_channel_stats_struct, ctrl_path_dfs_channel_stats, WMITLV_SIZE_VAR) WMITLV_CREATE_PARAM_STRUC(WMI_CTRL_PATH_STATS_EVENTID); #define WMITLV_TABLE_WMI_RADIO_CHAN_STATS_EVENTID(id, op, buf, len) \ diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 26648519141f..73f1710e6fab 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -10101,6 +10101,23 @@ typedef struct { #define WMI_CTRL_PATH_CALIBRATION_STATS_IS_PERIODIC_CAL_GET(cal_info) WMI_GET_BITS(cal_info, 13, 1) #define WMI_CTRL_PATH_CALIBRATION_STATS_IS_PERIODIC_CAL_SET(cal_info, is_periodic) WMI_SET_BITS(cal_info, 13, 1, is_periodic) +typedef struct { + /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_dfs_channel_stats_struct*/ + A_UINT32 tlv_header; + /** pdev_id for identifying the PHY */ + A_UINT32 pdev_id; + /** nol element num */ + A_UINT32 nol; + /** Channel in MHz */ + A_UINT32 channel; + + /** Channel width in MHz */ + A_UINT32 chwidth; + + /** Time left for the channel to remain in NOL list (in seconds) */ + A_UINT32 timeleft; +} wmi_ctrl_path_dfs_channel_stats_struct; + typedef struct { /** TLV tag and len; tag equals * WMITLV_TAG_STRUC_wmi_ctrl_path_stats_event_fixed_param */ @@ -27125,6 +27142,7 @@ typedef enum { WMI_REQUEST_CTRL_PATH_MEM_STAT = 3, WMI_REQUEST_CTRL_PATH_TWT_STAT = 4, WMI_REQUEST_CTRL_PATH_CALIBRATION_STAT = 5, + WMI_REQUEST_CTRL_PATH_DFS_CHANNEL_STAT = 6, } wmi_ctrl_path_stats_id; typedef enum { diff --git a/fw/wmi_version.h b/fw/wmi_version.h index db0fba7f9237..d93b48f6c56f 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_ 1019 +#define __WMI_REVISION_ 1020 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work