From c5c132164eec2bd60651aea280eef095fec7e1d6 Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Thu, 19 Jan 2017 18:47:43 +0530 Subject: [PATCH] qcacmn: Enable HW broadcast filter Add ini to param to enable/disable HW filter for bc (except arp) frame Change-Id: Iccb68e1816c897a63414fff849f3d505ef6361e5 CRs-Fixed: 1113550 --- wmi_unified_api.h | 14 ++++++++++++++ wmi_unified_priv.h | 3 +++ wmi_unified_tlv.h | 13 +++++++++++++ 3 files changed, 30 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 23985fff57..4bd11c85ce 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -837,6 +837,20 @@ QDF_STATUS wmi_unified_enable_arp_ns_offload_cmd(void *wmi_hdl, bool arp_only, uint8_t vdev_id); +/** + * wmi_unified_configure_broadcast_filter_cmd() - Enable/Disable Broadcast + * filter + * when target goes to wow suspend/resume mode + * @wmi_hdl: wmi handle + * @vdev_id: device identifier + * @bc_filter: enable/disable Broadcast filter + * + * + * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS wmi_unified_configure_broadcast_filter_cmd(void *wmi_hdl, + uint8_t vdev_id, bool bc_filter); + QDF_STATUS wmi_unified_set_led_flashing_cmd(void *wmi_hdl, struct flashing_req_params *flashing); diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 56237ee0cc..422ac9663f 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -179,6 +179,9 @@ QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi, uint8_t vdev_id); +QDF_STATUS (*send_enable_broadcast_filter_cmd)(wmi_unified_t wmi_handle, + uint8_t vdev_id, bool enable); + QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi, uint8_t vdev_id); diff --git a/wmi_unified_tlv.h b/wmi_unified_tlv.h index 8b2f7b2f5a..4a0e28214b 100644 --- a/wmi_unified_tlv.h +++ b/wmi_unified_tlv.h @@ -529,6 +529,19 @@ QDF_STATUS send_enable_arp_ns_offload_cmd_tlv(wmi_unified_t wmi_handle, bool arp_only, uint8_t vdev_id); +/** + * send_enable_broadcast_filter_cmd_tlv() - Enable/Disable Broadcast filter + * when target goes to wow suspend/resume mode + * @wma: wmi handle + * @vdev_id: device identifier + * @enable: enable/disable broadcast filter + * + * + * Return: QDF Status + */ +QDF_STATUS send_enable_broadcast_filter_cmd_tlv(wmi_unified_t wmi_handle, + uint8_t vdev_id, bool enable); + QDF_STATUS send_set_led_flashing_cmd_tlv(wmi_unified_t wmi_handle, struct flashing_req_params *flashing);