target_if_tdls.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. * Copyright (c) 2017 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: offload lmac interface APIs for tdls
  20. *
  21. */
  22. #ifndef __TARGET_IF_TDLS_H__
  23. #define __TARGET_IF_TDLS_H__
  24. struct tdls_info;
  25. struct wlan_objmgr_psoc;
  26. struct tdls_peer_update_state;
  27. struct tdls_channel_switch_params;
  28. struct sta_uapsd_trig_params;
  29. /**
  30. * target_if_tdls_update_fw_state() - lmac handler to update tdls fw state
  31. * @psoc: psoc object
  32. * @param: tdls state parameter
  33. *
  34. * Return: QDF_STATUS
  35. */
  36. QDF_STATUS
  37. target_if_tdls_update_fw_state(struct wlan_objmgr_psoc *psoc,
  38. struct tdls_info *param);
  39. /**
  40. * target_if_tdls_update_peer_state() - lmac handler to update tdls peer state
  41. * @psoc: psoc object
  42. * @peer_params: tdls peer state params
  43. *
  44. * Return: QDF_STATUS
  45. */
  46. QDF_STATUS
  47. target_if_tdls_update_peer_state(struct wlan_objmgr_psoc *psoc,
  48. struct tdls_peer_update_state *peer_params);
  49. /**
  50. * target_if_tdls_set_offchan_mode() - lmac handler to set tdls off channel mode
  51. * @psoc: psoc object
  52. * @params: tdls channel swithc params
  53. *
  54. * Return: QDF_STATUS
  55. */
  56. QDF_STATUS
  57. target_if_tdls_set_offchan_mode(struct wlan_objmgr_psoc *psoc,
  58. struct tdls_channel_switch_params *params);
  59. /**
  60. * target_if_tdls_set_uapsd() - lmac handler to set uapsd auto trigger cmd
  61. * @psoc: psoc object
  62. * @params: upasd parameters
  63. *
  64. * This function sets the trigger
  65. * uapsd params such as service interval, delay interval
  66. * and suspend interval which will be used by the firmware
  67. * to send trigger frames periodically when there is no
  68. * traffic on the transmit side.
  69. *
  70. * Return: QDF_STATUS
  71. */
  72. QDF_STATUS
  73. target_if_tdls_set_uapsd(struct wlan_objmgr_psoc *psoc,
  74. struct sta_uapsd_trig_params *params);
  75. /**
  76. * target_if_tdls_register_event_handler() - lmac handler to register tdls event
  77. * handler
  78. * @psoc : psoc object
  79. * @arg: argument passed to lmac
  80. *
  81. * Return: QDF_STATUS
  82. */
  83. QDF_STATUS
  84. target_if_tdls_register_event_handler(struct wlan_objmgr_psoc *psoc,
  85. void *arg);
  86. /**
  87. * target_if_tdls_unregister_event_handler() - lmac handler to unregister tdls
  88. * event handler
  89. * @psoc : psoc object
  90. * @arg: argument passed to lmac
  91. *
  92. * Return: QDF_STATUS
  93. */
  94. QDF_STATUS
  95. target_if_tdls_unregister_event_handler(struct wlan_objmgr_psoc *psoc,
  96. void *arg);
  97. /**
  98. * target_if_tdls_register_tx_ops() - lmac handler to register tdls tx ops
  99. * callback functions
  100. * @tx_ops: wlan_lmac_if_tx_ops object
  101. *
  102. * Return: QDF_STATUS
  103. */
  104. QDF_STATUS
  105. target_if_tdls_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
  106. #endif