From 76eb30ae61be272726d8ed2d0d600ae2fa802d0a Mon Sep 17 00:00:00 2001 From: spuligil Date: Mon, 5 Mar 2018 22:07:10 -0800 Subject: [PATCH] fw-api: CL 4247420 - update fw common interface files Change-Id: Id5c4b5ab636083463661eedab445118fbf9b5a71 WMI: add boot-up resource specs to fine-tune FW mem alloc sizes CRs-Fixed: 1107600 --- fw/wmi_unified.h | 27 +++++++++++++++++++++++++-- fw/wmi_version.h | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index d744bdf80318..c339b7f027bc 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -2729,8 +2729,11 @@ typedef struct { A_UINT32 num_ns_ext_tuples_cfg; /** - * size (in bytes) of the buffer the FW shall allocate to store - * packet filtering instructions + * size (in bytes) of the buffer the FW shall allocate per vdev + * firmware can dynamic allocate memory (or disable) + * packet filtering feature. + * 0 - fw chooses its default value + * -1 (0XFFFFFFFF) - disable APF */ A_UINT32 bpf_instruction_size; @@ -2793,6 +2796,26 @@ typedef struct { * configuration specification. */ A_UINT32 max_nlo_ssids; + + /** + * num_packet_filters: the num that host requests fw to support for + * pktfilter in total, then firmware can dynamic allocate + * memory(or disable) pktfilter feature. + * + * 0 - fw chooses its default value. + * -1(0XFFFFFFFF)- disable pktfilter. + */ + A_UINT32 num_packet_filters; + + /** + * num_max_sta_vdevs: the max num for the sta vdevs + * fw will use it to config the memory of offload features that + * are only for sta vdevs. + * p2p client should be included. + * + * 0 - fw chooses its default value: 'num_vdevs' of this structure. + */ + A_UINT32 num_max_sta_vdevs; } wmi_resource_config; #define WMI_RSRC_CFG_FLAG_SET(word32, flag, value) \ diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 2fd9952be7e5..5544d0172d27 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_ 510 +#define __WMI_REVISION_ 511 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work