xref: /wlan-driver/qcacld-3.0/components/wifi_pos/dispatcher/inc/wifi_pos_ucfg_api.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name  *
8*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name  */
16*5113495bSYour Name /**
17*5113495bSYour Name  * DOC: declare WIFI POS ucfg APIs exposed by the mlme component
18*5113495bSYour Name  */
19*5113495bSYour Name 
20*5113495bSYour Name #ifndef _WLAN_WIFI_POS_UCFG_API_H_
21*5113495bSYour Name #define _WLAN_WIFI_POS_UCFG_API_H_
22*5113495bSYour Name 
23*5113495bSYour Name #include <wlan_objmgr_vdev_obj.h>
24*5113495bSYour Name #include "wma_if.h"
25*5113495bSYour Name #include "wlan_wifi_pos_interface.h"
26*5113495bSYour Name #include "os_if_wifi_pos_utils.h"
27*5113495bSYour Name 
28*5113495bSYour Name #if defined(WIFI_POS_CONVERGED) && defined(WLAN_FEATURE_RTT_11AZ_SUPPORT)
29*5113495bSYour Name /**
30*5113495bSYour Name  * ucfg_wifi_pos_psoc_open  - Wifi pos module PSOC open api
31*5113495bSYour Name  * @psoc: Pointer to PSOC object
32*5113495bSYour Name  *
33*5113495bSYour Name  * Return: QDF_STATUS
34*5113495bSYour Name  */
35*5113495bSYour Name QDF_STATUS
36*5113495bSYour Name ucfg_wifi_pos_psoc_open(struct wlan_objmgr_psoc *psoc);
37*5113495bSYour Name 
38*5113495bSYour Name /**
39*5113495bSYour Name  * ucfg_wifi_pos_psoc_close  - Wifi pos module PSOC close api
40*5113495bSYour Name  * @psoc: Pointer to PSOC object
41*5113495bSYour Name  *
42*5113495bSYour Name  * Return: QDF_STATUS
43*5113495bSYour Name  */
44*5113495bSYour Name QDF_STATUS
45*5113495bSYour Name ucfg_wifi_pos_psoc_close(struct wlan_objmgr_psoc *psoc);
46*5113495bSYour Name #
47*5113495bSYour Name #else
48*5113495bSYour Name static inline QDF_STATUS
ucfg_wifi_pos_psoc_open(struct wlan_objmgr_psoc * psoc)49*5113495bSYour Name ucfg_wifi_pos_psoc_open(struct wlan_objmgr_psoc *psoc)
50*5113495bSYour Name {
51*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
52*5113495bSYour Name }
53*5113495bSYour Name 
54*5113495bSYour Name static inline QDF_STATUS
ucfg_wifi_pos_psoc_close(struct wlan_objmgr_psoc * psoc)55*5113495bSYour Name ucfg_wifi_pos_psoc_close(struct wlan_objmgr_psoc *psoc)
56*5113495bSYour Name {
57*5113495bSYour Name 	return QDF_STATUS_SUCCESS;
58*5113495bSYour Name }
59*5113495bSYour Name #endif /* WIFI_POS_CONVERGED && WLAN_FEATURE_RTT_11AZ_SUPPORT */
60*5113495bSYour Name #endif /* _WLAN_WIFI_POS_UCFG_API_H_ */
61