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.
This commit is contained in:
James Prestwood 2022-02-25 15:32:45 -08:00 committed by Denis Kenzior
parent c20828f252
commit 5627ef4141
1 changed files with 2 additions and 2 deletions

View File

@ -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 | \