xref: /wlan-dirver/qca-wifi-host-cmn/target_if/son/inc/target_if_son.h (revision 901120c066e139c7f8a2c8e4820561fdd83c67ef)
1 /*
2  * Copyright (c) 2017,2020 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  *
6  * Permission to use, copy, modify, and/or distribute this software for
7  * any purpose with or without fee is hereby granted, provided that the
8  * above copyright notice and this permission notice appear in all
9  * copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
12  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
13  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
14  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
15  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
16  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
17  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18  * PERFORMANCE OF THIS SOFTWARE.
19  */
20 #include <ol_if_athvar.h>
21 #include <wlan_objmgr_cmn.h>
22 #include <wlan_objmgr_psoc_obj.h>
23 #include <wlan_objmgr_pdev_obj.h>
24 #include <wlan_objmgr_vdev_obj.h>
25 #include <wlan_objmgr_peer_obj.h>
26 
27 void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
28 
29 u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type);
30 
31 QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
32 			    u_int8_t *macaddr,
33 			    struct wlan_objmgr_vdev *vdev);
34 
35 #if defined(WMI_NON_TLV_SUPPORT) || defined(WMI_TLV_AND_NON_TLV_SUPPORT)
36 QDF_STATUS son_ol_peer_ext_stats_enable(struct wlan_objmgr_pdev *pdev,
37 					uint8_t *peer_addr,
38 					struct wlan_objmgr_vdev *vdev,
39 					uint32_t stats_count, uint32_t enable);
40 #else
41 static inline QDF_STATUS son_ol_peer_ext_stats_enable(
42 					struct wlan_objmgr_pdev *pdev,
43 					uint8_t *peer_addr,
44 					struct wlan_objmgr_vdev *vdev,
45 					uint32_t stats_count, uint32_t enable)
46 {
47 	return QDF_STATUS_SUCCESS;
48 }
49 #endif
50