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