diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 248cdaf77a5fdc9de3c61d7a11de3f318fb62dc8..0f820decf5114bff707639f5231c7039e3d57fcb 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -883,16 +883,9 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, hcon->io_capability == HCI_IO_NO_INPUT_OUTPUT) smp->method = JUST_WORKS; - /* If Just Works, Continue with Zero TK and ask user-space for - * confirmation */ + /* If Just Works, Continue with Zero TK */ if (smp->method == JUST_WORKS) { - ret = mgmt_user_confirm_request(hcon->hdev, &hcon->dst, - hcon->type, - hcon->dst_type, - passkey, 1); - if (ret) - return ret; - set_bit(SMP_FLAG_WAIT_USER, &smp->flags); + set_bit(SMP_FLAG_TK_VALID, &smp->flags); return 0; }