Skip to contentSkip to conversation

monitor: Add parsing Service Data of UUID 128

PATCH Applied Łukasz Rymanowski 2 participants 2 messages Jul 29, 2023 – Jul 31, 2023 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 5/5 monitor: Add parsing Service Data of UUID 128

In the advertising report, instead of parsing EIR 0x21 like this:

	Unknown EIR field 0x21: 3a048f2ba97ea6ae1b49c619e973a4a701480d130d

We can do bit better

Service Data UUID 128: Vendor specific
Data: 01480d130d

---
 monitor/packet.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
monitor/packet.c +12 -0
index 3031b028f..21e08ccef 100644
@@ -3997,6 +3997,18 @@ static void print_eir(const uint8_t *eir, uint8_t eir_len, bool le)
 			print_service_data(data, data_len);
 			break;
 
+		case BT_EIR_SERVICE_DATA128:
+			if (data_len <= 16)
+				break;
+
+			print_field("Service Data UUID 128: %s ",
+						bt_uuid128_to_str(&data[0]));
+
+			if (data_len > 16)
+				print_hex_field("  Data", &data[16],
+								data_len - 16);
+
+			break;
 		case BT_EIR_RANDOM_ADDRESS:
 			if (data_len < 6)
 				break;
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 10 lines · On Sat, 29 Jul 2023 21:09:45 +0200 you wrote:

In the advertising report, instead of parsing EIR 0x21 like this:

	Unknown EIR field 0x21: 3a048f2ba97ea6ae1b49c619e973a4a701480d130d

We can do bit better

Service Data UUID 128: Vendor specific
Data: 01480d130d

[...]

Here is the summary with links:
- [BlueZ,v2,5/5] monitor: Add parsing Service Data of UUID 128

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=8d60b555e8e1

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html