From: Jaganath Kanakkassery <jaganath.k.os@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
Subject: [PATCH] Bluetooth: Define l2cap sock option for LE PHYs
Date: Tue, 14 Nov 2017 16:02:15 +0530 [thread overview]
Message-ID: <1510655538-12883-2-git-send-email-jaganathx.kanakkassery@intel.com> (raw)
In-Reply-To: <1510655538-12883-1-git-send-email-jaganathx.kanakkassery@intel.com>
This defines two socket options, BT_LE_PHY and BT_LE_SUPPORTED_PHYS.
BT_LE_SUPPORTED_PHYS cab ne used to get supported phys of the peer devices.
BT_LE_PHY can be used to get the current phy of the connection and also
to switch phy for the connection.
Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
---
include/net/bluetooth/bluetooth.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index e89cff0..f9271d1 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -122,6 +122,16 @@ struct bt_voice {
#define BT_SNDMTU 12
#define BT_RCVMTU 13
+/* This can be used for both set/get the current phy */
+#define BT_LE_PHY 14
+
+#define BT_LE_PHY_1M 0
+#define BT_LE_PHY_2M 1
+#define BT_LE_PHY_CODED 2
+
+/* This can be used only for get peer supported phys */
+#define BT_LE_SUPPORTED_PHYS 15
+
__printf(1, 2)
void bt_info(const char *fmt, ...);
__printf(1, 2)
--
2.7.4
next prev parent reply other threads:[~2017-11-14 10:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 10:32 [PATCH 0/3] LE New PHYs kernel interfaces Jaganath Kanakkassery
2017-11-14 10:32 ` Jaganath Kanakkassery [this message]
2017-11-14 10:32 ` [PATCH 1/3] doc/mgmt-api: Add support for Get supported phys command Jaganath Kanakkassery
2017-11-14 11:31 ` Marcel Holtmann
2017-11-14 10:32 ` [PATCH 2/3] doc/mgmt-api: Add support for Set default Phy command Jaganath Kanakkassery
2017-11-14 10:32 ` [PATCH 3/3] doc/mgmt-api: Add advertising phys support to flags Jaganath Kanakkassery
2017-11-14 11:39 ` Marcel Holtmann
2017-11-14 12:27 ` Kanakkassery, JaganathX
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=1510655538-12883-2-git-send-email-jaganathx.kanakkassery@intel.com \
--to=jaganath.k.os@gmail.com \
--cc=jaganathx.kanakkassery@intel.com \
--cc=linux-bluetooth@vger.kernel.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).