From 55c94d666fa380dcdd7d88cd36d5329169b3fab0 Mon Sep 17 00:00:00 2001 From: Manikandan Mohan Date: Fri, 4 Dec 2015 13:47:58 -0800 Subject: [PATCH] qcacld-3.0: CL 1426046 update fw common interface files qcacld-2.0 to qcacld-3.0 propagation WMI event update for SMPS complete Change-Id: Ifb8583d96bc634c5570b538aac2cc93de9f9efcd CRs-fixed: 865207 --- target/inc/wmi_tlv_defs.h | 8 +++++++- target/inc/wmi_unified.h | 19 +++++++++++++++++++ target/inc/wmi_version.h | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/target/inc/wmi_tlv_defs.h b/target/inc/wmi_tlv_defs.h index 6acbf5e9e2ee..a5ceb36a3edf 100644 --- a/target/inc/wmi_tlv_defs.h +++ b/target/inc/wmi_tlv_defs.h @@ -604,6 +604,7 @@ typedef enum { WMITLV_TAG_STRUC_wmi_transfer_data_to_flash_complete_event_fixed_param, WMITLV_TAG_STRUC_wmi_scpc_event_fixed_param, WMITLV_TAG_STRUC_wmi_ap_ps_egap_info_chainmask_list, + WMITLV_TAG_STRUC_wmi_sta_smps_force_mode_complete_event_fixed_param, } WMITLV_TAG_ID; /* @@ -961,7 +962,8 @@ typedef enum { OP(WMI_AP_PS_EGAP_INFO_EVENTID) \ OP(WMI_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENTID) \ OP(WMI_OEM_RESPONSE_EVENTID) \ - OP(WMI_PDEV_UTF_SCPC_EVENTID) + OP(WMI_PDEV_UTF_SCPC_EVENTID) \ + OP(WMI_STA_SMPS_FORCE_MODE_COMPLETE_EVENTID) /* TLV definitions of WMI commands */ @@ -3022,6 +3024,10 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PACKET_FILTER_ENABLE_CMDID); WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_mawc_enable_sensor_event_fixed_param, wmi_mawc_enable_sensor_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) WMITLV_CREATE_PARAM_STRUC(WMI_MAWC_ENABLE_SENSOR_EVENTID); +/* SMPS force mode complete Event */ +#define WMITLV_TABLE_WMI_STA_SMPS_FORCE_MODE_COMPLETE_EVENTID(id, op, buf, len) \ + WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_sta_smps_force_mode_complete_event_fixed_param, wmi_sta_smps_force_mode_complete_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) +WMITLV_CREATE_PARAM_STRUC(WMI_STA_SMPS_FORCE_MODE_COMPLETE_EVENTID); #ifdef __cplusplus } diff --git a/target/inc/wmi_unified.h b/target/inc/wmi_unified.h index 926f107576c6..3d2fb50d69b4 100644 --- a/target/inc/wmi_unified.h +++ b/target/inc/wmi_unified.h @@ -1144,6 +1144,11 @@ typedef enum { /* TDLS Event */ WMI_TDLS_PEER_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_TDLS), + /* STA SMPS Event */ + /* force SMPS mode */ + WMI_STA_SMPS_FORCE_MODE_COMPLETE_EVENTID = + WMI_EVT_GRP_START_ID(WMI_GRP_STA_SMPS), + /*location scan event */ /*report the firmware's capability of batch scan */ WMI_BATCH_SCAN_ENABLED_EVENTID = @@ -12332,6 +12337,20 @@ typedef struct { A_UINT32 status; } wmi_transfer_data_to_flash_complete_event_fixed_param; +/* + * This structure is used to report SMPS force mode set complete to host. + */ +typedef struct { + /* TLV tag and len; tag equals + * WMITLV_TAG_STRUC_wmi_sta_smps_force_mode_complete_event_fixed_param + */ + A_UINT32 tlv_header; + /* Unique id identifying the VDEV */ + A_UINT32 vdev_id; + /* Return status. 0 for success, non-zero otherwise */ + A_UINT32 status; +} wmi_sta_smps_force_mode_complete_event_fixed_param; + /* * This structure is used to report SCPC calibrated data to host. */ diff --git a/target/inc/wmi_version.h b/target/inc/wmi_version.h index 25a8f5b0488f..47cdc8d9eb2c 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_ 183 +#define __WMI_REVISION_ 184 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work