public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH v2 04/10] dpp-util: add dpp status and attribute types
Date: Tue, 14 Dec 2021 10:12:19 -0800	[thread overview]
Message-ID: <20211214181225.2308043-4-prestwoj@gmail.com> (raw)
In-Reply-To: 20211214181225.2308043-1-prestwoj@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

---
 src/dpp-util.h | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

v2:
 * Remove __DPP_STATUS_INVALID

diff --git a/src/dpp-util.h b/src/dpp-util.h
index ad360cdd..75bc33c1 100644
--- a/src/dpp-util.h
+++ b/src/dpp-util.h
@@ -34,6 +34,46 @@ struct dpp_uri_info {
 	char *host;
 };
 
+enum dpp_frame_type {
+	DPP_FRAME_AUTHENTICATION_REQUEST	= 0,
+	DPP_FRAME_AUTHENTICATION_RESPONSE	= 1,
+	DPP_FRAME_AUTHENTICATION_CONFIRM	= 2,
+	/* 3 - 4 reserved */
+	DPP_FRAME_PEER_DISCOVERY_REQUEST	= 5,
+	DPP_FRAME_PEER_DISCOVERY_RESPONSE	= 6,
+	DPP_FRAME_PKEX_VERSION1_XCHG_REQUST	= 7,
+	DPP_FRAME_PKEX_XCHG_RESPONSE		= 8,
+	DPP_FRAME_PKEX_COMMIT_REVEAL_REQUEST	= 9,
+	DPP_FRAME_PKEX_COMMIT_REVEAP_RESPONSE	= 10,
+	DPP_FRAME_CONFIGURATION_RESULT		= 11,
+	DPP_FRAME_CONNECTION_STATUS_RESULT	= 12,
+	DPP_FRAME_PRESENCE_ANNOUNCEMENT		= 13,
+	DPP_FRAME_RECONF_ANNOUNCEMENT		= 14,
+	DPP_FRAME_RECONF_AUTHENTICATION_REQUEST	= 15,
+	DPP_FRAME_RECONF_AUTHENTICATION_RESPONSE = 16,
+	DPP_FRAME_RECONF_AUTHENTICATION_CONFIRM = 17,
+	DPP_FRAME_PKEX_XCHG_REQUEST		= 18,
+	/* 19 - 255 reserved */
+};
+
+enum dpp_status {
+	DPP_STATUS_OK,
+	DPP_STATUS_NOT_COMPATIBLE,
+	DPP_STATUS_AUTH_FAILURE,
+	DPP_STATUS_BAD_CODE,
+	DPP_STATUS_BAD_GROUP,
+	DPP_STATUS_CONFIGURE_FAILURE,
+	DPP_STATUS_RESPONSE_PENDING,
+	DPP_STATUS_INVALID_CONNECTOR,
+	DPP_STATUS_NO_MATCH,
+	DPP_STATUS_CONFIG_REJECTED,
+	DPP_STATUS_NO_AP,
+	DPP_STATUS_CONFIGURE_PENDING,
+	DPP_STATUS_CSR_NEEDED,
+	DPP_STATUS_CSR_BAD,
+	DPP_STATUS_NEW_KEY_NEEDED,
+};
+
 enum dpp_attribute_type {
 	/* 0000 - 0FFF reserved */
 	DPP_ATTR_STATUS				= 0x1000,
-- 
2.31.1

                 reply	other threads:[~2021-12-14 18:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211214181225.2308043-4-prestwoj@gmail.com \
    --to=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox