Skip to content

Commit 6ef99c9

Browse files
committed
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: 1e91c29 ("Bluetooth: Use hci_disconnect for immediate disconnection from SMP") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent fe4840d commit 6ef99c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ static void smp_timeout(struct work_struct *work)
13791379

13801380
bt_dev_dbg(conn->hcon->hdev, "conn %p", conn);
13811381

1382-
hci_disconnect(conn->hcon, HCI_ERROR_REMOTE_USER_TERM);
1382+
hci_disconnect(conn->hcon, HCI_ERROR_AUTH_FAILURE);
13831383
}
13841384

13851385
static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)

0 commit comments

Comments
 (0)