Przeglądaj źródła

qcacmn: Add DPP, CCKM, OSEN and OWE AKM in osif_akm_type_crypto_mapping

In osif_akm_type_crypto_mapping DPP, CCKM, OSEN and OWE AKMs are not
added. So AKM are not added in crypto module.

So add DPP, CCKM, OSEN and OWE enums in osif_akm_type_crypto_mapping.

Change-Id: Ie9e092f591ea03026cbf360abe40c663bdd078fd
CRs-Fixed: 2650380
Abhishek Singh 5 lat temu
rodzic
commit
6c39710274
1 zmienionych plików z 31 dodań i 1 usunięć
  1. 31 1
      os_if/linux/crypto/src/wlan_nl_to_crypto_params.c

+ 31 - 1
os_if/linux/crypto/src/wlan_nl_to_crypto_params.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2019-2020 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
@@ -124,6 +124,22 @@ static const struct osif_akm_type_crypto_mapping
 		.akm_type_crypto = WLAN_CRYPTO_KEY_MGMT_FT_PSK,
 	},
 #endif
+#ifdef FEATURE_WLAN_ESE
+	{
+#ifndef WLAN_AKM_SUITE_CCKM
+#define WLAN_AKM_SUITE_CCKM         0x00409600
+#endif
+		.akm_suite = WLAN_AKM_SUITE_CCKM,
+		.akm_type_crypto = WLAN_CRYPTO_KEY_MGMT_CCKM,
+	},
+#endif
+	{
+#ifndef WLAN_AKM_SUITE_OSEN
+#define WLAN_AKM_SUITE_OSEN         0x506f9a01
+#endif
+		.akm_suite = WLAN_AKM_SUITE_OSEN,
+		.akm_type_crypto = WLAN_CRYPTO_KEY_MGMT_OSEN,
+	},
 #if defined(WLAN_AKM_SUITE_8021X_SUITE_B) || \
 		defined(FEATURE_WLAN_IEEE8021X_SUITE_B)
 	{
@@ -166,6 +182,20 @@ static const struct osif_akm_type_crypto_mapping
 		.akm_type_crypto = WLAN_CRYPTO_KEY_MGMT_FT_FILS_SHA384,
 	},
 #endif
+	{
+#ifndef WLAN_AKM_SUITE_OWE
+#define WLAN_AKM_SUITE_OWE          0x000FAC12
+#endif
+		.akm_suite = WLAN_AKM_SUITE_OWE,
+		.akm_type_crypto = WLAN_CRYPTO_KEY_MGMT_OWE,
+	},
+	{
+#ifndef WLAN_AKM_SUITE_DPP
+#define WLAN_AKM_SUITE_DPP      0x506f9a02
+#endif
+		.akm_suite = WLAN_AKM_SUITE_DPP,
+		.akm_type_crypto = WLAN_CRYPTO_KEY_MGMT_DPP,
+	},
 };
 
 /* mapping table for cipher type received from NL and cryto cipher type */