* [PATCH] Bluetooth: Fix access to the STK generation methods matrix
@ 2012-03-05 18:07 Ido Yariv
2012-03-06 4:27 ` Vinicius Costa Gomes
0 siblings, 1 reply; 2+ messages in thread
From: Ido Yariv @ 2012-03-05 18:07 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Ido Yariv, Brian Gix
The major index of the table is actually the remote I/O capabilities, not
the local ones. As a result, devices with different I/O capabilities
could have used wrong or even unsupported generation methods.
Signed-off-by: Ido Yariv <ido@wizery.com>
CC: Brian Gix <bgix@codeaurora.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 75937d7..ebf50065 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -310,7 +310,7 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
remote_io > SMP_IO_KEYBOARD_DISPLAY)
method = JUST_WORKS;
else
- method = gen_method[local_io][remote_io];
+ method = gen_method[remote_io][local_io];
/* If not bonding, don't ask user to confirm a Zero TK */
if (!(auth & SMP_AUTH_BONDING) && method == JUST_CFM)
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Bluetooth: Fix access to the STK generation methods matrix
2012-03-05 18:07 [PATCH] Bluetooth: Fix access to the STK generation methods matrix Ido Yariv
@ 2012-03-06 4:27 ` Vinicius Costa Gomes
0 siblings, 0 replies; 2+ messages in thread
From: Vinicius Costa Gomes @ 2012-03-06 4:27 UTC (permalink / raw)
To: Ido Yariv; +Cc: linux-bluetooth, Brian Gix
Hi Ido,
On 20:07 Mon 05 Mar, Ido Yariv wrote:
> The major index of the table is actually the remote I/O capabilities, not
> the local ones. As a result, devices with different I/O capabilities
> could have used wrong or even unsupported generation methods.
>
> Signed-off-by: Ido Yariv <ido@wizery.com>
> CC: Brian Gix <bgix@codeaurora.org>
> ---
> net/bluetooth/smp.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Acked-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
>
> diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
> index 75937d7..ebf50065 100644
> --- a/net/bluetooth/smp.c
> +++ b/net/bluetooth/smp.c
> @@ -310,7 +310,7 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
> remote_io > SMP_IO_KEYBOARD_DISPLAY)
> method = JUST_WORKS;
> else
> - method = gen_method[local_io][remote_io];
> + method = gen_method[remote_io][local_io];
>
> /* If not bonding, don't ask user to confirm a Zero TK */
> if (!(auth & SMP_AUTH_BONDING) && method == JUST_CFM)
> --
> 1.7.7.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers,
--
Vinicius
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-06 4:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-05 18:07 [PATCH] Bluetooth: Fix access to the STK generation methods matrix Ido Yariv
2012-03-06 4:27 ` Vinicius Costa Gomes
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).