diff mbox series

[01/16] ie: add IE_AKM_IS_PSK

Message ID 20240924120447.251761-1-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series [01/16] ie: add IE_AKM_IS_PSK | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-alpine-ci-setupell success Prep - Setup ELL
prestwoj/iwd-ci-gitlint success GitLint
prestwoj/iwd-ci-setupell success Prep - Setup ELL
prestwoj/iwd-alpine-ci-makedistcheck fail Make Distcheck Make FAIL: ../../src/agent.c:35:10: fatal error: src/dpp.h: No such file or directory 35 | #include "src/dpp.h" | ^~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:2586: src/agent.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:1746: all] Error 2 make: *** [Makefile:3370: distcheck] Error 1
prestwoj/iwd-ci-makedistcheck fail Make Distcheck Make FAIL: ../../src/agent.c:35:10: fatal error: src/dpp.h: No such file or directory 35 | #include "src/dpp.h" | ^~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:2585: src/agent.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:1745: all] Error 2 make: *** [Makefile:3369: distcheck] Error 1
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-alpine-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-alpine-ci-makecheck success Make Check
prestwoj/iwd-ci-incremental_build success Incremental Build with patches
prestwoj/iwd-alpine-ci-incremental_build success Incremental Build with patches
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

James Prestwood Sept. 24, 2024, 12:04 p.m. UTC
---
 src/ie.h | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/src/ie.h b/src/ie.h
index 4498785a..28931a01 100644
--- a/src/ie.h
+++ b/src/ie.h
@@ -399,6 +399,15 @@  static inline bool IE_AKM_IS_8021X(uint32_t akm)
 			IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384);
 }
 
+static inline bool IE_AKM_IS_PSK(uint32_t akm)
+{
+	return akm & (IE_RSN_AKM_SUITE_PSK |
+			IE_RSN_AKM_SUITE_FT_USING_PSK |
+			IE_RSN_AKM_SUITE_PSK_SHA256 |
+			IE_RSN_AKM_SUITE_SAE_SHA256 |
+			IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256);
+}
+
 static inline bool IE_CIPHER_IS_GCMP_CCMP(uint32_t cipher_suite)
 {
 	return cipher_suite & (IE_RSN_CIPHER_SUITE_CCMP |