qcacmn: Rename legacy definitions containing BPF to APF

In implementation of Android Packet Filter, functions, variables,
definitions are named after BPF, which stands for Berkely Packet
Filter. The term was more appropriate for Link Layer packet
filters implemented in the Linux kernel, known as Linux Socket
Filters.

The term BPF is obsolete now, so rename it with the
appropriate acronym, APF.

Change-Id: I606afc747cddedb524a41cd8e5998400f04e69f6
CRs-Fixed: 2191531
This commit is contained in:
Nachiket Kukade
2018-05-22 12:17:15 +05:30
committed by nshrivas
parent 21d6257022
commit e8ce8629e4
4 changed files with 30 additions and 29 deletions

View File

@@ -24,19 +24,19 @@
#include "wmi_unified_param.h" #include "wmi_unified_param.h"
/** /**
* send_set_active_bpf_mode_cmd_tlv() - configure active BPF mode in FW * send_set_active_apf_mode_cmd_tlv() - configure active APF mode in FW
* @wmi_handle: the WMI handle * @wmi_handle: the WMI handle
* @vdev_id: the Id of the vdev to apply the configuration to * @vdev_id: the Id of the vdev to apply the configuration to
* @ucast_mode: the active BPF mode to configure for unicast packets * @ucast_mode: the active APF mode to configure for unicast packets
* @mcast_bcast_mode: the active BPF mode to configure for multicast/broadcast * @mcast_bcast_mode: the active APF mode to configure for multicast/broadcast
* packets * packets
* *
* Return: QDF status * Return: QDF status
*/ */
QDF_STATUS QDF_STATUS
send_set_active_bpf_mode_cmd_tlv(wmi_unified_t wmi_handle, send_set_active_apf_mode_cmd_tlv(wmi_unified_t wmi_handle,
uint8_t vdev_id, uint8_t vdev_id,
enum wmi_host_active_bpf_mode ucast_mode, enum wmi_host_active_apf_mode ucast_mode,
enum wmi_host_active_bpf_mode enum wmi_host_active_apf_mode
mcast_bcast_mode); mcast_bcast_mode);
#endif /* _WMI_UNIFIED_APF_TLV_H_ */ #endif /* _WMI_UNIFIED_APF_TLV_H_ */

View File

@@ -1097,17 +1097,18 @@ QDF_STATUS wmi_unified_set_per_roam_config(void *wmi_hdl,
struct wmi_per_roam_config_req *req_buf); struct wmi_per_roam_config_req *req_buf);
/** /**
* wmi_unified_set_active_bpf_mode_cmd() - config active BPF mode in FW * wmi_unified_set_active_apf_mode_cmd() - config active APF mode in FW
* @wmi_hdl: the WMI handle * @wmi_hdl: the WMI handle
* @vdev_id: the Id of the vdev to apply the configuration to * @vdev_id: the Id of the vdev to apply the configuration to
* @ucast_mode: the active BPF mode to configure for unicast packets * @ucast_mode: the active APF mode to configure for unicast packets
* @mcast_bcast_mode: the active BPF mode to configure for multicast/broadcast * @mcast_bcast_mode: the active APF mode to configure for multicast/broadcast
* packets * packets
*/ */
QDF_STATUS wmi_unified_set_active_bpf_mode_cmd(void *wmi_hdl, QDF_STATUS
uint8_t vdev_id, wmi_unified_set_active_apf_mode_cmd(void *wmi_hdl, uint8_t vdev_id,
enum wmi_host_active_bpf_mode ucast_mode, enum wmi_host_active_apf_mode ucast_mode,
enum wmi_host_active_bpf_mode mcast_bcast_mode); enum wmi_host_active_apf_mode
mcast_bcast_mode);
QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl, QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
uint8_t macaddr[IEEE80211_ADDR_LEN], uint8_t macaddr[IEEE80211_ADDR_LEN],

View File

@@ -5503,7 +5503,7 @@ typedef enum {
wmi_ap_ps_egap_info_event_id, wmi_ap_ps_egap_info_event_id,
wmi_peer_assoc_conf_event_id, wmi_peer_assoc_conf_event_id,
wmi_vdev_delete_resp_event_id, wmi_vdev_delete_resp_event_id,
wmi_bpf_capability_info_event_id, wmi_apf_capability_info_event_id,
wmi_vdev_encrypt_decrypt_data_rsp_event_id, wmi_vdev_encrypt_decrypt_data_rsp_event_id,
wmi_report_rx_aggr_failure_event_id, wmi_report_rx_aggr_failure_event_id,
wmi_pdev_chip_pwr_save_failure_detect_event_id, wmi_pdev_chip_pwr_save_failure_detect_event_id,
@@ -5908,7 +5908,7 @@ typedef enum {
wmi_service_sta_pmf_offload, wmi_service_sta_pmf_offload,
wmi_service_unified_wow_capability, wmi_service_unified_wow_capability,
wmi_service_enterprise_mesh, wmi_service_enterprise_mesh,
wmi_service_bpf_offload, wmi_service_apf_offload,
wmi_service_sync_delete_cmds, wmi_service_sync_delete_cmds,
wmi_service_ratectrl_limit_max_min_rates, wmi_service_ratectrl_limit_max_min_rates,
wmi_service_nan_data, wmi_service_nan_data,
@@ -6065,7 +6065,7 @@ struct wmi_host_fw_abi_ver {
* @num_packet_filters: maximum number of packet filter rules to support * @num_packet_filters: maximum number of packet filter rules to support
* @num_max_sta_vdevs: maximum number of concurrent station vdevs to support * @num_max_sta_vdevs: maximum number of concurrent station vdevs to support
* @num_ns_ext_tuples_cfg: * @num_ns_ext_tuples_cfg:
* @bpf_instruction_size: * @apf_instruction_size:
* @max_bssid_rx_filters: * @max_bssid_rx_filters:
* @use_pdev_id: * @use_pdev_id:
* @max_num_dbs_scan_duty_cycle: max dbs can duty cycle value * @max_num_dbs_scan_duty_cycle: max dbs can duty cycle value
@@ -6140,7 +6140,7 @@ typedef struct {
uint32_t num_packet_filters; uint32_t num_packet_filters;
uint32_t num_max_sta_vdevs; uint32_t num_max_sta_vdevs;
uint32_t num_ns_ext_tuples_cfg; uint32_t num_ns_ext_tuples_cfg;
uint32_t bpf_instruction_size; uint32_t apf_instruction_size;
uint32_t max_bssid_rx_filters; uint32_t max_bssid_rx_filters;
uint32_t use_pdev_id; uint32_t use_pdev_id;
uint32_t max_num_dbs_scan_duty_cycle; uint32_t max_num_dbs_scan_duty_cycle;
@@ -7943,16 +7943,16 @@ struct pdev_csa_switch_count_status {
}; };
/** /**
* enum wmi_host_active-bpf_mode - FW_ACTIVE_BPF_MODE, replicated from FW header * enum wmi_host_active-apf_mode - FW_ACTIVE_APF_MODE, replicated from FW header
* @WMI_HOST_ACTIVE_BPF_DISABLED: BPF is disabled for all packets in active mode * @WMI_HOST_ACTIVE_APF_DISABLED: APF 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_APF_ENABLED: APF is enabled for all packets in active mode
* @WMI_HOST_ACTIVE_BPF_ADAPTIVE: BPF is enabled for packets up to some * @WMI_HOST_ACTIVE_APF_ADAPTIVE: APF is enabled for packets up to some
* threshold in active mode * threshold in active mode
*/ */
enum wmi_host_active_bpf_mode { enum wmi_host_active_apf_mode {
WMI_HOST_ACTIVE_BPF_DISABLED = (1 << 1), WMI_HOST_ACTIVE_APF_DISABLED = (1 << 1),
WMI_HOST_ACTIVE_BPF_ENABLED = (1 << 2), WMI_HOST_ACTIVE_APF_ENABLED = (1 << 2),
WMI_HOST_ACTIVE_BPF_ADAPTIVE = (1 << 3) WMI_HOST_ACTIVE_APF_ADAPTIVE = (1 << 3)
}; };
/** /**

View File

@@ -811,10 +811,10 @@ QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle,
struct ext_scan_setbssi_hotlist_params * struct ext_scan_setbssi_hotlist_params *
photlist, int *buf_len); photlist, int *buf_len);
QDF_STATUS (*send_set_active_bpf_mode_cmd)(wmi_unified_t wmi_handle, QDF_STATUS
uint8_t vdev_id, (*send_set_active_apf_mode_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
enum wmi_host_active_bpf_mode ucast_mode, enum wmi_host_active_apf_mode ucast_mode,
enum wmi_host_active_bpf_mode mcast_bcast_mode); enum wmi_host_active_apf_mode mcast_bcast_mode);
QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle,
uint32_t param); uint32_t param);