From 125754ed8d58a1c9f4688cf2abb52ea81a94d430 Mon Sep 17 00:00:00 2001 From: Sathish Kumar Date: Mon, 24 Apr 2017 11:36:00 +0530 Subject: [PATCH] qcacmn: Add support for WMI_COEX_CONFIG command Add support in WMI layer to configure coex config command for lithium based chipsets CRs-Fixed: 2037499 Change-Id: Ib83407524bd3b5cdad28f73a6ccc36d4a0271779 --- wmi_unified_api.h | 3 +++ wmi_unified_param.h | 22 ++++++++++++++++++++++ wmi_unified_priv.h | 4 ++++ 3 files changed, 29 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 9719beda49..a511146b82 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -940,6 +940,9 @@ QDF_STATUS wmi_unified_send_btcoex_duty_cycle_cmd(void *wmi_hdl, QDF_STATUS wmi_unified_send_coex_ver_cfg_cmd(void *wmi_hdl, coex_ver_cfg_t *param); +QDF_STATUS wmi_unified_send_coex_config_cmd(void *wmi_hdl, + struct coex_config_params *param); + QDF_STATUS wmi_unified_set_atf_cmd_send(void *wmi_hdl, struct set_atf_params *param); diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 31b226be70..9eb467b820 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -7164,4 +7164,26 @@ enum wmi_host_active_bpf_mode { WMI_HOST_ACTIVE_BPF_ADAPTIVE = (1 << 3) }; +/** + * struct coex_config_params - Coex config command params + * @vdev_id: Virtual AP device identifier + * @config_type: Configuration type - wmi_coex_config_type enum + * @config_arg1: Configuration argument based on config type + * @config_arg2: Configuration argument based on config type + * @config_arg3: Configuration argument based on config type + * @config_arg4: Configuration argument based on config type + * @config_arg5: Configuration argument based on config type + * @config_arg6: Configuration argument based on config type + */ +struct coex_config_params { + uint32_t vdev_id; + uint32_t config_type; + uint32_t config_arg1; + uint32_t config_arg2; + uint32_t config_arg3; + uint32_t config_arg4; + uint32_t config_arg5; + uint32_t config_arg6; +}; + #endif /* _WMI_UNIFIED_PARAM_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 74dc3ba0cf..66496ebf24 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1030,6 +1030,10 @@ QDF_STATUS QDF_STATUS (*send_coex_ver_cfg_cmd)(wmi_unified_t wmi_handle, coex_ver_cfg_t *param); +QDF_STATUS +(*send_coex_config_cmd)(wmi_unified_t wmi_handle, + struct coex_config_params *param); + QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle, void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);