Message ID | 20240924120447.251761-1-prestwoj@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [01/16] ie: add IE_AKM_IS_PSK | expand |
diff --git a/src/ie.h b/src/ie.h index 4498785a..28931a01 100644 --- a/src/ie.h +++ b/src/ie.h @@ -399,6 +399,15 @@ static inline bool IE_AKM_IS_8021X(uint32_t akm) IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384); } +static inline bool IE_AKM_IS_PSK(uint32_t akm) +{ + return akm & (IE_RSN_AKM_SUITE_PSK | + IE_RSN_AKM_SUITE_FT_USING_PSK | + IE_RSN_AKM_SUITE_PSK_SHA256 | + IE_RSN_AKM_SUITE_SAE_SHA256 | + IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256); +} + static inline bool IE_CIPHER_IS_GCMP_CCMP(uint32_t cipher_suite) { return cipher_suite & (IE_RSN_CIPHER_SUITE_CCMP |