]> 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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 16 Jul 2025 19:33:50 +0000 (15:33 -0400)
commit6ef99c917688a8510259e565bd1b168b7146295a
tree1d0b53adf75594f98c2833451c48b511532da6eb
parentfe4840df0bdf341f376885271b7680764fe6b34e
Bluetooth: SMP: Fix using HCI_ERROR_REMOTE_USER_TERM on timeout

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>
net/bluetooth/smp.c