qcacmn: Update key management after bss create response

Add support to update key management with higher security
after BSS create response.
Also, Currenlty if there are multiple AKM and ucast cipher.
Host overwrites AKM and ucast cipher value with the new one.
Instead of overwrite, add support to do ORing to keep all values.

Change-Id: I679a86debef649efbce1a08b60512d127f7fbbee
CRs-Fixed: 3113222
This commit is contained in:
Deeksha Gupta
2022-01-19 14:11:03 +05:30
committed by Madan Koyyalamudi
父節點 348fee747b
當前提交 b06ca5bc3d
共有 3 個文件被更改,包括 164 次插入22 次删除

查看文件

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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
@@ -157,7 +158,7 @@ typedef enum wlan_crypto_auth_mode {
WLAN_CRYPTO_AUTH_SAE = 9,
WLAN_CRYPTO_AUTH_FILS_SK = 10,
/** Keep WLAN_CRYPTO_AUTH_MAX at the end. */
WLAN_CRYPTO_AUTH_MAX = WLAN_CRYPTO_AUTH_FILS_SK,
WLAN_CRYPTO_AUTH_MAX,
} wlan_crypto_auth_mode;
/* crypto capabilities */
@@ -223,7 +224,7 @@ typedef enum wlan_crypto_key_mgmt {
WLAN_CRYPTO_KEY_MGMT_FT_PSK_SHA384 = 25,
WLAN_CRYPTO_KEY_MGMT_PSK_SHA384 = 26,
/** Keep WLAN_CRYPTO_KEY_MGMT_MAX at the end. */
WLAN_CRYPTO_KEY_MGMT_MAX = WLAN_CRYPTO_KEY_MGMT_FT_IEEE8021X_SHA384,
WLAN_CRYPTO_KEY_MGMT_MAX,
} wlan_crypto_key_mgmt;
enum wlan_crypto_key_type {