wmi_unified_crypto_api.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (c) 2019, 2021 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. * This file contains the API definitions for the Unified Wireless Module
  20. * Interface (WMI) specific to crypto component.
  21. */
  22. #ifndef _WMI_UNIFIED_CRYPTO_API_H_
  23. #define _WMI_UNIFIED_CRYPTO_API_H_
  24. /*
  25. * WMI_ADD_CIPHER_KEY_CMDID
  26. */
  27. typedef enum {
  28. PAIRWISE_USAGE = 0x00,
  29. GROUP_USAGE = 0x01,
  30. TX_USAGE = 0x02, /* default Tx Key - Static WEP only */
  31. PMK_USAGE = 0x04, /* PMK cache */
  32. } KEY_USAGE;
  33. /**
  34. * wmi_extract_install_key_comp_event() - extract params of install key complete
  35. * from event
  36. * @wmi_handle: wmi handle
  37. * @evt_buf: pointer to event buffer
  38. * @len: length of the event buffer
  39. * @params: Pointer to hold params of install key complete
  40. *
  41. * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  42. */
  43. QDF_STATUS
  44. wmi_extract_install_key_comp_event(wmi_unified_t wmi_handle,
  45. void *evt_buf, uint32_t len,
  46. struct wmi_install_key_comp_event *param);
  47. #endif