OSDN Git Service

monitor: Fix EIR Data Type / AD Type assigned numbers
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>
Tue, 1 Oct 2013 23:04:37 +0000 (20:04 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 5 Oct 2013 13:09:51 +0000 (06:09 -0700)
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

index 849b023..523cc51 100644 (file)
@@ -2038,8 +2038,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