From 5627ef41419ed5020623972245a48f580a3452f0 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 25 Feb 2022 15:32:45 -0800 Subject: [PATCH] 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. --- src/ie.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ie.h b/src/ie.h index 302cda70..9b57cf66 100644 --- 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 | \