xref: /wlan-dirver/qca-wifi-host-cmn/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_ap.h (revision 97f44cd39e4ff816eaa1710279d28cf6b9e65ad9)
1 /*
2  * Copyright (c) 2020, 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 /*
18  * DOC: contains interface manager public file containing AP event handlers
19  */
20 
21 #ifndef _WLAN_IF_MGR_AP_H_
22 #define _WLAN_IF_MGR_AP_H_
23 
24 /**
25  * if_mgr_ap_start_bss() - Start BSS event handler
26  * @vdev: vdev object
27  * @event_data: Interface mgr event data
28  *
29  * Interface manager start bss event handler
30  *
31  * Context: It should run in thread context
32  *
33  * Return: QDF_STATUS
34  */
35 QDF_STATUS
36 if_mgr_ap_start_bss(struct wlan_objmgr_vdev *vdev,
37 		    struct if_mgr_event_data *event_data);
38 
39 /**
40  * if_mgr_ap_start_bss_complete() - Start BSS complete event handler
41  * @vdev: vdev object
42  * @event_data: Interface mgr event data
43  *
44  * Interface manager start bss complete event handler
45  *
46  * Context: It should run in thread context
47  *
48  * Return: QDF_STATUS
49  */
50 QDF_STATUS
51 if_mgr_ap_start_bss_complete(struct wlan_objmgr_vdev *vdev,
52 			     struct if_mgr_event_data *event_data);
53 
54 /**
55  * if_mgr_ap_stop_bss() - Stop BSS event handler
56  * @vdev: vdev object
57  * @event_data: Interface mgr event data
58  *
59  * Interface manager stop bss event handler
60  *
61  * Context: It should run in thread context
62  *
63  * Return: QDF_STATUS
64  */
65 QDF_STATUS
66 if_mgr_ap_stop_bss(struct wlan_objmgr_vdev *vdev,
67 		   struct if_mgr_event_data *event_data);
68 
69 /**
70  * if_mgr_ap_stop_bss_complete() - Stop BSS event complete handler
71  * @vdev: vdev object
72  * @event_data: Interface mgr event data
73  *
74  * Interface manager stop bss complete event handler
75  *
76  * Context: It should run in thread context
77  *
78  * Return: QDF_STATUS
79  */
80 QDF_STATUS
81 if_mgr_ap_stop_bss_complete(struct wlan_objmgr_vdev *vdev,
82 			    struct if_mgr_event_data *event_data);
83 
84 #endif
85