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:
Yu Wang
2020-12-25 17:03:07 +08:00
committed by Madan Koyyalamudi
parent 45daa78c52
commit dcd269c55a
13 changed files with 450 additions and 9 deletions

View File

@@ -7962,4 +7962,21 @@ struct wmi_host_pdev_get_dpd_status_event {
uint32_t pdev_id;
enum wmi_host_dpd_status dpd_status;
};
/**
* struct wmi_install_key_comp_event - params of install key complete event
* @vdev_id: unique id identifying the VDEV, generated by the caller
* @key_ix: key index
* @key_flags: key flags
* @status: Event status
* @peer_macaddr: MAC address used for installing
*/
struct wmi_install_key_comp_event {
uint32_t vdev_id;
uint32_t key_ix;
uint32_t key_flags;
uint32_t status;
uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
};
#endif /* _WMI_UNIFIED_PARAM_H_ */