ie: update IE_AKM_IS_FILS to be bitwise

Currently nothing actually uses this macro, but switching it to a bitwise
comparison makes it more useful and consistent with the others.
This commit is contained in:
James Prestwood 2022-02-25 15:32:46 -08:00 committed by Denis Kenzior
parent 5627ef4141
commit 44b3e7a8bb
1 changed files with 4 additions and 4 deletions

View File

@ -349,10 +349,10 @@ enum ie_rsn_akm_suite {
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384))
#define IE_AKM_IS_FILS(akm) \
((akm == IE_RSN_AKM_SUITE_FILS_SHA256) || \
(akm == IE_RSN_AKM_SUITE_FILS_SHA384) || \
(akm == IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256) || \
(akm == IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384))
(akm & (IE_RSN_AKM_SUITE_FILS_SHA256 | \
IE_RSN_AKM_SUITE_FILS_SHA384 | \
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256 | \
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384))
#define IE_LEN(ie) \
((ie) ? (ie)[1] + 2 : 0)