target_if_crypto.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) 2019 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  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. /**
  20. * DOC: declares crypto functions interfacing with the target
  21. */
  22. #ifndef __TARGET_IF_CRYPTO_H__
  23. #define __TARGET_IF_CRYPTO_H__
  24. #include <wlan_lmac_if_def.h>
  25. /**
  26. * target_if_crypto_register_tx_ops() - lmac handler to register
  27. * crypto tx_ops callback functions
  28. * @tx_ops: wlan_lmac_if_tx_ops object
  29. *
  30. * Return: QDF_STATUS
  31. */
  32. QDF_STATUS target_if_crypto_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
  33. /**
  34. * target_if_crypto_set_key() - lmac handler to set key
  35. * @vdev: VDEV object pointer
  36. * @req: Key parameters that are required to install the key
  37. * @key_type: Pairwise or Group Key type
  38. *
  39. * Return: QDF_STATUS
  40. */
  41. QDF_STATUS target_if_crypto_set_key(struct wlan_objmgr_vdev *vdev,
  42. struct wlan_crypto_key *req,
  43. enum wlan_crypto_key_type key_type);
  44. /**
  45. * target_if_crypto_vdev_set_param() - Set crypto related vdev params to fw
  46. * @psoc: Pointer to psoc
  47. * @vdev_id: vdev id
  48. * @param_id: param id
  49. * @param_value: param value
  50. *
  51. * Return: QDF_STATUS
  52. */
  53. QDF_STATUS
  54. target_if_crypto_vdev_set_param(struct wlan_objmgr_psoc *psoc, uint32_t vdev_id,
  55. uint32_t param_id, uint32_t param_value);
  56. #endif