From be73408f6fbc4e93e6a7aeab971de3c862ed0d16 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 10 May 2021 11:06:19 -0700 Subject: [PATCH] btdev: Mark LE Periodic Advertising bit as supported This enables LE Periodic Advertising bit on LE Read Local Supported Features: > HCI Event: Command Complete (0x0e) plen 12 LE Read Local Supported Features (0x08|0x0003) ncmd 1 Status: Success (0x00) Features: 0x00 0x39 0x00 0xf0 0x01 0x00 0x00 0x00 LE 2M PHY LE Coded PHY LE Extended Advertising LE Periodic Advertising Connected Isochronous Stream - Master Connected Isochronous Stream - Slave Isochronous Broadcaster Synchronized Receiver Isochronous Channels (Host Support) --- emulator/btdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index b21d5ca75..20b482cee 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -5122,6 +5122,7 @@ static void set_bredrle_features(struct btdev *btdev) } if (btdev->type >= BTDEV_TYPE_BREDRLE52) { + btdev->le_features[1] |= 0x20; /* LE PER ADV */ btdev->le_features[3] |= 0x10; /* LE CIS Master */ btdev->le_features[3] |= 0x20; /* LE CIS Slave */ btdev->le_features[3] |= 0x40; /* LE ISO Broadcaster */ -- 2.47.3