wmi_unified_crypto_api.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (c) 2019, 2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2022-2023 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. * This file contains the API definitions for the Unified Wireless Module
  21. * Interface (WMI) specific to crypto component.
  22. */
  23. #ifndef _WMI_UNIFIED_CRYPTO_API_H_
  24. #define _WMI_UNIFIED_CRYPTO_API_H_
  25. /*
  26. * WMI_ADD_CIPHER_KEY_CMDID
  27. */
  28. typedef enum {
  29. PAIRWISE_USAGE = 0x00,
  30. GROUP_USAGE = 0x01,
  31. TX_USAGE = 0x02, /* default Tx Key - Static WEP only */
  32. PMK_USAGE = 0x04, /* PMK cache */
  33. } KEY_USAGE;
  34. /**
  35. * wmi_extract_install_key_comp_event() - extract params of install key complete
  36. * from event
  37. * @wmi_handle: wmi handle
  38. * @evt_buf: pointer to event buffer
  39. * @len: length of the event buffer
  40. * @param: Pointer to hold params of install key complete
  41. *
  42. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  43. */
  44. QDF_STATUS
  45. wmi_extract_install_key_comp_event(wmi_unified_t wmi_handle,
  46. void *evt_buf, uint32_t len,
  47. struct wmi_install_key_comp_event *param);
  48. /**
  49. * wmi_send_vdev_set_ltf_key_seed_cmd - Set LTF key seed for PASN key
  50. * derivation.
  51. * @wmi: WMI handle
  52. * @data: LTF Keyseed data
  53. *
  54. * Return: QDF_STATUS
  55. */
  56. QDF_STATUS
  57. wmi_send_vdev_set_ltf_key_seed_cmd(wmi_unified_t wmi,
  58. struct wlan_crypto_ltf_keyseed_data *data);
  59. #endif