1 /*
2 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
3 * Copyright (c) 2023 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: Implements CM UTF related functionalities
20 */
21
22 #ifndef WLAN_MLME_CM_UTF_H
23 #define WLAN_MLME_CM_UTF_H
24
25 #include <wlan_objmgr_vdev_obj.h>
26 #include <include/wlan_mlme_cmn.h>
27
28 #ifdef FEATURE_CM_UTF_ENABLE
29 void cm_utf_set_mlme_ops(struct mlme_ext_ops *ext_ops);
30
31 QDF_STATUS cm_utf_register_os_if_cb(void);
32
33 void cm_utf_attach(struct wlan_objmgr_vdev *vdev);
34
35 void cm_utf_detach(struct wlan_objmgr_vdev *vdev);
36 #else
cm_utf_set_mlme_ops(struct mlme_ext_ops * ext_ops)37 static inline void cm_utf_set_mlme_ops(struct mlme_ext_ops *ext_ops)
38 {
39 }
40
cm_utf_register_os_if_cb(void)41 static inline QDF_STATUS cm_utf_register_os_if_cb(void)
42 {
43 return QDF_STATUS_SUCCESS;
44 }
45
cm_utf_attach(struct wlan_objmgr_vdev * vdev)46 static inline void cm_utf_attach(struct wlan_objmgr_vdev *vdev)
47 {
48 }
49
cm_utf_detach(struct wlan_objmgr_vdev * vdev)50 static inline void cm_utf_detach(struct wlan_objmgr_vdev *vdev)
51 {
52 }
53 #endif
54 #endif //WLAN_MLME_CM_UTF_H
55