3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

ie: add OWE AKM type

Added a new AKM suite, IE_RSN_AKM_SUITE_OWE.
This commit is contained in:
James Prestwood 2018-11-16 14:22:44 -08:00 committed by Denis Kenzior
parent e4a76018fd
commit 3293bd9933
2 changed files with 7 additions and 1 deletions

View File

@ -460,6 +460,9 @@ static int ie_parse_akm_suite(const uint8_t *data,
case 13:
*out = IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384;
return 0;
case 18:
*out = IE_RSN_AKM_SUITE_OWE;
return 0;
default:
return -ENOENT;
}
@ -800,6 +803,8 @@ static bool ie_build_rsn_akm_suite(uint8_t *data, enum ie_rsn_akm_suite suite)
RETURN_AKM(data, ieee_oui, 12);
case IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384:
RETURN_AKM(data, ieee_oui, 13);
case IE_RSN_AKM_SUITE_OWE:
RETURN_AKM(data, ieee_oui, 18);
}
return false;
@ -887,7 +892,7 @@ bool ie_build_rsne(const struct ie_rsn_info *info, uint8_t *to)
count = 0;
for (count = 0, akm_suite = IE_RSN_AKM_SUITE_8021X;
akm_suite <= IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256;
akm_suite <= IE_RSN_AKM_SUITE_OWE;
akm_suite <<= 1) {
if (!(info->akm_suites & akm_suite))
continue;

View File

@ -251,6 +251,7 @@ enum ie_rsn_akm_suite {
IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA256 = 0x0400,
IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA384 = 0x0800,
IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384 = 0x1000,
IE_RSN_AKM_SUITE_OWE = 0x2000,
};
#define IE_AKM_IS_SAE(akm) \