|
@@ -113,6 +113,9 @@ uint8_t csr_rsn_oui[][CSR_RSN_OUI_SIZE] = {
|
|
|
{0x00, 0x0F, 0xAC, 0x08},
|
|
|
/* AES GCMP-256 */
|
|
|
{0x00, 0x0F, 0xAC, 0x09},
|
|
|
+#define ENUM_DPP_RSN 15
|
|
|
+ /* DPP RSN */
|
|
|
+ {0x50, 0x6F, 0x9A, 0x02},
|
|
|
/* define new oui here, update #define CSR_OUI_***_INDEX */
|
|
|
};
|
|
|
|
|
@@ -2418,6 +2421,7 @@ bool csr_is_profile_rsn(tCsrRoamProfile *pProfile)
|
|
|
case eCSR_AUTH_TYPE_FILS_SHA384:
|
|
|
case eCSR_AUTH_TYPE_FT_FILS_SHA256:
|
|
|
case eCSR_AUTH_TYPE_FT_FILS_SHA384:
|
|
|
+ case eCSR_AUTH_TYPE_DPP_RSN:
|
|
|
fRSNProfile = true;
|
|
|
break;
|
|
|
|
|
@@ -3183,6 +3187,23 @@ static bool csr_is_auth_fils_ft_sha384(tpAniSirGlobal mac,
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+/*
|
|
|
+ * csr_is_auth_dpp_rsn() - check whether oui is dpp rsn
|
|
|
+ * @mac: Global MAC context
|
|
|
+ * @all_suites: pointer to all supported akm suites
|
|
|
+ * @suite_count: all supported akm suites count
|
|
|
+ * @oui: Oui needs to be matched
|
|
|
+ *
|
|
|
+ * Return: True if OUI is dpp rsn, false otherwise
|
|
|
+ */
|
|
|
+static bool csr_is_auth_dpp_rsn(tpAniSirGlobal mac,
|
|
|
+ uint8_t all_suites[][CSR_RSN_OUI_SIZE],
|
|
|
+ uint8_t suite_count, uint8_t oui[])
|
|
|
+{
|
|
|
+ return csr_is_oui_match(mac, all_suites, suite_count,
|
|
|
+ csr_rsn_oui[ENUM_DPP_RSN], oui);
|
|
|
+}
|
|
|
+
|
|
|
static bool csr_is_auth_wpa(tpAniSirGlobal pMac,
|
|
|
uint8_t AllSuites[][CSR_WPA_OUI_SIZE],
|
|
|
uint8_t cAllSuites, uint8_t Oui[])
|
|
@@ -3387,6 +3408,12 @@ static bool csr_get_rsn_information(tHalHandle hal, tCsrAuthList *auth_type,
|
|
|
csr_is_fils_auth(mac_ctx, authsuites, c_auth_suites,
|
|
|
authentication, auth_type, i, &neg_authtype);
|
|
|
/* Changed the AKM suites according to order of preference */
|
|
|
+ if ((neg_authtype == eCSR_AUTH_TYPE_UNKNOWN) &&
|
|
|
+ csr_is_auth_dpp_rsn(mac_ctx, authsuites,
|
|
|
+ c_auth_suites, authentication)) {
|
|
|
+ if (eCSR_AUTH_TYPE_DPP_RSN == auth_type->authType[i])
|
|
|
+ neg_authtype = eCSR_AUTH_TYPE_DPP_RSN;
|
|
|
+ }
|
|
|
if ((neg_authtype == eCSR_AUTH_TYPE_UNKNOWN) &&
|
|
|
csr_is_ft_auth_rsn(mac_ctx, authsuites,
|
|
|
c_auth_suites, authentication)) {
|