1*5113495bSYour Name /*
2*5113495bSYour Name * Copyright (c) 2021, The Linux Foundation. All rights reserved.
3*5113495bSYour Name * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
4*5113495bSYour Name *
5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any
6*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above
7*5113495bSYour Name * copyright notice and this permission notice appear in all copies.
8*5113495bSYour Name *
9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*5113495bSYour Name */
17*5113495bSYour Name /**
18*5113495bSYour Name * DOC: Implement API's specific to crypto component.
19*5113495bSYour Name */
20*5113495bSYour Name
21*5113495bSYour Name #include "wmi_unified_priv.h"
22*5113495bSYour Name #include "wmi_unified_param.h"
23*5113495bSYour Name #include "wmi_unified_crypto_api.h"
24*5113495bSYour Name
25*5113495bSYour Name QDF_STATUS
wmi_extract_install_key_comp_event(wmi_unified_t wmi_handle,void * evt_buf,uint32_t len,struct wmi_install_key_comp_event * param)26*5113495bSYour Name wmi_extract_install_key_comp_event(wmi_unified_t wmi_handle, void *evt_buf,
27*5113495bSYour Name uint32_t len,
28*5113495bSYour Name struct wmi_install_key_comp_event *param)
29*5113495bSYour Name {
30*5113495bSYour Name if (wmi_handle->ops->extract_install_key_comp_event)
31*5113495bSYour Name return wmi_handle->ops->extract_install_key_comp_event(
32*5113495bSYour Name wmi_handle, evt_buf, len, param);
33*5113495bSYour Name
34*5113495bSYour Name return QDF_STATUS_E_FAILURE;
35*5113495bSYour Name }
36*5113495bSYour Name
37*5113495bSYour Name QDF_STATUS
wmi_send_vdev_set_ltf_key_seed_cmd(wmi_unified_t wmi,struct wlan_crypto_ltf_keyseed_data * data)38*5113495bSYour Name wmi_send_vdev_set_ltf_key_seed_cmd(wmi_unified_t wmi,
39*5113495bSYour Name struct wlan_crypto_ltf_keyseed_data *data)
40*5113495bSYour Name {
41*5113495bSYour Name if (wmi->ops->send_vdev_set_ltf_key_seed_cmd)
42*5113495bSYour Name return wmi->ops->send_vdev_set_ltf_key_seed_cmd(wmi, data);
43*5113495bSYour Name
44*5113495bSYour Name return QDF_STATUS_E_FAILURE;
45*5113495bSYour Name }
46