mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
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:
parent
c20828f252
commit
5627ef4141
4
src/ie.h
4
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 | \
|
||||
|
Loading…
Reference in New Issue
Block a user