From 8cca71aa3c1fe9789fa2abc0919e5fdd62963abb Mon Sep 17 00:00:00 2001 From: spuligil Date: Thu, 24 Sep 2020 18:00:49 -0700 Subject: [PATCH] fw-api: CL 11718588 - update fw common interface files Change-Id: I88a23a1783303b503b308e5de045fc05558982c6 WMI: add def for spectral scan trigger event msg CRs-Fixed: 2262693 --- fw/wmi_tlv_defs.h | 7 +++++++ fw/wmi_unified.h | 26 ++++++++++++++++++++++++++ fw/wmi_version.h | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h index 5b7e67c89a59..4dad9c72fed9 100644 --- a/fw/wmi_tlv_defs.h +++ b/fw/wmi_tlv_defs.h @@ -1108,6 +1108,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_wfa_config_saquery, WMITLV_TAG_STRUC_wmi_roam_data_rssi_roaming_param, WMITLV_TAG_STRUC_wmi_request_unified_ll_get_sta_cmd_fixed_param, + WMITLV_TAG_STRUC_wmi_sscan_evt_message_fixed_param, } WMITLV_TAG_ID; /* @@ -1814,6 +1815,7 @@ typedef enum { OP(WMI_AUDIO_AGGR_SCHED_METHOD_EVENTID) \ OP(WMI_VDEV_DISCONNECT_EVENTID) \ OP(WMI_TWT_SESSION_STATS_EVENTID) \ + OP(WMI_SSCAN_EVT_MESSAGE_EVENTID) \ /* add new EVT_LIST elements above this line */ @@ -6041,6 +6043,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_AUDIO_AGGR_SCHED_METHOD_EVENTID); WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_pdev_sscan_fft_bin_index, fft_bin_index, WMITLV_SIZE_VAR) WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_SSCAN_FW_PARAM_EVENTID); +/* Send sscan related event start/stop trigger to host */ +#define WMITLV_TABLE_WMI_SSCAN_EVT_MESSAGE_EVENTID(id,op,buf,len) \ + WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_sscan_evt_message_fixed_param, wmi_sscan_evt_message_fixed_param, fixed_param, WMITLV_SIZE_FIX) +WMITLV_CREATE_PARAM_STRUC(WMI_SSCAN_EVT_MESSAGE_EVENTID); + /* Roam capability report event */ #define WMITLV_TABLE_WMI_ROAM_CAPABILITY_REPORT_EVENTID(id,op,buf,len) \ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_roam_capability_report_event_fixed_param, wmi_roam_capability_report_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 273b49062b3f..04fe4fe41b46 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -1357,6 +1357,10 @@ typedef enum { /** Spectral scan FW params to host */ WMI_PDEV_SSCAN_FW_PARAM_EVENTID, + /** Spectral scan related event start/stop trigger to host */ + WMI_SSCAN_EVT_MESSAGE_EVENTID, + + /* PDEV specific events */ /** TPC config for the current operating channel */ WMI_PDEV_TPC_CONFIG_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_PDEV), @@ -6021,6 +6025,28 @@ typedef struct { A_UINT32 mid_5mhz_bins; } wmi_pdev_sscan_fft_bin_index; +typedef enum { + /** Enum to indicate bmsk of spectral scan stop evt on scan count max out */ + WMI_SSCAN_EVT_BMSK_SCAN_STOP_SCOUNT = 0X00000001, + + + /** Add more event code bmsks above this */ + WMI_SSCAN_EVT_BMSK_MAX = 0Xffffffff, +} wmi_sscan_evt_message_code; + +/** + * The below structure is used to send the start/stop triggers + * for events related to spectral scan activity from + * FW to host + */ +typedef struct { + A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sscan_evt_message_fixed_param */ + A_UINT32 pdev_id; + + /** Refer Enum wmi_sscan_evt_message_code */ + A_UINT32 sscan_evt_code; +} wmi_sscan_evt_message_fixed_param; + #define WMI_BEACON_CTRL_TX_DISABLE 0 #define WMI_BEACON_CTRL_TX_ENABLE 1 #define WMI_BEACON_CTRL_SWBA_EVENT_DISABLE 2 diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 07f4828af0c6..961ca531c76f 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_ 900 +#define __WMI_REVISION_ 901 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work