From: Jaganath Kanakkassery <jaganath.k.os@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: marcel@holtmann.org,
Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
Subject: [PATCH BlueZ v1 2/7] emulator: Add BREDR 2M & 3M, 3 & 5 Slot packet type support
Date: Thu, 19 Jul 2018 16:54:02 +0530 [thread overview]
Message-ID: <1531999447-3479-3-git-send-email-jaganathx.kanakkassery@intel.com> (raw)
In-Reply-To: <1531999447-3479-1-git-send-email-jaganathx.kanakkassery@intel.com>
---
emulator/btdev.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/emulator/btdev.c b/emulator/btdev.c
index f8289d0..9f07527 100644
--- 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 */
--
2.7.4
next prev parent reply other threads:[~2018-07-19 11:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 11:24 [PATCH BlueZ v1 0/7] Add BREDR PHYs in PHY configuration commands Jaganath Kanakkassery
2018-07-19 11:24 ` [PATCH BlueZ v1 1/7] monitor: " Jaganath Kanakkassery
2018-07-19 11:24 ` Jaganath Kanakkassery [this message]
2018-07-19 11:24 ` [PATCH BlueZ v1 3/7] mgmt-tester: Add extended advertising test cases Jaganath Kanakkassery
2018-07-19 11:24 ` [PATCH BlueZ v1 4/7] mgmt-tester: Add PHY Configuration " Jaganath Kanakkassery
2018-07-19 11:24 ` [PATCH BlueZ v1 5/7] mgmt-tester: Add tests for extended scanning and device found Jaganath Kanakkassery
2018-07-19 11:24 ` [PATCH BlueZ v1 6/7] mgmt-tester: Add support ext create connection and enh conn complete Jaganath Kanakkassery
2018-07-19 11:24 ` [PATCH BlueZ v1 7/7] mgmt-tester: Update Supported_settings to reflect PHY_CONFIGURATION Jaganath Kanakkassery
2018-07-24 6:42 ` [PATCH BlueZ v1 0/7] Add BREDR PHYs in PHY configuration commands Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1531999447-3479-3-git-send-email-jaganathx.kanakkassery@intel.com \
--to=jaganath.k.os@gmail.com \
--cc=jaganathx.kanakkassery@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).