target_if_son.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (c) 2017 The Linux Foundation. All rights reserved.
  3. *
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. #include <ol_if_athvar.h>
  20. #include <wlan_objmgr_cmn.h>
  21. #include <wlan_objmgr_psoc_obj.h>
  22. #include <wlan_objmgr_pdev_obj.h>
  23. #include <wlan_objmgr_vdev_obj.h>
  24. #include <wlan_objmgr_peer_obj.h>
  25. void target_if_son_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
  26. bool son_ol_is_peer_inact(struct wlan_objmgr_peer *);
  27. u_int32_t son_ol_get_peer_rate(struct wlan_objmgr_peer *peer, u_int8_t type);
  28. int8_t son_ol_sanitize_util_invtl(struct wlan_objmgr_pdev *pdev,
  29. u_int32_t *sample_period,
  30. u_int32_t *num_of_sample);
  31. bool son_ol_enable(struct wlan_objmgr_pdev *pdev, bool enable);
  32. /* Function pointer to set overload status */
  33. void son_ol_set_overload(struct wlan_objmgr_pdev *pdev, bool overload);
  34. /* Function pointer to set band steering parameters */
  35. bool son_ol_set_params(struct wlan_objmgr_pdev *pdev,
  36. u_int32_t inactivity_check_period,
  37. u_int32_t inactivity_threshold_normal,
  38. u_int32_t inactivity_threshold_overload);
  39. QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
  40. u_int8_t *macaddr,
  41. struct wlan_objmgr_vdev *vdev);
  42. int son_ol_lmac_create(struct wlan_objmgr_pdev *pdev);
  43. int son_ol_lmac_destroy(struct wlan_objmgr_pdev *pdev);
  44. void son_ol_rx_rssi_update(struct wlan_objmgr_pdev *pdev, u_int8_t *macaddres,
  45. u_int8_t status, int8_t rssi, u_int8_t subtype);
  46. void son_ol_rx_rate_update(struct wlan_objmgr_pdev *pdev, u_int8_t *macaddres,
  47. u_int8_t status, u_int32_t rateKbps);