From: Jaganath K <jaganath.k.os@gmail.com>
To: "open list:BLUETOOTH DRIVERS" <linux-bluetooth@vger.kernel.org>
Cc: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
Subject: Re: [PATCH 2/4 v4] doc/mgmt-api: Add support for Set Phy Configuration command
Date: Fri, 16 Feb 2018 09:10:54 +0530 [thread overview]
Message-ID: <CAJzH+bpA-QXMCZLdDABDDZA6R1F4R+nTttKFx41JFAGnrOfaFw@mail.gmail.com> (raw)
In-Reply-To: <1511938373-22396-3-git-send-email-jaganathx.kanakkassery@intel.com>
Hi Marcel,
On Wed, Nov 29, 2017 at 12:22 PM, Jaganath Kanakkassery
<jaganath.k.os@gmail.com> wrote:
> This also adds PHY Configuration Changed Event.
> ---
> doc/mgmt-api.txt | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 52 insertions(+)
>
> diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
> index c07c48c..628ff18 100644
> --- a/doc/mgmt-api.txt
> +++ b/doc/mgmt-api.txt
> @@ -2940,9 +2940,46 @@ Get PHY Configuration Command
> LE 1M TX and LE 1M RX would be supported by default.
>
> This command is only available for LE capable controllers.
> + It will return Not Supported otherwise.
> +
> + Possible errors: Not Supported
> + Invalid Index
> +
> +Set PHY Configuration Command
> +=============================
> +
> + Command Code: 0x0044
> + Controller Index: <controller id>
> + Command Parameters: Default_phys (2 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.
> +
> + The list of supported PHYs can be retrieved via the
> + Get PHY Configuration command. Selecting unsupported PHYs will
> + result in an Invalid Parameters error.
> +
> + This can be called at any point to change the preferred PHYs.
> +
> + Default_phy is a bitmask with the following bits.
> + 0 LE 1M TX
> + 1 LE 1M RX
> + 2 LE 2M TX
> + 3 LE 2M RX
> + 4 LE CODED TX
> + 5 LE CODED RX
> +
> + 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
>
I think there is a limitation with current API proposal, user cannot do extended
scanning in only 1M (to scan secondary channel in 1M) since with 1M we will
switch to legacy scanning.
I think we need two more flags eg: 1MTX-SEC & 1MRX-SEC, if set we will
use extended scanning in !M.
Plz let me know your opinion.
Thanks,
Jaganath
next prev parent reply other threads:[~2018-02-16 3:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 6:52 [PATCH 0/4 v4] LE New PHYs kernel interfaces Jaganath Kanakkassery
2017-11-29 6:52 ` [PATCH 1/4 v4] doc/mgmt-api: Add support for Get PHY Configuration command Jaganath Kanakkassery
2018-02-09 13:05 ` Luiz Augusto von Dentz
2018-02-09 14:43 ` Jaganath K
2017-11-29 6:52 ` [PATCH 2/4 v4] doc/mgmt-api: Add support for Set Phy " Jaganath Kanakkassery
2018-02-16 3:40 ` Jaganath K [this message]
2018-02-19 8:47 ` Luiz Augusto von Dentz
2018-02-19 9:25 ` Jaganath K
2018-02-19 9:58 ` Łukasz Rymanowski
2018-02-19 10:09 ` Jaganath K
2018-02-19 10:31 ` Luiz Augusto von Dentz
2018-02-19 11:07 ` Łukasz Rymanowski
2018-02-21 6:09 ` Jaganath K
2018-02-21 7:47 ` Szymon Janc
2018-02-22 5:49 ` Jaganath K
2017-11-29 6:52 ` [PATCH 3/4 v4] doc/mgmt-api: Add advertising phys support to flags Jaganath Kanakkassery
2018-02-27 13:11 ` Marcel Holtmann
2017-11-29 6:52 ` [PATCH 4/4] doc/mgmt-api: Update Duration Parameter description of Add Advertising Jaganath Kanakkassery
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=CAJzH+bpA-QXMCZLdDABDDZA6R1F4R+nTttKFx41JFAGnrOfaFw@mail.gmail.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).