commit 5627ef41419ed5020623972245a48f580a3452f0
parent c20828f2527fe5e97f1c2eebe65b11daa502f158
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 25 Feb 2022 15:32:45 -0800
ie: update IE_AKM_IS_SAE to bitwise comparison
All uses of this macro will work with a bitwise comparison which is
needed for 6GHz checks and somewhat more flexible since it can be
used to compare RSN info, not only single AKM values.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ie.h b/src/ie.h
@@ -337,8 +337,8 @@ enum ie_rsn_akm_suite {
};
#define IE_AKM_IS_SAE(akm) \
- ((akm == IE_RSN_AKM_SUITE_SAE_SHA256) || \
- (akm == IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256))
+ (akm & (IE_RSN_AKM_SUITE_SAE_SHA256 | \
+ IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256))
#define IE_AKM_IS_FT(akm) \
(akm & (IE_RSN_AKM_SUITE_FT_OVER_8021X | \