Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1466902pxb; Wed, 12 Jan 2022 15:45:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJze2Kzg1l1eiQO/3pNq3TnhC2kP6cTqKOqNYfiGZjRR2O6cZjJZ+DIr5IVwH5iy0nr3tCwU X-Received: by 2002:a63:bd1a:: with SMTP id a26mr1763524pgf.16.1642031111195; Wed, 12 Jan 2022 15:45:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642031111; cv=none; d=google.com; s=arc-20160816; b=o9DyvotRLSZkwGya/hkP11QiKKQbkgzwdeRCaMkcaL5TPj2ka57+WmvtFpjHtDK27I lFGiZHVfoc4JaMiLccsg0bW3T7N6Aom2en/1/khMq4lv34YsDwwkDAdjJPeGj3dn4SLE 0/2bWuTqga0sCqNQn6apEKsB5KnNA8sB1gFquwsdg/G0gHzvABnTFsZbMU/Zalp/Wasa LL9ORCtIHSj9lQ3QgDVueUduP+9M3sUW0dqPswrD0UQVBJFKaINrjASSga1LLmW0lUP2 jTyW2K8SO4onrMnkbtcRoeNbsfe0YTec5Lb7PgENplzdKVKNdrguxIEx+aUQNE5a05Ma iyEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YIqcbBxWhGLZMwbZQsZyXysWWQgWHYjCGdYhT1dCJeQ=; b=huFc+r6kTZIojyYpPMF+edZRwlSaUEGaPzA/KH0RYUod7n1HLeZSIoekSvd3h6wshh 5Qm+4P47eZeafUZNkHQpmZo+UrISW5RJwxiKcgxXSJcHi+PBHCtkMwxz3iW2jqHV21m0 vEvUSGmqR1G9cSmKYzCygNCmJzzyhIo+g981xEHoju4PGRpOprXwnQnHGTHUXEmP0DP7 tFk3oegf43gdpEfkDsruwyEqIUjPRNh/0WC81X4AMA/TGH+txmrz5kdqe7GzvR6sk0kD ndx1Cgf7pdknHMNb1h7CNeD9uavEEkB8BaVlhhRljdYKmzQRgNureEn5Gz+u17h3m8Jp 1zwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si1329329pgs.422.2022.01.12.15.45.02; Wed, 12 Jan 2022 15:45:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350056AbiALRe0 (ORCPT + 71 others); Wed, 12 Jan 2022 12:34:26 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47521 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355639AbiALRdw (ORCPT ); Wed, 12 Jan 2022 12:33:52 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 1896320019; Wed, 12 Jan 2022 17:33:47 +0000 (UTC) From: Miquel Raynal To: Alexander Aring , Stefan Schmidt , linux-wpan@vger.kernel.org, "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Cc: Michael Hennerich , Harry Morris , Varka Bhadram , Xue Liu , Alan Ott , David Girault , Romuald Despres , Frederic Blain , Nicolas Schodet , Thomas Petazzoni , linux-wireless@vger.kernel.org, Miquel Raynal Subject: [wpan-next v2 16/27] net: ieee802154: Define frame types Date: Wed, 12 Jan 2022 18:33:01 +0100 Message-Id: <20220112173312.764660-17-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220112173312.764660-1-miquel.raynal@bootlin.com> References: <20220112173312.764660-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org A 802.15.4 frame can be of different types, here is a definition matching the specification. This enumeration will be soon be used when adding scanning support. Signed-off-by: Miquel Raynal --- include/net/ieee802154_netdev.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h index fb6ac354a7b6..45dff5d11bc8 100644 --- a/include/net/ieee802154_netdev.h +++ b/include/net/ieee802154_netdev.h @@ -105,6 +105,17 @@ struct ieee802154_hdr_fc { #endif }; +enum ieee802154_frame_type { + IEEE802154_BEACON_FRAME, + IEEE802154_DATA_FRAME, + IEEE802154_ACKNOWLEDGEMENT_FRAME, + IEEE802154_MAC_COMMAND_FRAME, + IEEE802154_RESERVED_FRAME, + IEEE802154_MULTIPURPOSE_FRAME, + IEEE802154_FRAGMENT_FRAME, + IEEE802154_EXTENDED_FRAME, +}; + struct ieee802154_hdr { struct ieee802154_hdr_fc fc; u8 seq; -- 2.27.0