xref: /wlan-dirver/qca-wifi-host-cmn/wmi/inc/wmi_unified_11be_setup_api.h (revision 2f4b444fb7e689b83a4ab0e7b3b38f0bf4def8e0)
1 /*
2  * Copyright (c) 2021, The Linux Foundation. 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 #ifndef _WMI_UNIFIED_11BE_API_H_
18 #define _WMI_UNIFIED_11BE_API_H_
19 
20 #include <wmi_unified_11be_param.h>
21 
22 #ifdef WLAN_FEATURE_11BE_MLO
23 /**
24  *  wmi_mlo_setup_cmd_send() - Send MLO setup command
25  *  @wmi_handle: WMI handle for this pdev
26  *  @params: MLO setup params
27  *
28  *  Return: QDF_STATUS code
29  */
30 QDF_STATUS wmi_mlo_setup_cmd_send(wmi_unified_t wmi_handle,
31 				  struct wmi_mlo_setup_params *params);
32 
33 /**
34  *  wmi_mlo_teardown_cmd_send() - Send MLO teardown command
35  *  @wmi_handle: WMI handle for this pdev
36  *  @params: MLO teardown params
37  *
38  *  Return: QDF_STATUS code
39  */
40 QDF_STATUS wmi_mlo_teardown_cmd_send(wmi_unified_t wmi_handle,
41 				     struct wmi_mlo_teardown_params *params);
42 
43 /**
44  *  wmi_mlo_ready_cmd_send() - Send MLO ready command
45  *  @wmi_handle: WMI handle for this pdev
46  *  @params: MLO ready params
47  *
48  *  Return: QDF_STATUS code
49  */
50 QDF_STATUS wmi_mlo_ready_cmd_send(wmi_unified_t wmi_handle,
51 				  struct wmi_mlo_ready_params *params);
52 
53 /**
54  *  wmi_extract_mlo_setup_cmpl_event() - Extract MLO setup completion event
55  *  @wmi_handle: WMI handle for this pdev
56  *  @buf: Event buffer
57  *  @params: MLO setup event params
58  *
59  *  Return: QDF_STATUS code
60  */
61 QDF_STATUS
62 wmi_extract_mlo_setup_cmpl_event(wmi_unified_t wmi_handle,
63 				 uint8_t *buf,
64 				 struct wmi_mlo_setup_complete_params *params);
65 
66 /**
67  *  wmi_extract_mlo_teardown_cmpl_event() - Extract MLO teardown completion
68  *  @wmi_handle: WMI handle for this pdev
69  *  @buf: Event buffer
70  *  @params: MLO teardown event params
71  *
72  *  Return: QDF_STATUS code
73  */
74 QDF_STATUS
75 wmi_extract_mlo_teardown_cmpl_event(wmi_unified_t wmi_handle,
76 				    uint8_t *buf,
77 				    struct wmi_mlo_teardown_cmpl_params *param);
78 #endif /*WLAN_FEATURE_11BE_MLO*/
79 #endif /*_WMI_UNIFIED_11BE_API_H_*/
80