Skip to content

Commit d766091

Browse files
author
Gustavo F. Padovan
committed
Revert "Bluetooth: Revert: Fix L2CAP connection establishment"
This reverts commit 4dff523. It was reported that this patch cause issues when trying to connect to legacy devices so reverting it. Reported-by: David Fries <david@fries.net> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent 79e6547 commit d766091

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/bluetooth/hci_conn.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
673673
goto encrypt;
674674

675675
auth:
676-
if (test_and_set_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend))
676+
if (test_bit(HCI_CONN_ENCRYPT_PEND, &conn->pend))
677677
return 0;
678678

679679
if (!hci_conn_auth(conn, sec_level, auth_type))

0 commit comments

Comments
 (0)