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