2013-10-01 23:04:37

by João Paulo Rechi Vita

[permalink] [raw]
Subject: [PATCH BlueZ] 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(-)

diff --git a/monitor/packet.c b/monitor/packet.c
index ddd3742..942d3de 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -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

--
1.8.3.1



2013-10-05 13:10:52

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH BlueZ] monitor: Fix EIR Data Type / AD Type assigned numbers

Hi Joao Paulo,

> 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(-)

patch has been applied.

Regards

Marcel