mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
device: set as Secure Connection when encrypted with AES
This commit is contained in:
@@ -2574,6 +2574,9 @@ class Device(CompositeEventEmitter):
|
|||||||
f'*** Connection Encryption Change: [0x{connection.handle:04X}] {connection.peer_address} as {connection.role_name}, encryption={encryption}'
|
f'*** Connection Encryption Change: [0x{connection.handle:04X}] {connection.peer_address} as {connection.role_name}, encryption={encryption}'
|
||||||
)
|
)
|
||||||
connection.encryption = encryption
|
connection.encryption = encryption
|
||||||
|
if not connection.authenticated and encryption == HCI_Encryption_Change_Event.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