mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Prevent FILS delkey from calling CRYPTO_OPS
Prevent delkey to call crypto_ops for FILS cipher type, as this keys are not present in FW. Change-Id: Ica13a62b6822ee3cee40acffa98b7cc1cb122120 CRs-Fixed: 2520517
This commit is contained in:
parent
e0440bc502
commit
39c0fea7c7
1 changed files with 5 additions and 1 deletions
|
|
@ -1095,9 +1095,13 @@ QDF_STATUS wlan_crypto_delkey(struct wlan_objmgr_vdev *vdev,
|
|||
cipher_table = (struct wlan_crypto_cipher *)key->cipher_table;
|
||||
qdf_mem_zero(key->keyval, sizeof(key->keyval));
|
||||
|
||||
if (WLAN_CRYPTO_TX_OPS_DELKEY(psoc)) {
|
||||
if (!IS_FILS_CIPHER(cipher_table->cipher) &&
|
||||
WLAN_CRYPTO_TX_OPS_DELKEY(psoc)) {
|
||||
WLAN_CRYPTO_TX_OPS_DELKEY(psoc)(vdev, key,
|
||||
macaddr, cipher_table->cipher);
|
||||
} else if (IS_FILS_CIPHER(cipher_table->cipher)) {
|
||||
if (key->private)
|
||||
qdf_mem_free(key->private);
|
||||
}
|
||||
}
|
||||
qdf_mem_free(key);
|
||||
|
|
|
|||
Loading…
Reference in a new issue