xref: /wlan-driver/qcacld-3.0/components/wmi/inc/wmi_unified_ll_sap_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #include "qdf_status.h"
18 #include "wlan_ll_sap_public_structs.h"
19 #include "wmi_unified_param.h"
20 
21 #ifdef WLAN_FEATURE_LL_LT_SAP
22 /**
23  * wmi_unified_audio_transport_switch_resp_send() - Send audio transport switch
24  * response to fw
25  * @wmi_hdl: WMI handle
26  * @req_type: Bearer switch request type
27  * @status: Status of the bearer switch request
28  *
29  * Return: QDF_STATUS
30  */
31 QDF_STATUS wmi_unified_audio_transport_switch_resp_send(
32 					wmi_unified_t wmi_hdl,
33 					enum bearer_switch_req_type req_type,
34 					enum bearer_switch_status status);
35 
36 /**
37  * wmi_extract_audio_transport_switch_req_event() - Extract audio transport
38  * switch request from fw
39  * @wmi_handle: WMI handle
40  * @event: WMI event from fw
41  * @len: Length of the event
42  * @req_type: Type of the bearer switch request from fw
43  *
44  * Return: QDF_STATUS
45  */
46 QDF_STATUS
47 wmi_extract_audio_transport_switch_req_event(
48 				wmi_unified_t wmi_handle,
49 				uint8_t *event, uint32_t len,
50 				enum bearer_switch_req_type *req_type);
51 #endif
52