qcacld-3.0: BPF fixes for check connection state, set maxwow filter
qcacld-2.0 to qcacld-3.0 propagation
* Set BPF filter only if the station/p2p client is in the connected
state.
* Depending on the BPF service enabled in firmware dynamically
configure the number of wow filters.
- If bpf enabled maxwowfilter is 2.
- If bpf is disabled maxwowfilter is read from ini.
Change-Id: I14c722c9a1189f4ba4fbc2c8a554ae85b7a61fa8
CRs-Fixed: 967535
diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c
index 6e1695f..d7036b9 100644
--- a/core/wma/src/wma_main.c
+++ b/core/wma/src/wma_main.c
@@ -3319,6 +3319,12 @@
wma_handle->max_frag_entry);
wma_handle->max_frag_entry =
tgt_cap->wlan_resource_config.max_frag_entries;
+
+ /* Update no. of maxWoWFilters depending on BPF service */
+ if (WMI_SERVICE_IS_ENABLED(wma_handle->wmi_service_bitmap,
+ WMI_SERVICE_BPF_OFFLOAD))
+ tgt_cap->wlan_resource_config.num_wow_filters =
+ MAX_WOW_FILTERS;
}
/**