xref: /wlan-dirver/qca-wifi-host-cmn/wmi/inc/wmi_unified_11be_api.h (revision 901120c066e139c7f8a2c8e4820561fdd83c67ef)
1 /*
2  * Copyright (c) 2021, The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 /*
18  * This file contains the API definitions for the Unified Wireless Module
19  * Interface (WMI) specific to 11be.
20  */
21 
22 #ifndef _WMI_UNIFIED_11BE_API_H_
23 #define _WMI_UNIFIED_11BE_API_H_
24 
25 #include <wmi_unified_api.h>
26 #include <wmi_unified_priv.h>
27 
28 #ifdef WLAN_FEATURE_11BE_MLO
29 /**
30  * wmi_extract_mlo_link_set_active_resp() - extract mlo link set active
31  *  response event
32  * @wmi: wmi handle
33  * @evt_buf: pointer to event buffer
34  * @evt: Pointer to hold mlo link set active response event
35  *
36  * This function gets called to extract mlo link set active response event
37  *
38  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
39  */
40 QDF_STATUS
41 wmi_extract_mlo_link_set_active_resp(wmi_unified_t wmi,
42 				     void *evt_buf,
43 				     struct mlo_link_set_active_resp *evt);
44 
45 /**
46  * wmi_send_mlo_link_set_active_cmd() - send mlo link set active command
47  * @wmi: WMI handle for this pdev
48  * @param: Pointer to mlo link set active param
49  *
50  * Return: QDF_STATUS code
51  */
52 QDF_STATUS
53 wmi_send_mlo_link_set_active_cmd(wmi_unified_t wmi_handle,
54 				 struct mlo_link_set_active_param *param);
55 #endif /*WLAN_FEATURE_11BE_MLO*/
56 
57 #ifdef WLAN_FEATURE_11BE
58 /**
59  * wmi_send_mlo_peer_tid_to_link_map_cmd() - send TID-to-link mapping command
60  * @wmi: WMI handle for this pdev
61  * @params: Pointer to TID-to-link mapping params
62  */
63 QDF_STATUS wmi_send_mlo_peer_tid_to_link_map_cmd(
64 		wmi_unified_t wmi,
65 		struct wmi_host_tid_to_link_map_params *params);
66 #endif /* WLAN_FEATURE_11BE */
67 
68 #endif /*_WMI_UNIFIED_11BE_API_H_*/
69