]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: SMP: Fix using HCI_ERROR_REMOTE_USER_TERM on timeout
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Jul 2025 15:53:40 +0000 (11:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:58:37 +0000 (08:58 +0200)
commit8d77d290e91f4e042bbc0cd7115fc201e50d17ab
treeda9ba5cd44d455f07ff26cc069004c1f98e79394
parent7d081ecf002989447e25bacde9cb5acb7598e804
Bluetooth: SMP: Fix using HCI_ERROR_REMOTE_USER_TERM on timeout

[ Upstream commit 6ef99c917688a8510259e565bd1b168b7146295a ]

This replaces the usage of HCI_ERROR_REMOTE_USER_TERM, which as the name
suggest is to indicate a regular disconnection initiated by an user,
with HCI_ERROR_AUTH_FAILURE to indicate the session has timeout thus any
pairing shall be considered as failed.

Fixes: 1e91c29eb60c ("Bluetooth: Use hci_disconnect for immediate disconnection from SMP")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/smp.c