lkml.org 
[lkml]   [2024]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] Bluetooth: Add more Bluetooth version defines
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>


\
 
 \ /
  Last update: 2024-05-27 15:06    [W:0.044 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site