Message ID | 20221021191307.31492-18-denkenz@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [01/26] eapol: More strictly validate key_descriptor_version | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-ci-gitlint | success | GitLint |
diff --git a/src/ie.h b/src/ie.h index f447a4f98d81..e69175635908 100644 --- a/src/ie.h +++ b/src/ie.h @@ -390,6 +390,14 @@ static inline bool IE_AKM_IS_8021X(uint32_t akm) IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384); } +static inline bool IE_CIPHER_IS_GCMP_CCMP(uint32_t cipher_suite) +{ + return cipher_suite & (IE_RSN_CIPHER_SUITE_CCMP | + IE_RSN_CIPHER_SUITE_CCMP_256 | + IE_RSN_CIPHER_SUITE_GCMP | + IE_RSN_CIPHER_SUITE_GCMP_256); +} + #define IE_LEN(ie) \ ((ie) ? (ie)[1] + 2 : 0)