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
This commit is contained in:
@@ -3229,6 +3229,23 @@ QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
QDF_STATUS wmi_unified_set_active_bpf_mode_cmd(void *wmi_hdl,
|
||||
uint8_t vdev_id,
|
||||
enum wmi_host_active_bpf_mode ucast_mode,
|
||||
enum wmi_host_active_bpf_mode mcast_bcast_mode)
|
||||
{
|
||||
wmi_unified_t wmi = (wmi_unified_t)wmi_hdl;
|
||||
|
||||
if (!wmi->ops->send_set_active_bpf_mode_cmd) {
|
||||
WMI_LOGI("send_set_active_bpf_mode_cmd op is NULL");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
return wmi->ops->send_set_active_bpf_mode_cmd(wmi, vdev_id,
|
||||
ucast_mode,
|
||||
mcast_bcast_mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_pdev_get_tpc_config_cmd_send() - WMI get tpc config function
|
||||
* @param wmi_handle : handle to WMI.
|
||||
|
Reference in New Issue
Block a user