qcacmn: Add APIs to configure Active BPF Mode
Active Mode Berkeley Packet Filter (Active BPF) is a new feature that
allows firmware to apply BPF even while the Apps processor is active.
There are 3 modes:
* Disabled: do not apply BPF in active mode
* Enabled: apply BPF to all packets in active mode
* Adaptive: apply BPF up to some threshold to avoid performance impact
Add WMI APIs and related logic to support configuration of Active BPF
Mode.
Change-Id: I8c0778b3fa73d148422aa103b0fc0950433fec95
CRs-Fixed: 1111400
diff --git a/wmi_unified_param.h b/wmi_unified_param.h
index 797ecec..dc525be 100644
--- a/wmi_unified_param.h
+++ b/wmi_unified_param.h
@@ -7245,4 +7245,17 @@
uint32_t *vdev_ids;
};
+/**
+ * enum wmi_host_active-bpf_mode - FW_ACTIVE_BPF_MODE, replicated from FW header
+ * @WMI_HOST_ACTIVE_BPF_DISABLED: BPF is disabled for all packets in active mode
+ * @WMI_HOST_ACTIVE_BPF_ENABLED: BPF is enabled for all packets in active mode
+ * @WMI_HOST_ACTIVE_BPF_ADAPTIVE: BPF is enabled for packets up to some
+ * threshold in active mode
+ */
+enum wmi_host_active_bpf_mode {
+ WMI_HOST_ACTIVE_BPF_DISABLED = (1 << 1),
+ WMI_HOST_ACTIVE_BPF_ENABLED = (1 << 2),
+ WMI_HOST_ACTIVE_BPF_ADAPTIVE = (1 << 3)
+};
+
#endif /* _WMI_UNIFIED_PARAM_H_ */