mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +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) \
|
#define IE_AKM_IS_SAE(akm) \
|
||||||
((akm == IE_RSN_AKM_SUITE_SAE_SHA256) || \
|
(akm & (IE_RSN_AKM_SUITE_SAE_SHA256 | \
|
||||||
(akm == IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256))
|
IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256))
|
||||||
|
|
||||||
#define IE_AKM_IS_FT(akm) \
|
#define IE_AKM_IS_FT(akm) \
|
||||||
(akm & (IE_RSN_AKM_SUITE_FT_OVER_8021X | \
|
(akm & (IE_RSN_AKM_SUITE_FT_OVER_8021X | \
|
||||||
|
Loading…
Reference in New Issue
Block a user