From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [bluetooth-next 02/13] Bluetooth: Fix sending wrong IO Capabilities value
Date: Wed, 8 Jun 2011 13:30:35 -0300 [thread overview]
Message-ID: <20110608163035.GB20343@piper> (raw)
In-Reply-To: <BANLkTinnXEqNr8ZCj79iAFZj2yzqncyZ8Q@mail.gmail.com>
Hi Luiz,
On 17:20 Wed 08 Jun, Luiz Augusto von Dentz wrote:
> Hi Vinicius,
>
> On Wed, Jun 8, 2011 at 7:50 AM, Vinicius Costa Gomes
> <vinicius.gomes@openbossa.org> wrote:
> > We should send the IO Capabilities set by userspace, using the
> > management interface, instead of a fixed value.
> >
> > Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
> > ---
> > net/bluetooth/smp.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
> > index c9ae5d4..171a65c 100644
> > --- a/net/bluetooth/smp.c
> > +++ b/net/bluetooth/smp.c
> > @@ -198,7 +198,7 @@ static __u8 seclevel_to_authreq(__u8 level)
> > static void build_pairing_cmd(struct l2cap_conn *conn,
> > struct smp_cmd_pairing *cmd, __u8 authreq)
> > {
> > - cmd->io_capability = SMP_IO_NO_INPUT_OUTPUT;
> > + cmd->io_capability = conn->hcon->io_capability;
> > cmd->oob_flag = SMP_OOB_NOT_PRESENT;
> > cmd->max_key_size = SMP_MAX_ENC_KEY_SIZE;
> > cmd->init_key_dist = SMP_DIST_ENC_KEY | SMP_DIST_ID_KEY | SMP_DIST_SIGN;
> > --
>
> Does this fix something that is not upstream yet? If not then we
> should be fixing it in place whenever possible.
Done. Thanks.
>
> --
> Luiz Augusto von Dentz
> Computer Engineer
Cheers,
--
Vinicius
next prev parent reply other threads:[~2011-06-08 16:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 22:50 [bluetooth-next 00/13] SMP Key Exchange Support Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 01/13] Bluetooth: Add support for SMP phase 3 (key distribution) Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 02/13] Bluetooth: Fix sending wrong IO Capabilities value Vinicius Costa Gomes
2011-06-08 8:20 ` Luiz Augusto von Dentz
2011-06-08 16:30 ` Vinicius Costa Gomes [this message]
2011-06-07 22:50 ` [bluetooth-next 03/13] Bluetooth: Add new structures for supporting SM key distribution Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 04/13] Bluetooth: Add functions to manipulate the link key list for SMP Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 05/13] Bluetooth: Reject an encryption request when the key isn't found Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 06/13] Bluetooth: Add support for providing parameters to LE Start Encryption Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 07/13] Bluetooth: Fix SM pairing parameters negotiation Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 08/13] Bluetooth: Add support for storing the LTK Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 09/13] Bluetooth: Use the link key list to temporarily store the STK Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 10/13] Bluetooth: Use the stored LTK for restabilishing security Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 11/13] Bluetooth: Remove unused field in hci_conn Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 12/13] Bluetooth: Add support for communicating keys with userspace Vinicius Costa Gomes
2011-06-07 22:50 ` [bluetooth-next 13/13] Bluetooth: Add support for random destination address Vinicius Costa Gomes
2011-06-09 13:02 ` [bluetooth-next 00/13] SMP Key Exchange Support Luiz Augusto von Dentz
2011-06-09 13:09 ` Anderson Lizardo
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=20110608163035.GB20343@piper \
--to=vinicius.gomes@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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).