summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorJohan Hedberg2014-07-09 18:18:10 +0200
committerMarcel Holtmann2014-07-09 18:23:06 +0200
commite247605a6247aff887d435d2334ffe0e581dae24 (patch)
tree00dae526c840dded11331180dc56426253937032 /net/bluetooth/smp.c
parentBluetooth: Always confirm incoming SMP just-works requests (diff)
downloadkernel-qcow2-linux-e247605a6247aff887d435d2334ffe0e581dae24.tar.gz
kernel-qcow2-linux-e247605a6247aff887d435d2334ffe0e581dae24.tar.xz
kernel-qcow2-linux-e247605a6247aff887d435d2334ffe0e581dae24.zip
Bluetooth: Fix forcing SMP just-works with no-bonding
Whether we bond or not should not have any impact on the user interaction model. This patch removes an incorrect fall-back from JUST_CFM to JUST_WORKS in case we're not bonding. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r--net/bluetooth/smp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index a17761c83820..a5e51c686469 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -427,10 +427,6 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
else
method = get_auth_method(smp, local_io, remote_io);
- /* If not bonding, don't ask user to confirm a Zero TK */
- if (!(auth & SMP_AUTH_BONDING) && method == JUST_CFM)
- method = JUST_WORKS;
-
/* Don't confirm locally initiated pairing attempts */
if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags))
method = JUST_WORKS;