1 /*
2 * Copyright (c) 2022 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 * DOC: declare WIFI POS ucfg APIs exposed by the mlme component
18 */
19
20 #ifndef _WLAN_WIFI_POS_UCFG_API_H_
21 #define _WLAN_WIFI_POS_UCFG_API_H_
22
23 #include <wlan_objmgr_vdev_obj.h>
24 #include "wma_if.h"
25 #include "wlan_wifi_pos_interface.h"
26 #include "os_if_wifi_pos_utils.h"
27
28 #if defined(WIFI_POS_CONVERGED) && defined(WLAN_FEATURE_RTT_11AZ_SUPPORT)
29 /**
30 * ucfg_wifi_pos_psoc_open - Wifi pos module PSOC open api
31 * @psoc: Pointer to PSOC object
32 *
33 * Return: QDF_STATUS
34 */
35 QDF_STATUS
36 ucfg_wifi_pos_psoc_open(struct wlan_objmgr_psoc *psoc);
37
38 /**
39 * ucfg_wifi_pos_psoc_close - Wifi pos module PSOC close api
40 * @psoc: Pointer to PSOC object
41 *
42 * Return: QDF_STATUS
43 */
44 QDF_STATUS
45 ucfg_wifi_pos_psoc_close(struct wlan_objmgr_psoc *psoc);
46 #
47 #else
48 static inline QDF_STATUS
ucfg_wifi_pos_psoc_open(struct wlan_objmgr_psoc * psoc)49 ucfg_wifi_pos_psoc_open(struct wlan_objmgr_psoc *psoc)
50 {
51 return QDF_STATUS_SUCCESS;
52 }
53
54 static inline QDF_STATUS
ucfg_wifi_pos_psoc_close(struct wlan_objmgr_psoc * psoc)55 ucfg_wifi_pos_psoc_close(struct wlan_objmgr_psoc *psoc)
56 {
57 return QDF_STATUS_SUCCESS;
58 }
59 #endif /* WIFI_POS_CONVERGED && WLAN_FEATURE_RTT_11AZ_SUPPORT */
60 #endif /* _WLAN_WIFI_POS_UCFG_API_H_ */
61