From f74f6a5cfd50c7a14a4bce6a7bed937e3dd4559a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 2 Apr 2024 16:09:05 -0400 Subject: [PATCH] btdev: Fix framenting PA reports PA reports can carry up to 247 bytes of data instead of just 31 bytes: > HCI Event: LE Meta Event (0x3e) plen 46 LE Periodic Advertising Report (0x0f) Sync handle: 1 TX power: 127 dbm (0x7f) RSSI: not available (0x7f) CTE Type: No Constant Tone Extension (0xff) Data status: Complete Data length: 0x26 25 16 51 18 28 00 00 01 01 06 00 00 00 00 11 02 %.Q.(........... 01 03 02 02 01 05 03 01 00 00 00 03 04 28 00 04 .............(.. 03 02 02 00 01 00 --- emulator/btdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 0ad6b2793..d64827fc7 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -5281,7 +5281,7 @@ static void send_pa(struct btdev *dev, const struct btdev *remote, { struct __packed { struct bt_hci_le_pa_report ev; - uint8_t data[31]; + uint8_t data[247]; } pdu; memset(&pdu.ev, 0, sizeof(pdu.ev)); -- 2.47.3