mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
ie: update IE_AKM_IS_FILS to be bitwise
Currently nothing actually uses this macro, but switching it to a bitwise comparison makes it more useful and consistent with the others.
This commit is contained in:
parent
5627ef4141
commit
44b3e7a8bb
8
src/ie.h
8
src/ie.h
@ -349,10 +349,10 @@ enum ie_rsn_akm_suite {
|
||||
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384))
|
||||
|
||||
#define IE_AKM_IS_FILS(akm) \
|
||||
((akm == IE_RSN_AKM_SUITE_FILS_SHA256) || \
|
||||
(akm == IE_RSN_AKM_SUITE_FILS_SHA384) || \
|
||||
(akm == IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256) || \
|
||||
(akm == IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384))
|
||||
(akm & (IE_RSN_AKM_SUITE_FILS_SHA256 | \
|
||||
IE_RSN_AKM_SUITE_FILS_SHA384 | \
|
||||
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256 | \
|
||||
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384))
|
||||
|
||||
#define IE_LEN(ie) \
|
||||
((ie) ? (ie)[1] + 2 : 0)
|
||||
|
Loading…
Reference in New Issue
Block a user