From: João Paulo Rechi Vita Date: Tue, 1 Oct 2013 23:04:37 +0000 (-0300) Subject: monitor: Fix EIR Data Type / AD Type assigned numbers X-Git-Tag: android-x86-4.4-r3~7506 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=611ee516b999ede1adf8fa9367d8ec7e7998b293;p=android-x86%2Fexternal-bluetooth-bluez.git monitor: Fix EIR Data Type / AD Type assigned numbers 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 --- diff --git a/monitor/packet.c b/monitor/packet.c index 849b0235f..523cc512d 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -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