wlan_dp_api.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. #include "wlan_dp_main.h"
  21. #include "wlan_dp_api.h"
  22. #include <wlan_dp_fisa_rx.h>
  23. void wlan_dp_update_peer_map_unmap_version(uint8_t *version)
  24. {
  25. __wlan_dp_update_peer_map_unmap_version(version);
  26. }
  27. QDF_STATUS wlan_dp_runtime_suspend(ol_txrx_soc_handle soc, uint8_t pdev_id)
  28. {
  29. return __wlan_dp_runtime_suspend(soc, pdev_id);
  30. }
  31. QDF_STATUS wlan_dp_runtime_resume(ol_txrx_soc_handle soc, uint8_t pdev_id)
  32. {
  33. return __wlan_dp_runtime_resume(soc, pdev_id);
  34. }
  35. void wlan_dp_print_fisa_rx_stats(enum cdp_fisa_stats_id stats_id)
  36. {
  37. dp_print_fisa_rx_stats(stats_id);
  38. }
  39. void wlan_dp_set_fst_in_cmem(bool fst_in_cmem)
  40. {
  41. dp_set_fst_in_cmem(fst_in_cmem);
  42. }
  43. void wlan_dp_set_fisa_dynamic_aggr_size_support(bool dynamic_aggr_size_support)
  44. {
  45. dp_set_fisa_dynamic_aggr_size_support(dynamic_aggr_size_support);
  46. }
  47. #ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
  48. bool wlan_dp_is_local_pkt_capture_enabled(struct wlan_objmgr_psoc *psoc)
  49. {
  50. void *soc = cds_get_context(QDF_MODULE_ID_SOC);
  51. return cdp_cfg_get(soc, cfg_dp_local_pkt_capture);
  52. }
  53. #endif
  54. void wlan_dp_update_def_link(struct wlan_objmgr_psoc *psoc,
  55. struct qdf_mac_addr *intf_mac,
  56. struct wlan_objmgr_vdev *vdev)
  57. {
  58. __wlan_dp_update_def_link(psoc, intf_mac, vdev);
  59. }