qcacld-3.0: Update firmware filter config (part 1)

In order to conserve firmware memory when various filtering features are
not in use, update the target configuration provided to firmware based
on the intersection of various filtering features and host
configuration.

Part 1
	num_wow_filters = ARP/NS offload enabled ? 2 : 5
	bpf_instruction_size - BPF enabled ? 0 (auto) : 0xffffffff

Part 2 (pending firmware support)
	pkt_filter_num = Packet Filter enabled ? 12 : 0 (disabled)

Change-Id: Ic6624ff04598b53d8321e4864618b12b9702780f
CRs-Fixed: 2196997
此提交包含在:
Dustin Brown
2018-03-01 17:15:11 -08:00
提交者 nshrivas
父節點 20acc975d4
當前提交 3b33f59347
共有 10 個檔案被更改,包括 200 行新增14 行删除

查看文件

@@ -33,6 +33,30 @@
#include "wlan_pmo_pkt_filter_public_struct.h"
#include "wlan_pmo_hw_filter_public_struct.h"
/**
* ucfg_pmo_get_apf_instruction_size() - get the current APF instruction size
* @psoc: the psoc to query
*
* Return: APF instruction size
*/
uint32_t ucfg_pmo_get_apf_instruction_size(struct wlan_objmgr_psoc *psoc);
/**
* ucfg_pmo_get_num_packet_filters() - get the number of packet filters
* @psoc: the psoc to query
*
* Return: number of packet filters
*/
uint8_t ucfg_pmo_get_num_packet_filters(struct wlan_objmgr_psoc *psoc);
/**
* ucfg_pmo_get_num_wow_filters() - get the supported number of WoW filters
* @psoc: the psoc to query
*
* Return: number of WoW filters supported
*/
uint8_t ucfg_pmo_get_num_wow_filters(struct wlan_objmgr_psoc *psoc);
/**
* ucfg_pmo_is_ap_mode_supports_arp_ns() - Check ap mode support arp&ns offload
* @psoc: objmgr psoc