Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -1
+1 -1
net/bluetooth/smp.c
··· 1379 1379 1380 1380 bt_dev_dbg(conn->hcon->hdev, "conn %p", conn); 1381 1381 1382 - hci_disconnect(conn->hcon, HCI_ERROR_REMOTE_USER_TERM); 1382 + hci_disconnect(conn->hcon, HCI_ERROR_AUTH_FAILURE); 1383 1383 } 1384 1384 1385 1385 static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)