From: Jaganath Kanakkassery Date: Wed, 25 Jul 2018 10:21:21 +0000 (+0530) Subject: emulator: Add BREDR 2M & 3M, 3 & 5 Slot packet type support X-Git-Tag: submit/tizen/20200220.012900~1^2~1^2~257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5509d1551ff085ab88ce216baba9799c4aa50765;p=platform%2Fupstream%2Fbluez.git emulator: Add BREDR 2M & 3M, 3 & 5 Slot packet type support Change-Id: I807811ddb10174404f72447bd5541c6663dc7658 Signed-off-by: himanshu --- diff --git a/emulator/btdev.c b/emulator/btdev.c index ae30950..4d34aee 100755 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -535,6 +535,16 @@ static void set_bredrle_features(struct btdev *btdev) btdev->features[7] |= 0x80; /* Extended features */ if (btdev->type >= BTDEV_TYPE_BREDRLE50) { + /* These BREDR features are added to test new configuration + * command. If this is added above it will break existing tests + */ + btdev->features[0] |= 0x01; /* 3 slot Packets */ + btdev->features[0] |= 0x02; /* 5 slot Packets */ + btdev->features[3] |= 0x02; /* EDR ACL 2M mode */ + btdev->features[3] |= 0x04; /* EDR ACL 3M mode */ + btdev->features[4] |= 0x80; /* 3 slot EDR ACL packets */ + btdev->features[5] |= 0x01; /* 5 slot EDR ACL packets */ + btdev->le_features[1] |= 0x01; /* LE 2M PHY */ btdev->le_features[1] |= 0x08; /* LE Coded PHY */ btdev->le_features[1] |= 0x10; /* LE EXT ADV */