linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jaganath Kanakkassery <jaganath.k.os@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
Subject: [PATCH 2/3] doc/mgmt-api: Add support for Set default Phy command
Date: Tue, 14 Nov 2017 16:02:17 +0530	[thread overview]
Message-ID: <1510655538-12883-4-git-send-email-jaganathx.kanakkassery@intel.com> (raw)
In-Reply-To: <1510655538-12883-1-git-send-email-jaganathx.kanakkassery@intel.com>

---
 doc/mgmt-api.txt | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 80edb14..25739cc 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -2940,6 +2940,42 @@ Get Supported PHYs Command
 	Possible errors:	Not Supported
 				Invalid Index
 
+Set Default PHY Command
+==========================
+
+	Command Code:		0x0044
+	Controller Index:	<controller id>
+	Command Parameters: 	Default_phy (1 Octet)
+	Return Parameters:
+
+	This command is used to set the default phy to the controller.
+
+	This will be stored and used for all the subsequent scanning
+	and connection initiation.
+
+	Prior to this, Get Supported PHYs Command shall be called
+	to retrieve the supported phys by the controller. If default_phy
+	has phy not supported by the controller (not there in supported_phys)
+	then Invalid Parameters will be returned.
+
+	This can be called at any point to change the preferred phys.
+
+	Default_phy is a bitmask with the following bits.
+
+		0	LE 1M
+		1	LE 2M
+		2	LE CODED (LR)
+
+	This command generates a Command Complete event on success
+	or a Command Status event on failure.
+
+	This command is only available for LE capable controllers.
+	It will return Not Supported otherwise.
+
+	Possible errors:	Not Supported
+				Invalid Parameters
+				Invalid Index
+
 Command Complete Event
 ======================
 
-- 
2.7.4


  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 ` [PATCH] Bluetooth: Define l2cap sock option for LE PHYs Jaganath Kanakkassery
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 ` Jaganath Kanakkassery [this message]
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-4-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).