From: Luca Weiss <luca.weiss@fairphone.com>
To: Marcel Holtmann <marcel@holtmann.org>,
Johan Hedberg <johan.hedberg@gmail.com>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>
Cc: ~postmarketos/upstreaming@lists.sr.ht,
linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org,
Luca Weiss <luca.weiss@fairphone.com>
Subject: [PATCH] Bluetooth: Add more Bluetooth version defines
Date: Fri, 16 Feb 2024 14:22:38 +0100 [thread overview]
Message-ID: <20240216-bluetooth-defines-v1-1-6c39aacc66a8@fairphone.com> (raw)
Add the various Bluetooth version identifiers found in the "Assigned
Numbers" document[0] from the Bluetooth SIG.
[0] https://www.bluetooth.com/specifications/assigned-numbers/
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
To be clear, I don't have a use case for these extra defines myself but
some time ago when working on Bluetooth I came across this and thought
it would be interesting to have the list complete. No other motives.
---
include/net/bluetooth/bluetooth.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 7ffa8c192c3f..818eb142eda3 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -39,11 +39,20 @@
#endif
/* Bluetooth versions */
+#define BLUETOOTH_VER_1_0B 0
#define BLUETOOTH_VER_1_1 1
#define BLUETOOTH_VER_1_2 2
#define BLUETOOTH_VER_2_0 3
#define BLUETOOTH_VER_2_1 4
+#define BLUETOOTH_VER_3_0 5
#define BLUETOOTH_VER_4_0 6
+#define BLUETOOTH_VER_4_1 7
+#define BLUETOOTH_VER_4_2 8
+#define BLUETOOTH_VER_5_0 9
+#define BLUETOOTH_VER_5_1 10
+#define BLUETOOTH_VER_5_2 11
+#define BLUETOOTH_VER_5_3 12
+#define BLUETOOTH_VER_5_4 13
/* Reserv for core and drivers use */
#define BT_SKB_RESERVE 8
---
base-commit: 841c35169323cd833294798e58b9bf63fa4fa1de
change-id: 20240216-bluetooth-defines-b810ce543191
Best regards,
--
Luca Weiss <luca.weiss@fairphone.com>
next reply other threads:[~2024-02-16 13:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-16 13:22 Luca Weiss [this message]
2024-04-12 14:23 ` [PATCH] Bluetooth: Add more Bluetooth version defines Luca Weiss
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=20240216-bluetooth-defines-v1-1-6c39aacc66a8@fairphone.com \
--to=luca.weiss@fairphone.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=johan.hedberg@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=phone-devel@vger.kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).