mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
Merge branch 'google:main' into bumble_hid_device
This commit is contained in:
@@ -3158,10 +3158,18 @@ class Device(CompositeEventEmitter):
|
|||||||
connection.encryption = encryption
|
connection.encryption = encryption
|
||||||
if (
|
if (
|
||||||
not connection.authenticated
|
not connection.authenticated
|
||||||
|
and connection.transport == BT_BR_EDR_TRANSPORT
|
||||||
and encryption == HCI_Encryption_Change_Event.AES_CCM
|
and encryption == HCI_Encryption_Change_Event.AES_CCM
|
||||||
):
|
):
|
||||||
connection.authenticated = True
|
connection.authenticated = True
|
||||||
connection.sc = True
|
connection.sc = True
|
||||||
|
if (
|
||||||
|
not connection.authenticated
|
||||||
|
and connection.transport == BT_LE_TRANSPORT
|
||||||
|
and encryption == HCI_Encryption_Change_Event.E0_OR_AES_CCM
|
||||||
|
):
|
||||||
|
connection.authenticated = True
|
||||||
|
connection.sc = True
|
||||||
connection.emit('connection_encryption_change')
|
connection.emit('connection_encryption_change')
|
||||||
|
|
||||||
@host_event_handler
|
@host_event_handler
|
||||||
|
|||||||
Reference in New Issue
Block a user