1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2019, 2021 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name /* 21*5113495bSYour Name * This file contains the API definitions for the Unified Wireless Module 22*5113495bSYour Name * Interface (WMI) specific to crypto component. 23*5113495bSYour Name */ 24*5113495bSYour Name 25*5113495bSYour Name #ifndef _WMI_UNIFIED_CRYPTO_API_H_ 26*5113495bSYour Name #define _WMI_UNIFIED_CRYPTO_API_H_ 27*5113495bSYour Name 28*5113495bSYour Name /* 29*5113495bSYour Name * WMI_ADD_CIPHER_KEY_CMDID 30*5113495bSYour Name */ 31*5113495bSYour Name typedef enum { 32*5113495bSYour Name PAIRWISE_USAGE = 0x00, 33*5113495bSYour Name GROUP_USAGE = 0x01, 34*5113495bSYour Name TX_USAGE = 0x02, /* default Tx Key - Static WEP only */ 35*5113495bSYour Name PMK_USAGE = 0x04, /* PMK cache */ 36*5113495bSYour Name } KEY_USAGE; 37*5113495bSYour Name 38*5113495bSYour Name /** 39*5113495bSYour Name * wmi_extract_install_key_comp_event() - extract params of install key complete 40*5113495bSYour Name * from event 41*5113495bSYour Name * @wmi_handle: wmi handle 42*5113495bSYour Name * @evt_buf: pointer to event buffer 43*5113495bSYour Name * @len: length of the event buffer 44*5113495bSYour Name * @param: Pointer to hold params of install key complete 45*5113495bSYour Name * 46*5113495bSYour Name * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure 47*5113495bSYour Name */ 48*5113495bSYour Name QDF_STATUS 49*5113495bSYour Name wmi_extract_install_key_comp_event(wmi_unified_t wmi_handle, 50*5113495bSYour Name void *evt_buf, uint32_t len, 51*5113495bSYour Name struct wmi_install_key_comp_event *param); 52*5113495bSYour Name 53*5113495bSYour Name /** 54*5113495bSYour Name * wmi_send_vdev_set_ltf_key_seed_cmd - Set LTF key seed for PASN key 55*5113495bSYour Name * derivation. 56*5113495bSYour Name * @wmi: WMI handle 57*5113495bSYour Name * @data: LTF Keyseed data 58*5113495bSYour Name * 59*5113495bSYour Name * Return: QDF_STATUS 60*5113495bSYour Name */ 61*5113495bSYour Name QDF_STATUS 62*5113495bSYour Name wmi_send_vdev_set_ltf_key_seed_cmd(wmi_unified_t wmi, 63*5113495bSYour Name struct wlan_crypto_ltf_keyseed_data *data); 64*5113495bSYour Name #endif 65*5113495bSYour Name 66