Browse Source

qcacmn: Add new resource config fields

Firmware recently exposed two new resource config fields,
num_packet_filters, and num_max_sta_vdevs. Add these fields to the
host-side resource config struct so appropriate values can be populated
and communicated to firmware.

Change-Id: I951ba6ac929c38c2d78af6705f4922b62fc7d3a1
CRs-Fixed: 2201876
Dustin Brown 7 years ago
parent
commit
091393ef25
2 changed files with 6 additions and 0 deletions
  1. 4 0
      wmi/inc/wmi_unified_param.h
  2. 2 0
      wmi/src/wmi_unified_tlv.c

+ 4 - 0
wmi/inc/wmi_unified_param.h

@@ -6039,6 +6039,8 @@ struct wmi_host_fw_abi_ver {
  * @num_ocb_vdevs:
  * @num_ocb_channels:
  * @num_ocb_schedules:
+ * @num_packet_filters: maximum number of packet filter rules to support
+ * @num_max_sta_vdevs: maximum number of concurrent station vdevs to support
  * @num_ns_ext_tuples_cfg:
  * @bpf_instruction_size:
  * @max_bssid_rx_filters:
@@ -6109,6 +6111,8 @@ typedef struct {
 	uint32_t num_ocb_vdevs;
 	uint32_t num_ocb_channels;
 	uint32_t num_ocb_schedules;
+	uint32_t num_packet_filters;
+	uint32_t num_max_sta_vdevs;
 	uint32_t num_ns_ext_tuples_cfg;
 	uint32_t bpf_instruction_size;
 	uint32_t max_bssid_rx_filters;

+ 2 - 0
wmi/src/wmi_unified_tlv.c

@@ -13335,6 +13335,8 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 	resource_cfg->max_num_dbs_scan_duty_cycle =
 		tgt_res_cfg->max_num_dbs_scan_duty_cycle;
 	resource_cfg->sched_params = tgt_res_cfg->scheduler_params;
+	resource_cfg->num_packet_filters = tgt_res_cfg->num_packet_filters;
+	resource_cfg->num_max_sta_vdevs = tgt_res_cfg->num_max_sta_vdevs;
 
 	if (tgt_res_cfg->atf_config)
 		WMI_RSRC_CFG_FLAG_ATF_CONFIG_ENABLE_SET(resource_cfg->flag1, 1);