qcacmn: enhance crypto api to install key synchronously
Add parameter 'bool sync' for wlan_cfg80211_crypto_add_key() to indicate whether or not to add key synchronously. If it's set to true, wait until install key complete event is received. Change-Id: I9a69d486665fb3f65a5720ccfbfb638c09329418 CRs-Fixed: 2865832
This commit is contained in:

committed by
Madan Koyyalamudi

parent
45daa78c52
commit
dcd269c55a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019, 2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -34,5 +34,19 @@ typedef enum {
|
||||
PMK_USAGE = 0x04, /* PMK cache */
|
||||
} KEY_USAGE;
|
||||
|
||||
/**
|
||||
* wmi_extract_install_key_comp_event() - extract params of install key complete
|
||||
* from event
|
||||
* @wmi_handle: wmi handle
|
||||
* @evt_buf: pointer to event buffer
|
||||
* @len: length of the event buffer
|
||||
* @params: Pointer to hold params of install key complete
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
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);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user