qcacmn: Add infra to support DBAM feature

Add infra to support Dedicated Bluetooth Antenna Mode (DBAM)
feature. It is used to switch between dedicated antenna for
BT and shared antenna for WLAN and BT.

Change-Id: I21688093674ef9b63ee811df9168a31bd71c56b5
CRs-Fixed: 3239895
This commit is contained in:
Aditya Kodukula
2022-07-09 17:25:28 -07:00
committed by Madan Koyyalamudi
parent c9493c28ee
commit ec13c2ea39
9 changed files with 282 additions and 0 deletions

View File

@@ -123,6 +123,10 @@
#include "wmi_unified_11be_setup_api.h"
#endif
#ifdef WLAN_FEATURE_DBAM_CONFIG
#include "wlan_coex_public_structs.h"
#endif
typedef qdf_nbuf_t wmi_buf_t;
#define wmi_buf_data(_buf) qdf_nbuf_data(_buf)
@@ -1993,6 +1997,32 @@ wmi_unified_send_coex_ver_cfg_cmd(wmi_unified_t wmi_handle,
QDF_STATUS
wmi_unified_send_coex_config_cmd(wmi_unified_t wmi_handle,
struct coex_config_params *param);
#ifdef WLAN_FEATURE_DBAM_CONFIG
/**
* wmi_unified_send_dbam_config_cmd() - send dbam config command
* @wmi_handle: wmi handle
* @mode: dbam config mode param
*
* Send WMI_COEX_DBAM_CMD param to fw.
*
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/
QDF_STATUS
wmi_unified_send_dbam_config_cmd(wmi_unified_t wmi_handle,
struct coex_dbam_config_params *param);
/**
* wmi_extract_dbam_config_response() - extract dbam config resp sent by FW
* @wmi_handle: wmi handle
* @evt_buf: pointer to event buffer
* @resp: struct containing dbam config response sent by FW
*
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/
QDF_STATUS
wmi_extract_dbam_config_response(wmi_unified_t wmi_handle, void *evt_buf,
struct coex_dbam_config_resp *resp);
#endif
/**
* wmi_unified_pdev_fips_cmd_send() - WMI pdev fips cmd function