From a670b907a953986c507aafc3ba1b320426d0449e Mon Sep 17 00:00:00 2001 From: spuligil Date: Fri, 24 Apr 2020 06:00:41 -0700 Subject: [PATCH] fw-api: CL 10270542 - update fw common interface files Change-Id: I25fc0faa91f31ca8f626faa6ac7d33d4dc4a3817 WMI: add peer_ps valid,timestamp fields to PEER_STA_PS_STATECHG_EVENT msg CRs-Fixed: 2262693 --- fw/wmi_services.h | 1 + fw/wmi_unified.h | 24 ++++++++++++++++++++++++ fw/wmi_version.h | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/fw/wmi_services.h b/fw/wmi_services.h index 4b9abc18108c..f6ceb0241374 100644 --- a/fw/wmi_services.h +++ b/fw/wmi_services.h @@ -438,6 +438,7 @@ typedef enum { WMI_SERVICE_HOST_SCAN_STOP_VDEV_ALL_SUPPORT = 243, /* Indicates FW supports scan stop mode WMI_SCN_STOP_HOST_VAP_ALL */ WMI_SERVICE_BEACON_PROTECTION_SUPPORT = 244, /* Indicates FW supports WPA3 Beacon protection */ WMI_SERVICE_EMA_AP_SUPPORT = 245, /* FW supports EMA AP feature */ + WMI_SERVICE_PEER_POWER_SAVE_DURATION_SUPPORT = 246, /* Support for adding Power save duration per client */ /******* ADD NEW SERVICES UP TO 256 HERE *******/ diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index f2499932f3a1..4f5ffdb160e9 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -23565,10 +23565,34 @@ typedef struct wmi_wds_addr_event { A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */ } wmi_wds_addr_event_fixed_param; +/* + * Enum values for WMI_PEER_PS_SUPPORTED_BITMAP field, + * in wmi_peer_sta_ps_statechange_event structure. + */ +typedef enum { + /* Used to indicate that peer_ps_valid is valid */ + WMI_PEER_PS_VALID_SUPPORTED = 0x00000001, + /* Used to indicate that peer_ps_timestamp field is valid */ + WMI_PEER_PS_TIMESTAMP_SUPPORTED = 0x00000002, +} WMI_PEER_PS_SUPPORTED_BITMAP; + typedef struct { A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_sta_ps_statechange_event_fixed_param */ wmi_mac_addr peer_macaddr; A_UINT32 peer_ps_state; + /* Start of extended structure */ + /* Bitmap to indicate which fields in the extended structure are valid. + * Bitmap values correspond to enum WMI_PEER_PS_SUPPORTED_BITMAP + */ + A_UINT32 peer_ps_supported_bitmap; + /* This field is used to indicate host of a valid PS state change. + * 1 - indicates a valid PS state change. + * 0 - indicates an invalid PS state change. + * Host to ignore the power save duration calculation when peer_ps_valid = 0 + */ + A_UINT32 peer_ps_valid; + /* This field indicates the time since target boot-up in MilliSeconds. */ + A_UINT32 peer_ps_timestamp; } wmi_peer_sta_ps_statechange_event_fixed_param; /* WMI_PDEV_FIPS_EVENTID */ diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 83a29508f0e2..e437dbf7ac21 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_ 823 +#define __WMI_REVISION_ 824 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work