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