xref: /wlan-dirver/qca-wifi-host-cmn/umac/mlo_mgr/inc/wlan_mlo_mgr_op.h (revision 8cfe6b10058a04cafb17eed051f2ddf11bee8931)
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 /*
18  * DOC: contains MLO manager public file containing operation functionality
19  */
20 #ifndef _WLAN_MLO_MGR_OP_H_
21 #define _WLAN_MLO_MGR_OP_H_
22 
23 #include <wlan_mlo_mgr_cmn.h>
24 #include <wlan_mlo_mgr_public_structs.h>
25 
26 #ifdef WLAN_FEATURE_11BE_MLO
27 /**
28  * wlan_mlo_set_cu_bpcc() - set the bpcc per link id
29  * @vdev: vdev object
30  * @bpcc: bss parameters change count
31  *
32  * Return: QDF_STATUS
33  */
34 QDF_STATUS wlan_mlo_set_cu_bpcc(struct wlan_objmgr_vdev *vdev, uint8_t bpcc);
35 
36 /**
37  * wlan_mlo_get_cu_bpcc() - get the bpcc per link id
38  * @vdev: vdev object
39  * @bpcc: the bss parameters change count pointer to save value
40  *
41  * Return: QDF_STATUS
42  */
43 QDF_STATUS wlan_mlo_get_cu_bpcc(struct wlan_objmgr_vdev *vdev, uint8_t *bpcc);
44 
45 /**
46  * wlan_mlo_init_cu_bpcc() - initialize the bpcc for vdev
47  * @vdev: vdev object
48  *
49  * Return: void
50  */
51 void wlan_mlo_init_cu_bpcc(struct wlan_objmgr_vdev *vdev);
52 
53 #else
54 static inline void
55 wlan_mlo_init_cu_bpcc(struct wlan_objmgr_vdev *vdev)
56 { }
57 
58 #endif
59 #endif //_WLAN_MLO_MGR_OP_H_
60