mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
Add missed wpa_akm_to_suite() selectors
These SAE, OWE, DPP, and OSEN AKM suite selectors were covered in the reverse conversion in rsn_key_mgmt_to_bitfield(), but were missing from wpa_akm_to_suite(). Add them to make AKM suite selector reporting more accurate in RADIUS Accounting messages (and future users of this function). Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
bfb6a482f6
commit
43aafef8df
@ -2075,6 +2075,16 @@ u32 wpa_akm_to_suite(int akm)
|
||||
return RSN_AUTH_KEY_MGMT_FT_FILS_SHA256;
|
||||
if (akm & WPA_KEY_MGMT_FT_FILS_SHA384)
|
||||
return RSN_AUTH_KEY_MGMT_FT_FILS_SHA384;
|
||||
if (akm & WPA_KEY_MGMT_SAE)
|
||||
return RSN_AUTH_KEY_MGMT_SAE;
|
||||
if (akm & WPA_KEY_MGMT_FT_SAE)
|
||||
return RSN_AUTH_KEY_MGMT_FT_SAE;
|
||||
if (akm & WPA_KEY_MGMT_OWE)
|
||||
return RSN_AUTH_KEY_MGMT_OWE;
|
||||
if (akm & WPA_KEY_MGMT_DPP)
|
||||
return RSN_AUTH_KEY_MGMT_DPP;
|
||||
if (akm & WPA_KEY_MGMT_OSEN)
|
||||
return RSN_AUTH_KEY_MGMT_OSEN;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user