|
@@ -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;
|