xref: /wlan-dirver/qcacld-3.0/components/dp/dispatcher/src/wlan_dp_api.c (revision 080e85188dafe29bc908e45fa94377f21a0c9431)
1 /*
2  * Copyright (c) 2023-2024, 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: wlan_dp_api.c
18  *
19  */
20 
21 #include "wlan_dp_main.h"
22 #include "wlan_dp_api.h"
23 #include <wlan_dp_fisa_rx.h>
24 
25 void wlan_dp_update_peer_map_unmap_version(uint8_t *version)
26 {
27 	__wlan_dp_update_peer_map_unmap_version(version);
28 }
29 
30 QDF_STATUS wlan_dp_runtime_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id)
31 {
32 	return __wlan_dp_runtime_suspend(soc, pdev_id);
33 }
34 
35 QDF_STATUS wlan_dp_runtime_resume(ol_txrx_soc_handle soc, uint8_t pdev_id)
36 {
37 	return __wlan_dp_runtime_resume(soc, pdev_id);
38 }
39 
40 void wlan_dp_print_fisa_rx_stats(enum cdp_fisa_stats_id stats_id)
41 {
42 	dp_print_fisa_rx_stats(stats_id);
43 }
44 
45 void wlan_dp_set_fst_in_cmem(bool fst_in_cmem)
46 {
47 	dp_set_fst_in_cmem(fst_in_cmem);
48 }
49 
50 void wlan_dp_set_fisa_dynamic_aggr_size_support(bool dynamic_aggr_size_support)
51 {
52 	dp_set_fisa_dynamic_aggr_size_support(dynamic_aggr_size_support);
53 }
54 
55 #ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
56 bool wlan_dp_is_local_pkt_capture_enabled(struct wlan_objmgr_psoc *psoc)
57 {
58 	void *soc = cds_get_context(QDF_MODULE_ID_SOC);
59 
60 	return cdp_cfg_get(soc, cfg_dp_local_pkt_capture);
61 }
62 #endif
63 
64 void wlan_dp_update_def_link(struct wlan_objmgr_psoc *psoc,
65 			     struct qdf_mac_addr *intf_mac,
66 			     struct wlan_objmgr_vdev *vdev)
67 {
68 	__wlan_dp_update_def_link(psoc, intf_mac, vdev);
69 }
70