xref: /wlan-driver/qca-wifi-host-cmn/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_ucfg_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
3  * Copyright (c) 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 /*
19  * DOC: contains interface manager public api
20  */
21 
22 #ifndef _WLAN_IF_MGR_UCFG_API_H_
23 #define _WLAN_IF_MGR_UCFG_API_H_
24 
25 #include <scheduler_api.h>
26 #include <wlan_objmgr_psoc_obj.h>
27 #include <wlan_objmgr_pdev_obj.h>
28 #include <wlan_objmgr_vdev_obj.h>
29 #include "wlan_if_mgr_api.h"
30 
31 /**
32  * ucfg_if_mgr_deliver_event() - interface mgr event handler
33  * @vdev: vdev object
34  * @event: interface manager event
35  * @event_data: Interface mgr event data
36  *
37  * Return: QDF_STATUS
38  */
39 static inline
ucfg_if_mgr_deliver_event(struct wlan_objmgr_vdev * vdev,enum wlan_if_mgr_evt event,struct if_mgr_event_data * event_data)40 QDF_STATUS ucfg_if_mgr_deliver_event(struct wlan_objmgr_vdev *vdev,
41 				     enum wlan_if_mgr_evt event,
42 				     struct if_mgr_event_data *event_data)
43 {
44 	return if_mgr_deliver_event(vdev, event, event_data);
45 }
46 
47 #endif
48