eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 44b3e7a8bb00836f0fc6c7f179c2edd36b58b746
parent 5627ef41419ed5020623972245a48f580a3452f0
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 25 Feb 2022 15:32:46 -0800

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.

Diffstat:
Msrc/ie.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/ie.h b/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)