Skip to contentSkip to conversation

monitor: Fix EIR Data Type / AD Type assigned numbers

PATCH In review João Paulo Rechi Vita 2 participants 2 messages Oct 1, 2013 – Oct 5, 2013 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 monitor: Fix EIR Data Type / AD Type assigned numbers

From: João Paulo Rechi Vita <[email protected]>

The values for Public Target Address and Random Target Address were swapped. This information can be verified in the Bluetooth SIG Assigned numbers webpage:

https://www.bluetooth.org/en-us/specification/assigned-numbers/generic-access-profile

---
 monitor/packet.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
monitor/packet.c +2 -2
index ddd3742..942d3de 100644
@@ -2002,8 +2002,8 @@ static void print_fec(uint8_t fec)
 #define BT_EIR_SERVICE_UUID16		0x14
 #define BT_EIR_SERVICE_UUID128		0x15
 #define BT_EIR_SERVICE_DATA		0x16
-#define BT_EIR_RANDOM_ADDRESS		0x17
-#define BT_EIR_PUBLIC_ADDRESS		0x18
+#define BT_EIR_PUBLIC_ADDRESS		0x17
+#define BT_EIR_RANDOM_ADDRESS		0x18
 #define BT_EIR_GAP_APPEARANCE		0x19
 #define BT_EIR_MANUFACTURER_DATA	0xff
 
Signature · 1 line
1.8.3.1